This topic describes how to modify parameters other than those related to tenant resources and tenant replicas.
For more information about how to modify parameters related to tenant resources, see Manage resources.
For more information about how to modify parameters related to tenant replicas, see Manage replicas.
Modify the connection allowlist for a tenant
If you want to update the list of IP addresses allowed to connect to a tenant, you can modify the connectWhiteList parameter in the tenant configuration file. When you modify this parameter, the value must include the CIDR block of ob-operator; otherwise, ob-operator cannot connect to the tenant.
Modify the value of
connectWhiteListin thespecsection in the tenant configuration filetenant.yaml.spec: ... connectWhiteList: '%'Run the following command for the modification to take effect:
kubectl apply -f tenant.yamlRun the following command to view the custom resource of the tenant in the current Kubernetes cluster to determine whether the modification is successful:
kubectl get tenant -A -o yamlIf the value of
connectWhiteListin thespecsection in the custom resource of the tenant changes to the new value, the modification is successful.spec: clusterID: 1 clusterName: ob-test connectWhiteList: '%' topology: