我正在openstack环境中部署openShift集群(ocp),使用“openshift- node.For”命令生成安装-config.yaml文件的3个主服务器和3个辅助node.For。我想对主人(m1.xlarge)和工人(m1.2xlarge)使用不同的味道。如何在install-config.yaml文件中定义这一点?
下面是我的安装-config.yaml文件-
apiVersion: v1
baseDomain: abc.com
compute:
- architecture: amd64
hyperthreading: Enabled
name: worker
platform:
openstack:
additionalSecurityGroupIDs:
- 61dfe2fb-889a-4d21-a252-608f357ae570
replicas: 3
controlPlane:
architecture: amd64
hyperthreading: Enabled
name: master
platform:
openstack:
additionalSecurityGroupIDs:
- 61dfe2fb-889a-4d21-a252-608f357ae570
replicas: 3
metadata:
creationTimestamp: null
name: tb
networking:
clusterNetwork:
- cidr: 10.128.0.0/14
hostPrefix: 23
machineNetwork:
- cidr: 10.0.0.0/24
networkType: OpenShiftSDN
serviceNetwork:
- 172.30.0.0/16
platform:
openstack:
apiFloatingIP: 10.9.7.10
ingressFloatingIP: 10.9.7.11
apiVIP: 10.0.0.5
cloud: openstack
defaultMachinePlatform:
type: m1.2xlarge < ==== M1.2 xlarger is being used for both worker and master
rootVolume: {
size: 200,
type: "tripleo"
}
externalDNS: null
externalNetwork: testbed-vlan1507
ingressVIP: 10.0.0.7
publish: External发布于 2022-04-08 13:56:21
根据文档,您应该在platform.openstack中添加type: <flavor>,例如:
compute:
- architecture: amd64
hyperthreading: Enabled
name: worker
platform:
openstack:
type: ci.m1.xlarge
additionalSecurityGroupIDs:
- 61dfe2fb-889a-4d21-a252-608f357ae570
replicas: 3https://stackoverflow.com/questions/71795407
复制相似问题