I’m deploying Airbyte on Kubernetes with an extern...
# replication-troubleshooting
i
I’m deploying Airbyte on Kubernetes with an external PostgreSQL database and Google Cloud Storage (GCS) for logs. I created the Kubernetes secret with my GCP service account key:
Copy code
kubectl create secret generic gcs-log-creds -n airbyte --from-file=gcp.json=./gcs-key.json
Inside the pod, I see the environment variable:
Copy code
GOOGLE_APPLICATION_CREDENTIALS=/secrets/gcs-log-creds/gcp.json
But when I describe the pod (
kubectl describe pod
), the secret is not mounted as a volume. The only mounts are
/config
and the default service account token. Because of this, the pod crashes with the error:
Copy code
java.nio.file.NoSuchFileException: /secrets/gcs-log-creds/gcp.json
So the problem is: The secret
gcs-log-creds
exists in Kubernetes, but it’s not being mounted into the pod at
/secrets/gcs-log-creds/gcp.json
, even though Airbyte expects it there. values.yaml
Copy code
# --- Configuração Global ---
global:
  edition: community  
  
  # --- Configuração de Banco de Dados Externa ---
  database:
    type: external
    secretName: airbyte-config-secrets
    host: 10.54.242.3
    port: 5432
    name: airbyte
    userSecretKey: DATABASE_USER
    passwordSecretKey: DATABASE_PASSWORD

  # --- Configuração de Armazenamento Externa (GCS) ---
  storage:
    secretName: gcs-log-creds
    type: gcs
    bucket:
      log: airbyte-guaradata-logs-communal-hen
      auditLogging: airbyte-guaradata-logs-communal-hen
      state: airbyte-guaradata-logs-communal-hen
      workloadOutput: airbyte-guaradata-logs-communal-hen
      activityPayload: airbyte-guaradata-logs-communal-hen
    gcs:
      projectId: guaradata
      credentialsJsonPath: /secrets/gcs-log-creds/gcp.json

  # --- Configuração de Segredos ---
  secretsManager:
    enabled: false

  # --- Configuração CRÍTICA: Agendamento dos Pods de Job (Sync, Check, Discover) ---
  jobs:
    kube:
      nodeSelector:
        workload-type: airbyte-jobs

# --- Configuração de Service Account ---
serviceAccount:
  create: "true"
  name: airbyte-admin

# --- Desativar serviços internos ---
postgresql:
  enabled: false

minio:
  enabled: false

# --- Componentes (renomeados para o formato oficial V2) ---
airbyteBootloader:
  podAnnotations:
    "cluster-autoscaler.kubernetes.io/safe-to-evict": "true"
  nodeSelector:
    workload-type: airbyte-services

webapp:
  nodeSelector:
    workload-type: airbyte-services

server:
  nodeSelector:
    workload-type: airbyte-services

worker:
  nodeSelector:
    workload-type: airbyte-services

temporal:
  nodeSelector:
    workload-type: airbyte-services

# --- PodAnnotations globais (mantive sua anotação) ---
podAnnotations:
  "cluster-autoscaler.kubernetes.io/safe-to-evict": "true"
Install Airbyte in cluster:
Copy code
kubectl create namespace airbyte

kubectl create serviceaccount airbyte-admin --namespace airbyte

kubectl create secret generic airbyte-config-secrets --namespace airbyte `
  --from-literal=DATABASE_USER=airbyte `
  --from-literal=DATABASE_PASSWORD=123 `

kubectl create secret generic gcs-log-creds --namespace airbyte `
  --from-file=GOOGLE_APPLICATION_CREDENTIALS_JSON=./gcs-key.json `
  --from-file=gcp.json=./gcs-key.json

helm install airbyte airbyte-v2/airbyte --namespace airbyte --version 2.0.3 -f values.yaml --set global.image.tag=1.7.0
k
New message text here
i
@kapa.ai storageSecretName is not present in airbyte v2 chart
k
A message from kapa.ai
Thank you for your clarification. Based on the provided knowledge sources, the official Airbyte v2 Helm chart documentation does not mention
storageSecretName
as a supported key
. Instead, the documentation and example
values.yaml
files consistently use
secretName
under the
global.storage
section for specifying the Kubernetes secret that contains your GCS credentials. For example, the documentation shows:
Copy code
yaml global:   storage:     type: "GCS"     secretName: gcs-log-creds     bucket:       log: airbyte-bucket       state: airbyte-bucket       workloadOutput: airbyte-bucket     gcs:       projectId: <project-id>       credentialsJsonPath: /secrets/gcs-log-creds/gcp.json
This pattern is repeated in both the [community](https://docs.airbyte.com/platform/deploying-airbyte/chart-v2-community#update-your-valuesyaml-file) and [enterprise](https://docs.airbyte.com/platform/enterprise-setup/chart-v2-enterprise#update-your-valuesyaml-file) v2 chart documentation. If you use
secretName
, the chart should mount the secret as expected.
If this is not happening, it may be a bug or a Helm chart regression, but according to the official documentation,
storageSecretName
is not a supported or documented key for v2. If you are still experiencing issues with the secret not being mounted, double-check: - The secret exists and is in the correct namespace. - The secret contains a key named
gcp.json
. - Your
values.yaml
uses
secretName
(not
storageSecretName
). If the problem persists, it may be related to a known issue or a bug in the chart, as discussed in some GitHub issues, but the official documentation for v2 does not mention
storageSecretName
as a valid configuration option for storage secrets[Update your values.yaml file (community)](https://docs.airbyte.com/platform/deploying-airbyte/chart-v2-community#update-your-valuesyaml-file)[Update your values.yaml file (enterprise)](https://docs.airbyte.com/platform/enterprise-setup/chart-v2-enterprise#update-your-valuesyaml-file).
s
hi @Ivan Barbosa Pinheiro , I am hitting into the same issue, was wondering if you have resolved the issue