$ oc -n external-dns-operator create configmap trusted-ca
After configuring the cluster-wide proxy, the Operator Lifecycle Manager (OLM) triggers automatic updates to all of the deployed Operators with the new contents of the HTTP_PROXY
, HTTPS_PROXY
, and NO_PROXY
environment variables.
You can configure the External dns Operator to trust the certificate authority of the cluster-wide proxy.
Create the config map to contain the CA bundle in the external-dns-operator
namespace by running the following command:
$ oc -n external-dns-operator create configmap trusted-ca
To inject the trusted CA bundle into the config map, add the config.openshift.io/inject-trusted-cabundle=true
label to the config map by running the following command:
$ oc -n external-dns-operator label cm trusted-ca config.openshift.io/inject-trusted-cabundle=true
Update the subscription of the External dns Operator by running the following command:
$ oc -n external-dns-operator patch subscription external-dns-operator --type='json' -p='[{"op": "add", "path": "/spec/config", "value":{"env":[{"name":"TRUSTED_CA_CONFIGMAP_NAME","value":"trusted-ca"}]}}]'
After the deployment of the External dns Operator is completed, verify that the trusted CA environment variable is added to the external-dns-operator
deployment by running the following command:
$ oc -n external-dns-operator exec deploy/external-dns-operator -c external-dns-operator -- printenv TRUSTED_CA_CONFIGMAP_NAME
trusted-ca