Skip to main content

Modify OC to Update Cluster Status

Introduction to updating cluster status by modifying OC (cloudpods-operator's CRD resource).

cloudpods-operator will inject CRD resource oc into the Kubernetes cluster. This CRD defines the status of a service cluster. You can modify oc to change the cluster status, achieving IaC effects.

1. Modify Overall Cluster Status​

Main parameters:

disableResourceManagement: true|false

Whether to disable cgroup v1 resource limits. This option is disabled by default. For some newer operating systems, such as CentOS 8, etc., only cgroup v2 API is supported. If resource limits are enabled, containers cannot start. At this time, you need to disable cgroup v1 resource limits.

disableLocalVpc: true|false

Whether to disable built-in private cloud VPC functionality. This option is disabled by default.

enableCloudNet: true|false

Whether to enable Cloudnet component. This option is disabled by default

enableS3Gateway: true|false

Whether to enable S3 gateway service. This option is disabled by default

productVersion: CMP|Edge|FullStack

Cluster deployment mode. Three options: CMP (only deploy cloud management related functional components), Edge (deploy built-in private cloud related functional components), FullStack (deploy all functional components of cloud management and built-in private cloud)

imageRepository: <string>

Specify the cluster's image repo address. Default is registry.cn-beijing.aliyuncs.com/yunion

loadBalancerEndpoint: <ip>

Virtual IP address or domain name for accessing cluster control services

version: <string>

Cluster's main version number, such as v3.10.7. When component tag is not specified, version is used as the image tag by default. You can achieve overall cluster image version switching by modifying this attribute.

region: <string>

Current region, default is region0

zone: <string>

Current availability zone, default is zone0

2. Modify Individual Component Attributes​

Each component can set the following attributes:

disable: true|false

Whether this component is disabled. Default is false. If set to true, operator will not update corresponding k8s resources (deployment or daemonset)

imageName: <string>

Image name

imagePullPolicy: <string>

Image pull policy. Default is IfNotPresent, can also be set to: Always

repository: <string>

This component's image address. This attribute overrides the global imageRepository attribute

tag: <string>

Image tag. This attribute overrides the global version attribute

Supported component list is as follows:

Component NameFunctionOpen SourceCommercial
ansibleserveransible management service(x)(x)
apiGatewayAPI gateway service(x)(x)
autoupdateUpdate service(x)
baremetalagentBare metal agent, responsible for bare metal server API and operations(x)(x)
climcContainer providing climc(x)(x)
cloudeventcloudevent service, provides public cloud log collection(x)(x)
cloudidComponent responsible for CloudSSO functionality(x)(x)
cloudmonMonitoring data collection service(x)(x)
cloudnetInter-cloud network service(x)(x)
cloudproxyssh proxy service(x)(x)
devtoolApplication deployment service(x)(x)
esxiagentVMWare agent(x)(x)
glanceImage service(x)(x)
hostagentHost agent(x)(x)
hostdeployerDisk data deployment service(x)(x)
hostimageDisk data download service(x)(x)
influxdbOpen source monitoring database(x)(x)
itsmWork order process service(x)
keystoneAuthentication service(x)(x)
kubeserverKubernetes cluster management agent(x)(x)
loggerOperation log service(x)(x)
meterBilling metering service(x)
monitorMonitoring service(x)(x)
notifyNotification alert service(x)(x)
onecloudServiceOperatorOrchestration service(x)(x)
ovnNorthOVN control service(x)(x)
regionDNSDNS service(x)(x)
regionServerCloud resource management service(x)(x)
reportReport service(x)
s3gatewayS3 proxy gateway service(x)(x)
scheduledtaskScheduled task service(x)(x)
schedulerScheduler(x)(x)
suggestionCost optimization service(x)
telegrafMonitoring Agent, open source telegraf(x)(x)
vpcAgentVPC agent(x)(x)
webFrontend nginx(x)(x)
webconsoleH5 console service(x)(x)
yunionagentEnterprise edition authorization service(x)
yunionconfConfiguration management service(x)(x)