Mike
08/12/2025, 11:28 AMabctl local install --host airbyte.integralix.io --port 8000 --values ~/airbyte-config/values.yaml --insecure-cookies --low-resource-mode --secret ~/airbyte-config/secrets.yaml --verbose
Only I am getting errors on the
▄ Installing 'airbyte/airbyte' (version: 1.7.2) Helm Chart (this may take several minutes)
stage.
I have a secrets.yaml file
apiVersion: v1
kind: Secret
metadata:
name: airbyte-config-secrets
namespace: airbyte-abctl
type: Opaque
stringData:
red-backend-username: 'airbyte_user'
rds-backend-password: 'password'
aws-secret-manager-access-key-id: 'key'
aws-secret-manager-secret-access-key: 'password'
file and values.yaml
and a values.yaml file
global:
database:
type: external
host: airbyte.password.eu-west-2.rds.amazonaws.com
port: 5432
database: airbyte
user: airbyte_user
password: password
# SSL configuration for RDS
ssl: true
sslmode: require
# AWS Secrets Manager configuration for connector secrets
secretsManager:
type: awsSecretManager
secretName: "airbyte-config-secrets"
awsSecretManager:
region: eu-west-2
authenticationType: credentials
# Disable internal database
postgresql:
enabled: false
but am having no luck installing.kapa.ai
08/12/2025, 11:28 AMsecrets.yaml file uses the keys red-backend-username and rds-backend-password, but your values.yaml expects the database user and password to be set directly under global.database.user and global.database.password. According to the documentation, if you want to use secrets, you should use the keys database-user and database-password in your Kubernetes secret, and reference them in your values.yaml using userSecretKey and passwordSecretKey instead of setting the values directly. For example: secrets.yaml yaml apiVersion: v1 kind: Secret metadata: name: airbyte-config-secrets namespace: airbyte-abctl type: Opaque stringData: database-user: 'airbyte_user' database-password: 'password' aws-secret-manager-access-key-id: 'key' aws-secret-manager-secret-access-key: 'password' values.yaml yaml global: database: type: external host: airbyte.password.eu-west-2.rds.amazonaws.com port: 5432 database: airbyte userSecretKey: database-user passwordSecretKey: database-password ssl: true sslmode: require secretsManager: type: awsSecretManager secretName: "airbyte-config-secrets" awsSecretManager: region: eu-west-2 authenticationType: credentials postgresql: enabled: false This approach ensures that the sensitive values are pulled from the Kubernetes secret, not hardcoded in your values file. The documentation and community examples consistently use this pattern for external databases and secret management [see here](https://docs.airbyte.com/platform/next/deploying-airbyte/integrations/database#secrets) and [here](https://github.com/airbytehq/airbyte/discussions/47256). ### 2. Namespace Consistency Make sure the namespace in your secrets.yaml (airbyte-abctl) matches the namespace where you are installing Airbyte with abctl. If you use a different namespace, Airbyte will not be able to find the secret. ### 3. Required Secret Keys For AWS Secrets Manager integration, your secret should include the keys aws-secret-manager-access-key-id and aws-secret-manager-secret-access-key as you have done, and these should be referenced in your values.yaml under global.secretsManager [see here](https://docs.airbyte.com/platform/next/deploying-airbyte/integrations/secrets#values). ### 4. Database Password Location The database password must be set in the Kubernetes secret, not directly in the values.yaml file, as per the documentation [see here](https://docs.airbyte.com/platform/next/deploying-airbyte/integrations/database#secrets). ### 5. Troubleshooting Helm Install Errors If you are still getting errors at the Helm install stage, check the following: - The secret exists in the correct namespace and contains the correct keys. - The values.yaml references the secret keys correctly. - There are no typos in the key names. - The RDS instance is accessible from your Kubernetes cluster (network/security group/firewall). - The Helm chart version you are using is compatible with your configuration (some issues have been reported with certain chart versions and Kubernetes versions) [see here](https://github.com/airbytehq/airbyte/issues/52091). ### 6. Example Working Configuration A working example from the community for AWS RDS and Secrets Manager looks like this: secrets.yaml yaml apiVersion: v1 kind: Secret metadata: name: airbyte-config-secrets type: Opaque stringData: database-user: "airbyte" database-password: "airbyte" s3-access-key-id: <MY_ID> s3-secret-access-key: <MY_SECRET_KEY> aws-secret-manager-access-key-id: <MY_ID> aws-secret-manager-secret-access-key: <MY_SECRET_KEY> values.yaml yaml postgresql: enabled: false global: database: type: external secretName: "airbyte-config-secrets" host: "airbyte.aws-id.us-west-2.rds.amazonaws.com" port: 5432 database: "airbyte" userSecretKey: "database-user" passwordSecretKey: "database-password" secretsManager: type: awsSecretManager secretName: "airbyte-config-secrets" awsSecretManager: region: us-east-2 authenticationType: credentials [Reference](https://github.com/airbytehq/airbyte/discussions/47256) --- Summary: - Use userSecretKey and passwordSecretKey in your values.yaml and match them to the keys in your secret. - Do not set the database password directly in values.yaml. - Ensure namespace consistency. - Double-check all key names and values. If you follow these steps and still encounter errors, please provide the specific error message for further troubleshooting.kapa.ai
08/12/2025, 11:30 AMkapa.ai
08/12/2025, 11:30 AMsecrets.yaml and what Airbyte expects, as well as how you are providing database credentials in your values.yaml. ### Key Issues 1. Secret Key Names Airbyte expects the database credentials in the secret to be named database-user and database-password, not red-backend-username and rds-backend-password. See the official documentation and working community examples for reference: yaml apiVersion: v1 kind: Secret metadata: name: airbyte-config-secrets namespace: airbyte-abctl type: Opaque stringData: database-user: 'airbyte_user' database-password: 'password' aws-secret-manager-access-key-id: 'key' aws-secret-manager-secret-access-key: 'password' [Reference](https://docs.airbyte.com/platform/next/deploying-airbyte/integrations/database#secrets) 2. How Credentials Are Referenced in values.yaml If you want to use secrets for credentials (recommended), you should use userSecretKey and passwordSecretKey in your values.yaml, not user and password directly. For example: yaml global: database: type: external host: airbyte.password.eu-west-2.rds.amazonaws.com port: 5432 database: airbyte userSecretKey: database-user passwordSecretKey: database-password ssl: true sslmode: require secretsManager: type: awsSecretManager secretName: "airbyte-config-secrets" awsSecretManager: region: eu-west-2 authenticationType: credentials postgresql: enabled: false [Reference](https://github.com/airbytehq/airbyte/discussions/47256) 3. Namespace Consistency Ensure your secret is created in the same namespace (airbyte-abctl) where Airbyte is being installed. ### What to Do - Update your secrets.yaml to use the correct key names (database-user, database-password). - Update your values.yaml to use userSecretKey and passwordSecretKey instead of user and password. - Re-apply the secret before running the install command. - Double-check that your RDS instance is accessible from your Kubernetes cluster (network/firewall/security group). ### Example Working Setup secrets.yaml yaml apiVersion: v1 kind: Secret metadata: name: airbyte-config-secrets namespace: airbyte-abctl type: Opaque stringData: database-user: 'airbyte_user' database-password: 'password' aws-secret-manager-access-key-id: 'key' aws-secret-manager-secret-access-key: 'password' values.yaml yaml global: database: type: external host: airbyte.password.eu-west-2.rds.amazonaws.com port: 5432 database: airbyte userSecretKey: database-user passwordSecretKey: database-password ssl: true sslmode: require secretsManager: type: awsSecretManager secretName: "airbyte-config-secrets" awsSecretManager: region: eu-west-2 authenticationType: credentials postgresql: enabled: false If you still encounter errors, please provide the specific error message from the Helm install stage for further troubleshooting. The knowledge sources do not mention any other required changes for your scenario beyond these configuration corrections. [Reference](https://docs.airbyte.com/platform/next/deploying-airbyte/integrations/database#secrets)Mike
08/12/2025, 11:40 AMSUCCESS Cluster 'airbyte-abctl' created
DEBUG getting helm chart "airbyte/airbyte" with version ""
DEBUG determined latest airbyte chart url: https://airbytehq.github.io/helm-charts/airbyte-1.7.2.tgz
INFO Patching image airbyte/db:1.7.0-17
`DEBUG error building image manifest: execution error at (airbyte/charts/workload-launcher/templates/deployment.yaml11112): You must set global.database.secretName when using an external database`
DEBUG Event watcher started.
INFO Namespace 'airbyte-abctl' created
DEBUG Creating directory '/home/ec2-user/.airbyte/abctl/data/airbyte-local-pv'
DEBUG Updating permissions for '/home/ec2-user/.airbyte/abctl/data/airbyte-local-pv'
INFO Persistent volume 'airbyte-local-pv' created
INFO Persistent volume claim 'airbyte-storage-pvc' created
DEBUG Creating directory '/home/ec2-user/.airbyte/abctl/data/airbyte-volume-db'
DEBUG Updating permissions for '/home/ec2-user/.airbyte/abctl/data/airbyte-volume-db'
INFO Persistent volume 'airbyte-volume-db' created
INFO Persistent volume claim 'airbyte-volume-db-airbyte-db-0' created
SUCCESS Secret from '/home/ec2-user/airbyte-config/secrets.yaml' created or updated
DEBUG helm: WARNING: repository name "airbyte" already exists
INFO Starting Helm Chart installation of 'airbyte/airbyte' (version: 1.7.2)
ERROR Failed to install airbyte/airbyte Helm Chart
ERROR Unable to install Airbyte locally
DEBUG Received unexpected event: *v1.Status
DEBUG Event watcher completed.
`ERROR unable to install airbyte chart: unable to install helm: execution error at (airbyte/charts/workload-launcher/templates/deployment.yaml11112): You must set global.database.secretName when using an external database`
"""kapa.ai
08/12/2025, 11:40 AMkapa.ai
08/12/2025, 11:41 AMYou must set `global.database.secretName` when using an external database means that in your values.yaml, you need to explicitly set the secretName field under global.database to the name of your Kubernetes secret (in your case, airbyte-config-secrets). This is required so Airbyte knows where to look for your database credentials when using an external database. How to fix: Update your values.yaml to include the secretName field: yaml global: database: type: external host: airbyte.password.eu-west-2.rds.amazonaws.com port: 5432 database: airbyte userSecretKey: database-user passwordSecretKey: database-password secretName: airbyte-config-secrets # <-- Add this line ssl: true sslmode: require secretsManager: type: awsSecretManager secretName: "airbyte-config-secrets" awsSecretManager: region: eu-west-2 authenticationType: credentials postgresql: enabled: false This is confirmed in the official documentation and community examples, which show that secretName must be set when using external database credentials from a Kubernetes secret [see here](https://docs.airbyte.com/platform/next/deploying-airbyte/integrations/database#values). Summary: Add secretName: airbyte-config-secrets under global.database in your values.yaml. This should resolve the error and allow the Helm chart to install successfully.kapa.ai
08/12/2025, 12:51 PMkapa.ai
08/12/2025, 12:51 PMInvalid value: "DKWk49Y%Eltr$Y": a valid config key must consist of alphanumeric characters, '-', '_' or '.' (e.g. 'key.name', or 'KEY_NAME', or 'key-name', regex used for validation is '[-._a-zA-Z0-9]+') means that one of the keys (not the value) in your Kubernetes secret (secrets.yaml) contains invalid characters. Kubernetes secret keys must only use alphanumeric characters, dashes (-), underscores (_), or dots (.). Special characters like % and $ are not allowed in the key name. For example, this is invalid: yaml stringData: DKWk49Y%Eltr$Y: "somevalue" But this is valid: yaml stringData: database-password: "DKWk49Y%Eltr$Y" How to fix: - Check your secrets.yaml and ensure all keys (the left side of the colon) use only allowed characters. - If you want to store a password with special characters, that's fine, but the key name itself must be valid. Example of a correct secret: yaml apiVersion: v1 kind: Secret metadata: name: airbyte-config-secrets namespace: airbyte-abctl type: Opaque stringData: database-user: "airbyte_user" database-password: "DKWk49Y%Eltr$Y" # <-- value can have special chars, key cannot Summary: Update your secret so that all key names use only alphanumeric characters, dashes, underscores, or dots. The value (e.g., your password) can contain special characters, but the key name cannot. This requirement is enforced by Kubernetes and is also reflected in Airbyte's documentation and community discussions about secret management and Helm chart deployment errors [see here](https://docs.airbyte.com/platform/next/deploying-airbyte/creating-secrets).Mike
08/12/2025, 12:51 PMkapa.ai
08/12/2025, 12:51 PMkapa.ai
08/12/2025, 12:52 PMspec.containers[0].env[29].valueFrom.secretKeyRef.key: Invalid value: "password": a valid config key must consist of alphanumeric characters, '-', '_' or '.' (e.g. 'key.name', or 'KEY_NAME', or 'key-name', regex used for validation is '[-._a-zA-Z0-9]+') indicates that the key "password" used in your Kubernetes secret is not valid according to the expected key names for Airbyte's Helm chart. Airbyte expects specific key names for database credentials, such as database-password and database-user, not just password or user. How to resolve: - In your Kubernetes secret (secrets.yaml), use the key names database-user and database-password for your database credentials. - In your values.yaml, reference these keys using userSecretKey: database-user and passwordSecretKey: database-password under global.database, and set secretName to the name of your secret. Example: secrets.yaml yaml apiVersion: v1 kind: Secret metadata: name: airbyte-config-secrets namespace: airbyte-abctl type: Opaque stringData: database-user: "airbyte_user" database-password: "your_password_here" values.yaml yaml global: database: type: external host: airbyte.password.eu-west-2.rds.amazonaws.com port: 5432 database: airbyte userSecretKey: database-user passwordSecretKey: database-password secretName: airbyte-config-secrets ssl: true sslmode: require This approach is confirmed in the official documentation and community discussions, which specify that the secret keys must match what Airbyte expects, and the key names must follow Kubernetes conventions for valid config keys [see example](https://docs.airbyte.com/platform/next/deploying-airbyte/integrations/database#secrets) and [community discussion](https://github.com/airbytehq/airbyte/discussions/47256). If you follow this pattern, the error should be resolved. If you continue to see issues, double-check that your secret is created in the correct namespace and that the key names are exactly as shown above.Mike
08/12/2025, 1:05 PMkapa.ai
08/12/2025, 1:05 PMkapa.ai
08/12/2025, 1:06 PMERROR airbyte-bootloader: Failed to verify database connection. DEBUG airbyte-bootloader: Database is not ready yet. Please wait a moment, it might still be initializing... DEBUG airbyte-bootloader: Waiting for database to become available... DEBUG airbyte-bootloader: Testing airbyte configs database connection... indicate that the Airbyte bootloader is unable to connect to the configured database. This is a common issue when deploying Airbyte with an external database, and the root causes can include: - Incorrect database credentials or secret key names: Ensure your Kubernetes secret uses the correct key names (database-user and database-password) and that your values.yaml references them with userSecretKey and passwordSecretKey under global.database and sets secretName appropriately. If the key names do not match, Airbyte will not be able to retrieve the credentials and connect to the database [see example](https://github.com/airbytehq/airbyte/discussions/47256). - Database not accessible from the cluster: The database host must be reachable from your Kubernetes cluster. Network issues, such as security group or firewall rules, can prevent connectivity. One user resolved a similar issue by fixing their RDS security group settings to allow connections from the EKS cluster [see here](https://github.com/airbytehq/airbyte/issues/48854). - Database not initialized or missing required databases/tables: For a fresh Postgres instance, you may need to manually create the required databases (airbyte, temporal, and temporal_visibility) before deploying Airbyte [see here](https://github.com/airbytehq/airbyte/issues/49304). - Database version mismatch: Some users have reported issues when the Postgres version does not match what Airbyte expects. Using a supported version (e.g., Postgres 13.x) has resolved issues for others [see here](https://github.com/airbytehq/airbyte/issues/49304). If you have already checked your secret and values file for correct key names and ensured network connectivity, try connecting to the database manually from within a pod in your cluster to verify access. If the problem persists, review the bootloader logs for more specific error messages (such as authentication failures or connection timeouts), as these can provide further clues to the root cause. If you need more targeted help, please provide the full error message from the bootloader logs, especially any lines mentioning authentication failures, connection refused, or unknown host errors.