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 whitelist 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 resources of the tenant in the current Kubernetes cluster to check whether the modification is successful:
kubectl get obtenants.oceanbase.oceanbase.com -n oceanbase -o yamlIf the value of the corresponding parameter in the
spec:connectWhiteListsection in the custom resources of the tenant is changed to the new value, the modification is successful.spec: obcluster: obcluster connectWhiteList: '%' pools: