Configure and Deploy Bundles
This guide is for the site deployment team. Use it to select a bundle release, supply the installation’s settings, and configure a deployment set. A deployment set is a Kubernetes resource that selects a bundle and settings for one installation. Then verify or update the deployment. If you’re on the release team, see how to include the deployment set in a product Helm chart.
For a straight to the point description of steps, fields, and behavior, see the Deployment Operator Reference.
Use your Kubernetes namespace, Connect organization ID, and environment folder name in place of foundation-env-default, gridos, and test in the examples. If you change a resource name or filename, update its references in the manifests and commands.
Before running the kubectl or helm examples, make sure your Kubernetes context points to the intended cluster.
Before You Start
-
Ask your platform administrator to enable the operator and install its custom resource definitions (CRDs) using Helmfile or Helm.
-
Check that the CRDs exist and the operator Deployment has rolled out. Use the namespace where Connect is installed. Replace
connectin the Deployment name if your Helm release has a different name:kubectl get crd connectdeploymentsets.connect.gridos.com connectserviceaccounts.connect.gridos.com kubectl rollout status deployment/connect-deploymentoperator -n foundation-env-default --timeout=2m -
Choose a Kubernetes namespace the operator watches. By default, it watches only the namespace where it runs. This guide uses that namespace for every example resource. See Namespace Scope for other layouts.
-
Check the minimum Connect version for the settings you plan to use. Try the bundle and overrides on a test installation before deploying to production.
Pin a Release for Each Installation
-
Keep the bundle pin and installation settings in that installation’s Helm values file or manifest directory.
-
Set
organizationIdto the target Connect organization ID. Setenvironmentto the environment folder name inside the bundle. This doesn’t select a Connect installation. If the organization folder in the bundle differs fromorganizationId, setbundleOrgIdAliasto that folder name. -
Pin the release in the deployment set. This example pins
1.4.0. For image delivery, use your repository and the published digest in manifests and Helm values. Keep thesha256:prefix and replace the digest placeholder with the hex characters that follow it.Image delivery:echo-api.yamlapiVersion: connect.gridos.com/v1 kind: ConnectDeploymentSet metadata: name: echo-api namespace: foundation-env-default spec: organizationId: gridos environment: test bundleImage: "registry.example.com/echo-api-bundle@sha256:<DIGEST_1_4_0>"If you deliver the bundle as a ConfigMap, replace
bundleImagewithbundleConfigMapRef. This example uses the versioned bundle ConfigMap in the same namespace as the deployment set:ConfigMap delivery:specinecho-api.yaml(excerpt)bundleConfigMapRef: name: echo-api-bundle-1-4-0 -
Record the image digest or ZIP checksum and the version of the manifests or Helm values used with it, such as their Git commit. This lets you identify exactly what was deployed and restore the matching bundle and settings if you need to roll back.
Do not deploy the same flow ID into the same Connect organization from two deployment sets unless you intend one to replace the other.
Supply Installation-Specific Settings
-
Choose the references your installation needs on the
ConnectDeploymentSet:Reference What to provide flowConfigConfigMapRefsNon-sensitive flow configuration overrides such as backend URLs or capacity settings. The operator applies overrides to the bundle’s flow specs. See override key syntax.
flowConfigSecretRefsSensitive flow configuration overrides as Kubernetes Secret values. The operator uses the values as supplied; it does not decrypt SDK Deployer encrypted values here. See Flow Configuration Secret Example.
connectSecretsRefsOne Connect Secret per referenced Kubernetes Secret, with a
secretKeyand the SDK Deployer secret properties. This supplies credentials to flows that look up that key. See the Connect Secret example and replacement rules.decryptionKeySecretRefA Kubernetes Secret with a
decryption-keyentry, if the bundle orconnectSecretsRefssupplies encrypted Connect Secret properties. See Decryption Key Secret.serviceAccountRefsList the
ConnectServiceAccountresources that provision the accounts named in the bundle’sflow-access.properties. For an account you manage outside Kubernetes, make sure it already exists in the target organization; do not add a Kubernetes reference for it. The deployment set waits for referenced accounts to be ready but does not create them. -
Prepare the referenced objects. Add the label
app.kubernetes.io/component=connect-deploymentoperatorto every ConfigMap and Secret referenced directly by the deployment set. Without it, the operator waits as if the object were missing.Save this ConfigMap as
echo-api-config.yaml. Replace the sample backend URL and use an override key that matches the flow, processor, and property in your bundle:echo-api-config.yamlapiVersion: v1 kind: ConfigMap metadata: name: echo-api-config namespace: foundation-env-default labels: app.kubernetes.io/component: connect-deploymentoperator data: echo-api.processors.backend-request.address: http://echo-api-backend.foundation-env-default.svc:8080/echo -
Use your organization’s approved secret-management process to create the
echo-api-backendKubernetes Secret before applyingecho-api.yaml. The template below shows the required fields and labelapp.kubernetes.io/component=connect-deploymentoperator. Supply actual backend credentials through that process, not in Git or Helm values. The flow processor’sauthenticationConfigKeynames the secret key it looks up. SetsecretKeyto that same value:Backend credentials Secret template:echo-api-backend-secret.yamlapiVersion: v1 kind: Secret metadata: name: echo-api-backend namespace: foundation-env-default labels: app.kubernetes.io/component: connect-deploymentoperator stringData: secretKey: echo-backend userName: "<BACKEND_USERNAME>" password: "<BACKEND_PASSWORD>" -
Save the caller account manifest as
echo-api-client.yaml. It creates the Connect account that calls the flow, not the backend credentials the flow uses. The bundle’s access rule uses the usernameecho-caller. Inecho-api.yaml,serviceAccountRefsnames the Kubernetes resourceecho-api-clientthat creates this account:echo-api-client.yamlapiVersion: connect.gridos.com/v1 kind: ConnectServiceAccount metadata: name: echo-api-client namespace: foundation-env-default spec: organizationId: gridos userName: echo-caller credentialsType: BasicAuthentication serviceAccountSecretRef: name: echo-api-client-credentials -
Add the references under
specinecho-api.yaml, keeping the bundle pin and organization settings:specinecho-api.yaml(excerpt)flowConfigConfigMapRefs: - name: echo-api-config connectSecretsRefs: - name: echo-api-backend serviceAccountRefs: - name: echo-api-client -
If your approved process populates
echo-api-backend-secret.yamlwith actual credentials, apply that manifest. Do not apply it with placeholder values. If the process creates the Secret directly, skip this command. Then apply the configuration andecho-api-client.yamlto create the account that calls the flow. Before applyingecho-api.yaml, verify that the backend Secret exists. For ConfigMap delivery, also apply the bundle ConfigMap before applyingecho-api.yaml:# If your approved process populated this manifest: kubectl apply -f echo-api-backend-secret.yaml kubectl apply -f echo-api-config.yaml -f echo-api-client.yaml kubectl get secret echo-api-backend -n foundation-env-default# ConfigMap delivery only: kubectl apply --server-side -f echo-api-bundle-1-4-0.yamlUse server-side apply for the bundle ConfigMap. Client-side apply stores a copy in an annotation and can fail for ZIPs larger than about 190 KiB.
-
Apply the deployment set and verify the deployment. If your product chart manages the set, use Helm instead of applying
echo-api.yamldirectly.kubectl apply -f echo-api.yaml
Recommended: Ship the Deployment Set in a Product Helm Chart
Include the deployment set in your product Helm chart to keep the bundle version in step with the product release. When Helm installs or upgrades the product, it also applies the deployment set with the tested bundle version. Reuse the same chart across installations with a separate values file for each installation’s settings.
This example uses an image for delivery. If you don’t have a chart, create product-chart/templates/ and save this minimal chart definition as product-chart/Chart.yaml:
product-chart/Chart.yamlapiVersion: v2
name: echo-api-product
version: 1.4.0
-
Save the bundle pin and installation settings as
values-installation.yamlnext to your chart directory:values-installation.yamlbundle: repository: registry.example.com/echo-api-bundle digest: "sha256:<DIGEST_1_4_0>" environment: test connect: organizationId: gridos configMapName: echo-api-config backendSecretName: echo-api-backend clientAccountName: echo-api-client -
Add the example template as
templates/connect-deployment-set.yamlin your product chart. Helm supplies.Release.Nameand.Release.Namespacewhen you install the chart. The.Valuesexpressions read the settings from your values file. If your chart uses different values keys, update the expressions to match:templates/connect-deployment-set.yamlapiVersion: connect.gridos.com/v1 kind: ConnectDeploymentSet metadata: name: {{ .Release.Name }} namespace: {{ .Release.Namespace }} spec: organizationId: {{ .Values.connect.organizationId | quote }} environment: {{ .Values.bundle.environment | quote }} bundleImage: {{ printf "%s@%s" .Values.bundle.repository (required "bundle.digest is required" .Values.bundle.digest) | quote }} flowConfigConfigMapRefs: - name: {{ .Values.connect.configMapName | quote }} connectSecretsRefs: - name: {{ .Values.connect.backendSecretName | quote }} serviceAccountRefs: - name: {{ .Values.connect.clientAccountName | quote }} -
Create the named ConfigMap, Secret, and
ConnectServiceAccountin the release namespace as shown in Supply Installation-Specific Settings. If Helm already manages the deployment set, do not apply a second set directly. -
Install or upgrade the product chart in that namespace with the installation’s values file:
helm upgrade --install echo-api ./product-chart -n foundation-env-default -f values-installation.yaml
|
If you use Argo CD:
|
Verify the Deployment
-
After installing or updating a bundle, read the deployment set’s generation and status:
kubectl get connectdeploymentset echo-api -n foundation-env-default -o yaml -
Under
status.conditions, find the entry withtype: Ready. For that entry, check thatstatusis"True",reasonisDeployed, andobservedGenerationmatchesmetadata.generation. Your generation does not have to be2as in this sample output:metadata: generation: 2 status: conditions: - observedGeneration: 2 reason: Deployed status: "True" type: ReadyIf you changed only a referenced object, the generation stays the same. In the deployment set’s events, look for a
Deployment succeededevent after your update. See Inspect Deployment Status for other conditions and troubleshooting.
Test the Flow
Deployed confirms that the operator applied the bundle. Test the flow separately to check that it processes requests or messages.
-
In the Connect Console, select Flows, open your flow, and check that its status is Up.
-
Send a test request or message through the flow’s normal entry point:
-
For a REST API flow, open the Documentation tab. Copy the base URL under Servers and append the operation’s path. Use the method and any request body shown for that operation. Send the request with an HTTP client using the credentials of a Connect service account with access to the flow. If the operator created the account, get its credentials from the Kubernetes Secret named by
spec.serviceAccountSecretRefin theConnectServiceAccountresource. -
For a message-driven flow, send a representative test message to the configured source, such as the input topic for a Kafka flow.
-
-
Confirm the expected response or downstream result. If the flow received the test but the result is wrong, look up the message in the flow traces.
Update Settings, Secrets, and Resources
Change the manifest or Helm values, or update the Kubernetes Secret through your organization’s approved secret-management process. Changes made directly in Connect may be overwritten by the next deployment.
| What to update | What to change | What happens in Connect |
|---|---|---|
An installation-specific flow setting |
Edit the override in the referenced ConfigMap or Kubernetes Secret. For example, change the backend URL in |
The operator updates the flow if the override changes the deployed spec. |
A Connect Secret supplied by a Kubernetes Secret |
Use your organization’s approved secret-management process to update the referenced Kubernetes Secret, such as |
The operator saves the Connect Secret under that key. See how the Kubernetes Secret replaces a bundled secret. |
A bundled Connect Secret or Connect Resource |
Have the release team update the file in the bundle, then pin the new release. Keep the secret key or the resource type and ID to update the same item in Connect. |
The operator saves selected secrets and updates resources whose content changed. A metadata-only resource edit creates no revision. See what the operator saves. |
Keep the required label on referenced ConfigMaps and Secrets. See what triggers deployment. If the operator is waiting for a reference or rejects its contents, find and fix the problem.
Changing a secret key or a resource type or ID leaves the old item in Connect. If connectSecretsRefs no longer supplies a key, the operator uses the bundled secret with that key if it exists and passes secretsPattern. Otherwise, the deployed secret stays as it is. To remove an item, stop supplying it and list it for deletion.
Check the Update in Connect
-
Verify that the operator applied your update. For a Connect Resource, check the latest revision under Resources in the Connect Console.
-
Running flows do not reload updated Connect Secrets or Connect Resources automatically. If a flow’s spec did not change, redeploy it to load the updated secret or resource:
-
Through the operator: Publish and pin a bundle with an updated spec for each affected flow.
-
Without a new bundle: If you have Connect deployment access, run the SDK Deployer with
command=deployandforced=true. Target the same Connect installation and organization. Use the same flow specs and overrides as the deployed flows. Setflow-patternto match only the affected flow IDs and leaveresource-patternandsecrets-patternunset. Keep the deployment set as the source for future releases.
-
-
Test each affected flow with a request or message that exercises the update. For a credential rotation, check that the backend accepts the new credentials.
Promote a Release to Another Installation
For example, to promote echo-api from test to production:
-
Use the same image digest or ZIP checksum that you verified in test. For a ConfigMap bundle, apply the same ZIP as a versioned ConfigMap in the production cluster. Do not rebuild it.
-
In the production manifests or Helm values, keep
environment: testbecause the ZIP still containsdeployment/gridos/test/. If production uses organizationgridos-prod, setorganizationId: gridos-prodon the deployment set and theConnectServiceAccount, and addbundleOrgIdAlias: gridosto the deployment set. -
Set the production backend URL in
echo-api-configand provision the production credentials inecho-api-backend. Switch to the production Kubernetes context and apply the production resources. Verify the deployment and test the flow in the production Connect Console.
Upgrade, Roll Back, or Retire a Release
These examples show changes to spec in echo-api.yaml. Keep the rest of your manifest. Use deletion lists only for flow IDs, resource types and IDs, and secret keys you have confirmed should be removed from the target Connect organization. If you use Helm, make the equivalent changes in your product chart and apply them with Helm instead. If you deliver a ConfigMap, change bundleConfigMapRef.name instead of bundleImage.
Upgrade to a New Release
-
Publish the new bundle. For example, suppose release
1.5.1addsecho-api-previewwith its own OpenAPI resource and backend secret. -
Replace the digest in
bundleImagewith the digest published for1.5.1. Update the installation settings if the new release needs different values.specinecho-api.yaml(excerpt)bundleImage: "registry.example.com/echo-api-bundle@sha256:<DIGEST_1_5_1>" -
Apply the updated manifest:
kubectl apply -f echo-api.yaml
Roll Back to an Earlier Release
-
Restore the
1.4.0image digest and the manifests or Helm values you recorded for that release. If a referenced ConfigMap or Secret changed in place, restore its earlier values in the tool that manages it. Changing the bundle pin does not restore those values. -
List anything added by
1.5.1that should not remain. Selecting1.4.0alone does not deleteecho-api-previewor its dependencies. Check that no other flow uses the preview resource or secret before listing them for deletion.specinecho-api.yaml(excerpt)bundleImage: "registry.example.com/echo-api-bundle@sha256:<DIGEST_1_4_0>" flowsToDelete: - id: echo-api-preview resourcesToDelete: - type: OpenAPIv3 id: echo-preview-openapi secretsToDelete: - key: echo-preview-backend -
Apply the updated manifest.
-
Verify the deployment and confirm that the preview flow, resource, and secret are gone.
-
Remove the completed deletion entries. Apply the change now or with the next release. The operator processes the lists on each deployment, so stale entries can delete items you later reintroduce.
-
Check who can still call the remaining flows. Restoring an earlier bundle does not revoke access granted by the newer one.
Retire a Flow from a Release
-
Check that no other flow uses the preview flow’s resource or secret.
-
To remove the preview without rolling back
echo-api, publish a1.6.0bundle that keepsecho-apibut omitsecho-api-previewand its dedicated resource and secret. -
Pin the new bundle and list what to delete. If an item on a deletion list is still in the selected bundle, the operator can deploy it again after deleting it. If you also supply a secret through
connectSecretsRefs, remove that reference before deleting the secret.specinecho-api.yaml(excerpt)bundleImage: "registry.example.com/echo-api-bundle@sha256:<DIGEST_1_6_0>" flowsToDelete: - id: echo-api-preview resourcesToDelete: - type: OpenAPIv3 id: echo-preview-openapi secretsToDelete: - key: echo-preview-backend -
Apply the updated manifest.
-
Verify the deployment. Confirm that the preview flow, resource, and secret are gone and that
echo-apistill runs. Remove the completed deletion entries and leave the deployment set in place forecho-api.
Retire the Entire Deployment
-
Identify every flow, resource, and secret in the Connect organization that belongs to this deployment, including items left by older releases. Leave shared items in place.
-
Keep the bundle reference. Copy the three filters shown below so the operator selects nothing from the bundle. Remove
connectSecretsRefsto keep those secrets from being deployed again. Leave the Connect service accounts named inflow-access.propertiesin place until cleanup finishes. The operator checks that they exist even when no flows are selected. -
List the items to remove, as shown for
echo-apibelow. Apply the update usingkubectlor the tool that manages the deployment set.specinecho-api.yaml(excerpt)flowPattern: '(?!)' resourcePattern: '(?!)' secretsPattern: '(?!)' flowsToDelete: - id: echo-api resourcesToDelete: - type: OpenAPIv3 id: echo-api-openapi secretsToDelete: - key: echo-backend -
Check that the current generation reports
Deployed, then confirm the listed flows, resources, and secrets are gone from Connect. If cleanup failed, check the status and events and fix it before deleting the set. -
Remove the deployment set with the tool that manages it. If you applied the set directly, run:
kubectl delete connectdeploymentset echo-api -n foundation-env-defaultRemove any unused bundle ConfigMaps and installation settings separately. Delete a dedicated
ConnectServiceAccountonly if no other flow needs the account, and keep its managed Secret until the account resource is deleted.
See ConnectDeploymentSet CR Example for deletion-list syntax and the product release example for an installation walkthrough.