Monitor and Troubleshoot Deployment Bundles
Site deployment teams can use this guide to verify a deployment and diagnose failures. Platform administrators can use it to check the operator’s health and adjust retry and timeout settings.
For a straight to the point description of steps, fields, and behavior, see the Deployment Operator Reference.
Before running the commands, make sure your Kubernetes context points to the intended cluster. Use the actual name and namespace of each resource you inspect in place of the sample values.
Inspect Deployment Status
-
Inspect the deployment set and any referenced
ConnectServiceAccountresources:kubectl get connectdeploymentset echo-api -n foundation-env-default -o yaml kubectl describe connectdeploymentset echo-api -n foundation-env-default kubectl describe connectserviceaccount echo-api-client -n foundation-env-defaultKubernetes also accepts
cdsforconnectdeploymentsetandcsaforconnectserviceaccount. These examples are equivalent to the twodescribecommands above:kubectl describe cds echo-api -n foundation-env-default kubectl describe csa echo-api-client -n foundation-env-default -
Find the condition whose
typeisReady. Check its separatestatus,reason, andmessagefields.Readynames the condition; seeingType: Readyalone does not mean the deployment succeeded.In
kubectl get -o yaml, look understatus.conditions. This example shows a successful deployment (other fields are omitted):status: conditions: - message: Deployment successful observedGeneration: 2 reason: Deployed status: "True" type: ReadyIn
kubectl describe, the same fields appear under Status → Conditions:Status: Conditions: Message: Deployment successful Observed Generation: 2 Reason: Deployed Status: True Type: ReadyResource Condition status Reason Meaning Deployment set
TrueDeployedThe bundle deployed without errors. Check runtime health separately.
Deployment set
FalseReconcilingThe operator is waiting for references. Check the message,
status.resources.pendingRefs, and events.Deployment set
FalseDeploymentFailedAn attempt failed. Check events and logs for the failed step and whether retries are still running.
Either resource
FalseReferencedNamespaceNotWatchedA reference points outside the operator’s namespace scope.
Connect service account
TrueReconciledThe account and its managed Secret are available.
Connect service account
FalseReconciliationFailedThe operator could not reconcile the account. Check the message and events.
-
Confirm the status reflects your update. If you changed the deployment set spec, compare the condition’s
observedGenerationwithmetadata.generationin the YAML. Inkubectl describe, compare Observed Generation under Status → Conditions with Generation under Metadata. A successful condition from an earlier generation can remain visible while the new deployment runs. If you changed only a referenced object, the deployment set’smetadata.generationstays the same. Look for a newDeployment succeededevent after your update. -
After a successful deployment, test the flow with a request or message.
Check Events, Logs, and Platform Health
-
Read recent events using
kubectl describeor filter events for one deployment set as shown below. Keep theinvolvedObject.kindfilter as shown:kubectl get events -n foundation-env-default \ --field-selector involvedObject.kind=ConnectDeploymentSet,involvedObject.name=echo-api -
Look for
Waiting for secondary resources,Starting deployment,Deployment succeeded, or a failure message. For example,kubectl describecan show which references are missing:Events: Type Reason Age From Message ---- ------ --- ---- ------- Normal reconciling 36s connect-deploymentoperator Waiting for secondary resources: (ConfigMap/foundation-env-default/echo-api-config: missing, Secret/foundation-env-default/echo-api-backend: missing) -
If the events don’t explain the problem, check the operator logs in the namespace where Connect is installed:
kubectl logs deployment/connect-deploymentoperator -n foundation-env-default --since=15mOr open Connect service logs in Kibana and filter for the
connect-deploymentoperatorcontainer. Find the affected resource by name and namespace, then look for the failed step. For example, a failed flow update can leave earlier deletions and updates to secrets or resources in place. Check those items in Connect before you retry or roll back. -
If the operator or a Connect dependency is unhealthy, check Health Diagnostics for the Connect namespace in the Product Health Dashboard. The dashboard helps diagnose platform health, not the result of an individual deployment set.
Check the Operator and Its Namespace Scope
Verify the CRDs and operator rollout in the namespace where Connect is installed. The example uses connect as the Helm release name:
kubectl get crd connectdeploymentsets.connect.gridos.com connectserviceaccounts.connect.gridos.com
kubectl rollout status deployment/connect-deploymentoperator -n foundation-env-default --timeout=2m
kubectl describe deployment connect-deploymentoperator -n foundation-env-default
-
If the rollout doesn’t finish, check the Deployment’s events and the operator logs. In the operator’s readiness details, look for
namespaceScopeHealth. This check reports missing namespaces or Kubernetes permissions. -
If the operator is ready but your deployment set or account resource has no status, check that the operator is configured to watch its namespace.
Failed Deployment Retries and Bundle Fetch Timeouts
By default, the operator retries a failed deployment up to five times after the first attempt. The first wait is 3 seconds. Each wait is 1.5 times the previous wait, up to 10 seconds. The waits add about 30 seconds to the time spent in the attempts. Once retries are exhausted, the deployment stays DeploymentFailed until the deployment set spec or a watched reference changes. Reapplying the same manifest does not restart retries.
If an unreachable image causes every fetch to time out, allow about 30 minutes: six attempts at 5 minutes each plus the retry waits. Waiting for a missing reference has no timeout and does not use these retries.
-
Choose which settings to change using the table below. Set durations in milliseconds and keep the bundle store lifetime longer than the fetch timeout.
-
Add the overrides under
deploymentoperator.config.application.ymlin your Connect Helm values. This example sets a seven-minute fetch timeout and a fifteen-minute bundle store lifetime. Thejavaoperatorsdksection shows the default retry settings for comparison; omit it if you do not need to override retry settings:deploymentoperator: config: application.yml: deployment-operator: bundle-fetcher: timeout-millis: 420000 bundle-store-ttl-millis: 900000 javaoperatorsdk: reconcilers: connect-deployment-set-reconciler: retry: max-attempts: 5 initial-interval: 3000 interval-multiplier: 1.5 max-interval: 10000 -
Apply the updated Helm values using your installation or upgrade procedure.
| Setting | Default | When to change it |
|---|---|---|
|
5 retries, 3 s, 1.5, 10 s |
Tune for transient failures. Allow longer waits for a dependency that recovers slowly. Fix permanent errors instead of adding retries. |
|
5 min and 10 min |
Increase the fetch timeout for images that pull and upload successfully but take longer. Keep the bundle store TTL above the fetch timeout. |
|
10 min |
Increase to keep finished Jobs and their Pods longer for diagnosis. This does not clean up Jobs that never finish. |
|
3 s to connect, 15 s to read |
Change the matching timeout for a slow but healthy Connect API. Check reachability, credentials, and server health first. |
|
30 s |
Change how often the operator rechecks namespace access. This affects operator readiness, not how long a deployment set waits for a missing reference. |
|
50 |
Reduce simultaneous reconciliations if deployments overload Connect or Kubernetes. Increase only if work is queued and both have spare capacity. |
Common Symptoms
If the Kubernetes API doesn’t recognize a resource kind or field, or Connect rejects a flow spec:
-
For an unrecognized resource kind or field, check the CRDs and make sure they are current.
-
For a rejected flow spec, verify that the flow-server supports the processors and properties in the bundle and its overrides.
| Symptom | Likely cause | What to do |
|---|---|---|
No status or events |
The operator is disabled, not ready, or does not watch the namespace. |
|
|
A reference is missing, unlabelled, invalid, or not ready. |
Check the reason listed for the reference in |
|
The Kubernetes Secret lacks required data. The deployment can show |
Use the Secret name and namespace in |
|
The account’s managed Secret is missing or does not match. |
Check the managed Secret’s |
|
The image, registry access, or pull credentials are unavailable. |
Describe the fetch Pod. Verify the pinned image and the publisher ServiceAccount’s pull Secret. |
Bundle fetch times out and Jobs accumulate |
A fetch Pod cannot start or post the ZIP; unfinished Jobs are not removed by the finished-Job TTL. |
Find the stalled Job as shown below. Check its Pod events, logs, image permissions, and callback connectivity. Fix the cause and delete only Jobs confirmed to be abandoned. |
|
The operator may have rejected an invalid override. Earlier deletions and changes to Connect Secrets and Connect Resources may already have taken effect. |
Check the operator logs. In the referenced ConfigMap or Secret, check that |
An override has no effect |
The key names a flow not selected from the bundle, or the effective value did not change. |
Check the selected flow ID, processor instance ID, and override key format. Check for an embedded YAML override of the same property. |
|
The running flow has not reloaded the update. |
|
|
Deployment success does not check the runtime. |
Check the flow’s status and logs in Connect. Send a test request or message and verify the backend and credentials. |
Find and Remove an Abandoned Bundle-Fetch Job
-
List the bundle-fetch Jobs in the failed deployment set’s namespace:
namespace='<DEPLOYMENT_SET_NAMESPACE>' kubectl get jobs -n "$namespace" -l connect.gridos.com/bundle-request-uuid -
Inspect the failed attempt. In the same shell, replace
<BUNDLE_FETCH_JOB_NAME>with the exact Job name fromkubectl get jobs. Match the Job’s age and image to the failed attempt. Review its Pod events before deleting anything:JOB='<BUNDLE_FETCH_JOB_NAME>' kubectl describe job "$JOB" -n "$namespace" kubectl get pods -n "$namespace" -l "job-name=$JOB" kubectl logs job/"$JOB" -n "$namespace" -c bundle-fetcherIf the container never started, inspect the Pod’s events instead of its logs. Replace
<POD_NAME>with the Pod name from theNAMEcolumn of thekubectl get podsoutput:kubectl describe pod '<POD_NAME>' -n "$namespace" -
Check the deployment set’s events and the operator logs for that attempt. Delete the Job only if you can confirm the operator timed out and no active attempt is using it:
kubectl delete job "$JOB" -n "$namespace" -
Fix the cause of the failed fetch. If retries have ended, apply a deployment set with a corrected spec or update a ConfigMap or Secret that the deployment set references. Deleting the Job does not retry the deployment.