<@U04S8PLJWMT> does this gcs values are correct? ...
# ask-ai
i
@kapa.ai does this gcs values are correct? global: # -- Service Account name override serviceAccountName: &service-account-name airbyte-admin # -- Edition; "community" or "enterprise" edition: community secretName: "" local: false cluster: type: hybrid # "control-plane" | "data-plane" | "hybrid" secretName: "" controlPlane: bootstrap: dataPlane: secretName: "" clientIdSecretKey: "" clientSecretSecretKey: "" dataPlane: controlPlaneAuthEndpoint: "" enterprise: # -- Secret name where an Airbyte license key is stored secretName: "" # -- The key within
licenseKeySecretName
where the Airbyte license key is stored
licenseKeySecretKey: "" # -- The URL where Airbyte will be reached; This should match your Ingress host airbyteUrl: "" # Docker image config that will apply to all images. image: # Docker registry to pull platform images from, e.g. http://my-registry:8000/ registry: "" # Image tag to use for airbyte images. # Does not include non-airbyte images such as temporal, minio, etc. tag: "" # Docker image pull secret imagePullSecrets: [] # -- Auth configuration auth: # -- Whether auth is enabled enabled: false # -- Admin user configuration instanceAdmin: # -- The first name of the initial user firstName: "" # -- The last name of the initial user lastName: "" # -- The key within
emailSecretName
where the initial user's email is stored
emailSecretKey: "" # -- The key within
passwordSecretName
where the initial user's password is stored
passwordSecretKey: "" # -- SSO Identify Provider configuration; (requires Enterprise) identityProvider: # -- Secret name where the OIDC configuration is stored secretName: "" # -- The identity provider type (e.g. oidc) type: "" # one of: "oidc" or "generic-oidc" # -- OIDC configuration (required if
auth.identityProvider.type
is "oidc")
#oidc: # # -- OIDC application domain # domain: "" # # -- OIDC application name # appName: "" # # -- OIDC application display name # displayName: "" # # -- The key within
clientIdSecretName
where the OIDC client id is stored
# clientIdSecretKey: "" # # -- The key within
clientSecretSecretName
where the OIDC client secret is stored
# clientSecretSecretKey: "" # -- Generic OIDC configuration (required if
auth.identityProvider.type
is "generic-oidc")
#genericOidc: # clientId: "" # audience: "" # issuer: "" # extraScopes: "" # endpoints: # authorizationServerEndpoint: "" # jwksEndpoint: "" # fields: # subject: sub # email: email # name: name # issuer: iss internalApi: {} # -- Security configuration security: secretName: "" cookieSecureSetting: true cookieSameSiteSetting: Strict jwtSignatureSecretKey: "" dataPlane: clientIdSecretKey: "" clientSecretSecretKey: "" api: {} aws: assumeRole: accessKeyId: "" accessKeyIdSecretKey: "" secretAcessKey: "" secretAccessKeySecretKey: "" # -- Environment variables env_vars: {} # -- Secrets secrets: {} # -- CloudSQLProxy configuration cloudSqlProxy: enabled: false # -- Database configuration database: type: internal # "external" # -- Secret name where database credentials are stored # -- The database host host: "" # -- The database port port: # -- The database name name: "airbyte" # -- The database user user: "airbyte" # -- The key within
secretName
where the user is stored
#userSecretKey: "" # e.g. "database-user" # -- The database password password: "Nagomi12345" # -- The key within
secretName
where the password is stored
#passwordSecretKey: "" # e.g."database-password" dataplaneGroups: {} migrations: runAtStartup: true configDb: minimumFlywayMigrationVersion: "" jobsDb: minimumFlywayMigrationVersion: "" storage: secretName: "" # -- The storage backend type. Supports s3, gcs, azure, minio (default) type: gcs # default storage used # Minio # minio: # accessKeyId: minio # secretAccessKey: minio123 bucket: log: airbyte-audit-and-logging auditLogging: airbyte-audit-and-logging state: airbyte-audit-and-logging workloadOutput: airbyte-audit-and-logging activityPayload: airbyte-audit-and-logging # S3 # s3: # region: "us-east-2" # authenticationType: instanceProfile # S3 #s3: # region: "" ## e.g. us-east-1 # authenticationType: credentials ## Use "credentials" or "instanceProfile" # accessKeyId: "" # secretAccessKey: "" # GCS gcs: projectId: panda-poc-451212 credentialsJson: ewogICJ0eXBlIjogInNlcnZpY2VfYWNjb3VudCIsCiAgInByb2plY3RfaWQiOiAicGFuZGEtcG9jLTQ1MTIxMiIsCiAgInByaXZhdGVfa2V5X2lkIjogIjRiNTA5NDg4ODlhNjAzMDUyZDgzOGU2Y2E0MDc4N2ZkZWNhYjU2MWQiLAogICJwcml2YXRlX2tleS..... credentialsJsonPath: /secrets/gcs-log-creds # Azure #azure: # # one of the following: connectionString, connectionStringSecretKey # connectionString: <azure storage connection string> # connectionStringSecretKey: <secret coordinate containing an existing connection-string secret> #awsSecretManager: # region: <aws-region> # authenticationType: credentials ## Use "credentials" or "instanceProfile" # tags: ## Optional - You may add tags to new secrets created by Airbyte. # - key: ## e.g. team # value: ## e.g. deployments # - key: business-unit # value: engineering # kms: ## Optional - ARN for KMS Decryption. googleSecretManager: projectId: panda-poc-451212 region: "us-central1" ## e.g.§ us-central1 credentialsSecretKey: gcp.json #azureKeyVault: # tenantId: "" # vaultUrl: "" # clientId: "" # clientIdSecretKey: "" # clientSecret: "" # clientSecretSecretKey: "" # tags: "" #vault: # address: "" # prefix: "" # authToken: "" # authTokenSecretKey: "" logging: level: info httpAccessLogsEnabled: false log4jConfigFile: "/opt/airbyte/log4j2-json.xml" connectorRegistry: seedProvider: remote connectorRollout: expirationSeconds: waitBetweenRolloutSeconds: waitBetweenSyncResultsQueriesSeconds: workloads: secretName: "" namespace: jobs images: workloadInit: "" connectorSideCar: "" containerOrchestrator: "" containerOrchestrator: secretName: "airbyte-config-secrets" secretMountPath: "/secrets/gcs-log-creds/gcp.json" dataPlane: secretName: "" secretMountPath: "" queues: check: [CHECK_CONNECTION] discover: [DISCOVER_SCHEMA] sync: [SYNC] pubSub: enabled: false topicName: "" resources: useConnectorResourceDefaults: true mainContainer: cpu: {} memory: {} check: cpu: {} memory: {} discover: cpu: {} memory: {} replication: cpu: {} memory: {} sidecar: cpu: {} memory: {} fileTransfer: storage: request: 5G limit: 5G featureFlags: secretName: "" client: configfile configfile: {} #launchdarkly: # key: "" java: opts: [] metrics: enabled: false step: "" otlp: enabled: false # -- The open-telemetry-collector endpoint that metrics will be sent to collectorEndpoint: "" statsd: enabled: false flavor: "" host: "" port: "" otel: resourceAttributes: {} collector: endpoint: "" exporter: name: otlp protocol: grpc timeout: 30000 metricExportInterval: 10000 # Jobs resource requests and limits, see http://kubernetes.io/docs/user-guide/compute-resources/ # We usually recommend not to specify default resources and to leave this as a conscious # choice for the user. This also increases chances charts run on environments with little # resources, such as Minikube. jobs: resources: ## Example: ## requests: ## memory: 256Mi ## cpu: 250m # -- Job resource requests requests: {} ## Example: ## limits: ## cpu: 200m ## memory: 1Gi # -- Job resource limits limits: {} kube: _## JOB_KUBE_ANNOTATIONS_ # pod annotations of the sync job and the default pod annotations fallback for others jobs # -- key/value annotations applied to kube jobs annotations: {} _## JOB_KUBE_LABELS_ ## pod labels of the sync job and the default pod labels fallback for others jobs # -- key/value labels applied to kube jobs labels: {} _## JOB_KUBE_NODE_SELECTORS_ ## pod node selector of the sync job and the default pod node selector fallback for others jobs # -- Node labels for pod assignment nodeSelector: {} _## JOB_KUBE_TOLERATIONS_ # -- Node tolerations for pod assignment # Any boolean values should be quoted to ensure the value is passed through as a string. _## JOB_KUBE_MAIN_CONTAINER_IMAGE_PULL_SECRET_ # -- image pull secret to use for job pod mainContainerImagePullSecret: "" _## JOB_KUBE_MAIN_CONTAINER_IMAGE_PULL_POLICY_ # -- image pull policy to use for job pod mainContainerImagePullPolicy: "" localVolume: enabled: false scheduling: check: nodeSelectors: {} runtimeClassName: "" discover: nodeSelectors: {} runtimeClassName: "" isolated: nodeSelectors: {} runtimeClassName: "" sourceDeclarativeManifest: nodeSelectors: {} runtimeClassName: "" errors: reportingStrategy: logging #sentry: # dsn: "" topology: nodeSelectorLabel: airbyte/node-pool nodeSelectors: mainNodePool: main jobsNodePool: jobs quickJobsNodePool: quick-jobs temporal: secretName: "" cli: address: "" namespace: "" tlsCert: "" tlsCertSecretKey: TEMPORAL_CLOUD_CLIENT_CERT tlsKey: "" tlsKeySecretKey: TEMPORAL_CLOUD_CLIENT_KEY cloud: enabled: false host: "" namespace: "" clientCert: "" clientCertSecretKey: TEMPORAL_CLOUD_CLIENT_CERT clientKey: "" clientKeySecretKey: TEMPORAL_CLOUD_CLIENT_KEY sdk: rpc: timeout: 120s longPollTimeout: 140s queryTimeout: 20s stigg: secretName: "" apiKeySecretKey: "" datadog: enabled: false env: dev traceAgentPort: 8126 statsd: port: 8125 integrations: dbm: enabled: false propagationMode: full grpc: enabled: false clientEnabled: false serverEnabled: false googleHttpClient: enabled: false httpUrlConnection: enabled: false kotlinCoroutineExperimental: enabled: false urlConnection: enabled: false netty: enabled: false netty41: enabled: false customerio: secretName: "" apiKeySecretKey: "" tracking: enabled: true secretName: "" strategy: segment # one of: logging, segment segment: writeKey: "" writeKeySecretKey: "" micronaut: environments: ["k8s"] extraSelectorLabels: {} extraInitContainers: [] extraContainers: []
k
Based on the provided values and the available Airbyte documentation, your GCS configuration in the values.yaml file appears mostly correct, but there are a few points to clarify and double-check: ### Key Points from Your Configuration - You have set
global.storage.type: gcs
, which is correct for using Google Cloud Storage. - The
bucket
section lists the buckets for logs, audit logging, state, workload output, and activity payload, all set to
airbyte-audit-and-logging
. This is valid if you want to use the same bucket for all these purposes. - The
gcs
section includes both
projectId
and a
credentialsJson
(which appears to be a base64-encoded service account key), as well as a
credentialsJsonPath
. - The
containerOrchestrator.secretMountPath
is set to
/secrets/gcs-log-creds/gcp.json
, which should match where your credentials are mounted in the container. ### Reference to Documentation According to the Airbyte Helm chart v2 documentation, the relevant GCS settings are: -
global.storage.gcs.projectId
-
global.storage.gcs.credentialsJson
-
global.storage.gcs.credentialsJsonPath
-
global.storage.bucket.log
,
global.storage.bucket.state
, etc. Your configuration matches these documented fields. The documentation also shows that you can specify the GCS credentials either as a JSON string or as a path to a mounted secret file, which you have done. Just ensure that the path and the actual secret mounting in your Kubernetes cluster are consistent and that the file is accessible to the Airbyte pods at runtime. See the mapping here: > GCS_LOG_BUCKET global.storage.gcs.bucket > S3_BUCKET global.storage.s3.bucket > S3_REGION global.storage.s3.region > S3_AWS_KEY global.storage.s3.accessKeyId > S3_AWS_SECRET global.storage.s3.secretAccessKey > ... > GCS > gcs: > projectId: ... > credentialsJson: ... > credentialsJsonPath: ... > [Upgrade to Helm chart V2 (Core) – Update your values.yaml file](https://docs.airbyte.com/platform/next/deploying-airbyte/chart-v2-community#update-your-valuesyaml-file) ### Additional Notes - Make sure the service account in
credentialsJson
has the necessary permissions for the specified bucket. - If you use both
credentialsJson
and
credentialsJsonPath
, Airbyte will use the one that is properly mounted and referenced at runtime. - The
googleSecretManager
section is only needed if you are using Google Secret Manager for secrets, not for GCS storage itself. ### Summary Your GCS values are correct according to the Airbyte documentation, provided that the credentials and bucket names are valid and the secret is mounted correctly in your Kubernetes environment. If you encounter issues, double-check the secret mounting and permissions. If you need to troubleshoot further, please provide any error messages you encounter, as misconfigurations often show up as authentication or access errors in logs. For more details, refer to the official documentation: [Upgrade to Helm chart V2 (Core) – Update your values.yaml file](https://docs.airbyte.com/platform/next/deploying-airbyte/chart-v2-community#update-your-valuesyaml-file).
i
so why do I get: io.micronaut.context.exceptions.BeanInstantiationException: Bean definition [io.airbyte.server.apis.controllers.SourceDefinitionApiController] could not be loaded: Error instantiating bean of type [io.airbyte.commons.logging.LogClientManager] Message: /secrets/gcs-log-creds Path Taken: @kapa.ai
k
A message from kapa.ai
The error message you are seeing:
Copy code
io.micronaut.context.exceptions.BeanInstantiationException: Bean definition [io.airbyte.server.apis.controllers.SourceDefinitionApiController] could not be loaded: Error instantiating bean of type  [io.airbyte.commons.logging.LogClientManager] Message: /secrets/gcs-log-creds
indicates that Airbyte is unable to find or access the GCS credentials at the expected path
/secrets/gcs-log-creds
. This is a common issue when the Kubernetes secret containing your GCS credentials is not mounted correctly, or the path is misconfigured. Based on the knowledge sources: - The secret containing your GCS credentials must be created and mounted at the path specified in your
values.yaml
(e.g.,
/secrets/gcs-log-creds/gcp.json
). - The
credentialsJsonPath
or
credentialsPath
in your configuration should match the actual mount path of the secret in the container. - If the secret is not mounted, or the path is incorrect, Airbyte components will fail to start with errors referencing the missing file or directory, as you are seeing. Common causes and solutions: 1. Secret Not Created or Named Incorrectly: Ensure the Kubernetes secret containing your GCS credentials exists and is named as expected. For example, if you set
global.storage.secretName: airbyte-config-secrets
, the secret must exist with that name and contain the
gcp.json
key. 2. Incorrect Path: The path in your values file (e.g.,
/secrets/gcs-log-creds/gcp.json
) must match where the secret is mounted in the pod. If you only specify
/secrets/gcs-log-creds
, Airbyte may expect a file or directory at that exact path, not a file inside it. 3. Helm Chart Key Mismatch: There have been issues and changes in the Helm chart regarding the correct key for the secret name. In some versions, you must use
storageSecretName
instead of
secretName
under
global.storage
for GCS ([see this issue](https://github.com/airbytehq/airbyte/issues/44525)). If the wrong key is used, the secret may not be mounted at all. 4. Workaround for Mounting: Some users have worked around this by explicitly setting environment variables for the orchestrator, such as:
Copy code
yaml    global:      workloads:        containerOrchestrator:          secretName: "airbyte-gcs-log-creds"          secretMountPath: "/secrets/gcs-log-creds"
Replace
"airbyte-gcs-log-creds"
with your actual secret name, and ensure the mount path matches your configuration and the file exists at that location in the pod [[source]](https://github.com/airbytehq/airbyte/issues/65153). Summary: Your error is most likely due to a mismatch between the expected secret mount path and the actual secret configuration in your Kubernetes cluster. Double-check the secret name, the mount path, and the key used in your Helm values file. If you are using Helm chart v2, also ensure you are using the correct key (
secretName
vs.
storageSecretName
) as per your chart version [[source]](https://github.com/airbytehq/airbyte/issues/68177). If you need more specific help, please provide the relevant section of your
values.yaml
and the output of
kubectl get secrets
for your namespace.