The Cloud Agent Operator's reconciliation of the Cloud Agent components can be paused, allowing you to modify and troubleshoot them directly.
Pause Reconciliation
Add integration.ibm.com/pause
annotation to by editing DpodCloudAgent CR:
apiVersion: integration.ibm.com/v1beta1 kind: DpodCloudAgent metadata:e namespace: gateways-ns name: dpod-cloud-agent-dev annotations: integration.ibm.com/pause: "true" ...
Warning: The value must be a string, i.e. "true"
, just providing true
will not work and you will receive an error when trying to apply the update
Or using command line with kubectl
and yq
tools, i.e.:
kubectl get dpodcloudagent <CR Name> -n <CR Namespace> -o yaml --style="double" | yq w - "metadata.annotations.\"integration.ibm.com/pause\"" "true" | kubectl replace -f -
As long as this annotation is set in DpodCloudAgent CR, Cloud Agent Operator will not perform any action on Cloud Agent components. It is
Continue Reconciliation
When troubleshooting is done it is required to let the Cloud Agent Operator to continue manage Cloud Agent components.
Remove integration.ibm.com/pause
annotation to by editing DpodCloudAgent CR or using command line tools:
kubectl get dpodcloudagent <CR Name> -n <CR Namespace> -o yaml | yq d - "metadata.annotations.\"integration.ibm.com/pause\"" | kubectl replace -f -