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

  1. Inspect the deployment set and any referenced ConnectServiceAccount resources:

    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-default

    Kubernetes also accepts cds for connectdeploymentset and csa for connectserviceaccount. These examples are equivalent to the two describe commands above:

    kubectl describe cds echo-api -n foundation-env-default
    kubectl describe csa echo-api-client -n foundation-env-default
  2. Find the condition whose type is Ready. Check its separate status, reason, and message fields. Ready names the condition; seeing Type: Ready alone does not mean the deployment succeeded.

    In kubectl get -o yaml, look under status.conditions. This example shows a successful deployment (other fields are omitted):

    status:
      conditions:
      - message: Deployment successful
        observedGeneration: 2
        reason: Deployed
        status: "True"
        type: Ready

    In kubectl describe, the same fields appear under Status → Conditions:

    Status:
      Conditions:
        Message:               Deployment successful
        Observed Generation:   2
        Reason:                Deployed
        Status:                True
        Type:                  Ready
    Resource Condition status Reason Meaning

    Deployment set

    True

    Deployed

    The bundle deployed without errors. Check runtime health separately.

    Deployment set

    False

    Reconciling

    The operator is waiting for references. Check the message, status.resources.pendingRefs, and events.

    Deployment set

    False

    DeploymentFailed

    An attempt failed. Check events and logs for the failed step and whether retries are still running.

    Either resource

    False

    ReferencedNamespaceNotWatched

    A reference points outside the operator’s namespace scope.

    Connect service account

    True

    Reconciled

    The account and its managed Secret are available.

    Connect service account

    False

    ReconciliationFailed

    The operator could not reconcile the account. Check the message and events.

  3. Confirm the status reflects your update. If you changed the deployment set spec, compare the condition’s observedGeneration with metadata.generation in the YAML. In kubectl 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’s metadata.generation stays the same. Look for a new Deployment succeeded event after your update.

  4. After a successful deployment, test the flow with a request or message.

Check Events, Logs, and Platform Health

  1. Read recent events using kubectl describe or filter events for one deployment set as shown below. Keep the involvedObject.kind filter as shown:

    kubectl get events -n foundation-env-default \
      --field-selector involvedObject.kind=ConnectDeploymentSet,involvedObject.name=echo-api
  2. Look for Waiting for secondary resources, Starting deployment, Deployment succeeded, or a failure message. For example, kubectl describe can 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)
  3. 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=15m

    Or open Connect service logs in Kibana and filter for the connect-deploymentoperator container. 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.

  4. 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.

  1. Choose which settings to change using the table below. Set durations in milliseconds and keep the bundle store lifetime longer than the fetch timeout.

  2. Add the overrides under deploymentoperator.config.application.yml in your Connect Helm values. This example sets a seven-minute fetch timeout and a fifteen-minute bundle store lifetime. The javaoperatorsdk section 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
  3. Apply the updated Helm values using your installation or upgrade procedure.

Setting Default When to change it

javaoperatorsdk.reconcilers.connect-deployment-set-reconciler.retry: max-attempts, initial-interval, interval-multiplier, max-interval

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.

deployment-operator.bundle-fetcher.timeout-millis and bundle-store-ttl-millis

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.

deployment-operator.bundle-fetcher.job-ttl-after-finished-millis

10 min

Increase to keep finished Jobs and their Pods longer for diagnosis. This does not clean up Jobs that never finish.

deployment-operator.flow-service.rest-client and deployment-operator.identity.rest-client: connect-timeout-millis, read-timeout-millis

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.

deployment-operator.namespace-readiness-check-interval-millis

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.

javaoperatorsdk.concurrent-reconciliation-threads

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:

  1. Check compatibility with the installed Connect version.

  2. For an unrecognized resource kind or field, check the CRDs and make sure they are current.

  3. 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.

Check the operator and its namespace scope.

Reconciling does not clear

A reference is missing, unlabelled, invalid, or not ready.

Check the reason listed for the reference in status.resources.pendingRefs. Check the name, namespace, and watch label of ConfigMaps and Secrets. For a Connect service account, inspect its Ready condition.

status.resources.pendingRefs reports a missing secretKey or decryption-key

The Kubernetes Secret lacks required data. The deployment can show DeploymentFailed at first and Reconciling on retry.

Use the Secret name and namespace in status.resources.pendingRefs. Add the missing key to the Kubernetes Secret supplying the Connect Secret or to the decryption key Secret. Reapplying the same data leaves the error in place.

ReconciliationFailed for an existing account

The account’s managed Secret is missing or does not match.

Check the managed Secret’s metadata.ownerReferences or, for a cross-namespace Secret, its owner annotations. Restore only the matching Secret if appropriate, or use a different Connect username. Do not delete another deployment’s account.

ErrImagePull or ImagePullBackOff

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.

DeploymentFailed with Failed to deploy flows after editing overrides

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 overrides.yaml is a valid mapping from flow IDs to property overrides. For shorthand, use a flow ID followed by a dot and a property path. Apply the corrected data, then verify the deployment and check the affected items in Connect.

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.

Deployed, but a running flow still uses the old Connect Secret or Connect Resource

The running flow has not reloaded the update.

Redeploy the affected flow and test it.

Deployed, but a flow fails

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

  1. 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
  2. Inspect the failed attempt. In the same shell, replace <BUNDLE_FETCH_JOB_NAME> with the exact Job name from kubectl 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-fetcher

    If the container never started, inspect the Pod’s events instead of its logs. Replace <POD_NAME> with the Pod name from the NAME column of the kubectl get pods output:

    kubectl describe pod '<POD_NAME>' -n "$namespace"
  3. 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"
  4. 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.