Skip to content

Commit

Permalink
add secrets to kubernetes yamls (#5962)
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammad-bolt authored Sep 10, 2021
1 parent 75e4998 commit 332687a
Show file tree
Hide file tree
Showing 16 changed files with 70 additions and 54 deletions.
5 changes: 0 additions & 5 deletions kube/overlays/dev-integration-test/.env
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
AIRBYTE_VERSION=dev

# Airbyte Internal Database, see https://docs.airbyte.io/operator-guides/configuring-airbyte-db
DATABASE_USER=docker
DATABASE_PASSWORD=docker
DATABASE_HOST=airbyte-db-svc
DATABASE_PORT=5432
DATABASE_DB=airbyte
Expand Down Expand Up @@ -43,14 +41,11 @@ LOG_LEVEL=INFO
# S3/Minio Log Configuration
S3_LOG_BUCKET=airbyte-dev-logs
S3_LOG_BUCKET_REGION=
AWS_ACCESS_KEY_ID=minio
AWS_SECRET_ACCESS_KEY=minio123
S3_MINIO_ENDPOINT=http://airbyte-minio-svc:9000
S3_PATH_STYLE_ACCESS=true

# GCS Log Configuration
GCP_STORAGE_BUCKET=
GOOGLE_APPLICATION_CREDENTIALS=

# Docker Resource Limits
RESOURCE_CPU_REQUEST=
Expand Down
5 changes: 5 additions & 0 deletions kube/overlays/dev-integration-test/.secrets
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
DATABASE_USER=docker
DATABASE_PASSWORD=docker
AWS_ACCESS_KEY_ID=minio
AWS_SECRET_ACCESS_KEY=minio123
GOOGLE_APPLICATION_CREDENTIALS=
4 changes: 4 additions & 0 deletions kube/overlays/dev-integration-test/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ configMapGenerator:
- name: airbyte-env
env: .env

secretGenerator:
- name: airbyte-secrets
env: .secrets

patchesStrategicMerge:
- pod-antiaffinity.yaml
- parallelize-worker.yaml
5 changes: 0 additions & 5 deletions kube/overlays/dev/.env
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
AIRBYTE_VERSION=dev

# Airbyte Internal Database, see https://docs.airbyte.io/operator-guides/configuring-airbyte-db
DATABASE_USER=docker
DATABASE_PASSWORD=docker
DATABASE_HOST=airbyte-db-svc
DATABASE_PORT=5432
DATABASE_DB=airbyte
Expand Down Expand Up @@ -45,14 +43,11 @@ LOG_LEVEL=INFO
# S3/Minio Log Configuration
S3_LOG_BUCKET=airbyte-dev-logs
S3_LOG_BUCKET_REGION=
AWS_ACCESS_KEY_ID=minio
AWS_SECRET_ACCESS_KEY=minio123
S3_MINIO_ENDPOINT=http://airbyte-minio-svc:9000
S3_PATH_STYLE_ACCESS=true

# GCS Log Configuration
GCP_STORAGE_BUCKET=
GOOGLE_APPLICATION_CREDENTIALS=

# Docker Resource Limits
RESOURCE_CPU_REQUEST=
Expand Down
5 changes: 5 additions & 0 deletions kube/overlays/dev/.secrets
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
DATABASE_USER=docker
DATABASE_PASSWORD=docker
AWS_ACCESS_KEY_ID=minio
AWS_SECRET_ACCESS_KEY=minio123
GOOGLE_APPLICATION_CREDENTIALS=
4 changes: 4 additions & 0 deletions kube/overlays/dev/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ images:
configMapGenerator:
- name: airbyte-env
env: .env

secretGenerator:
- name: airbyte-secrets
env: .secrets
5 changes: 0 additions & 5 deletions kube/overlays/stable-with-resource-limits/.env
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
AIRBYTE_VERSION=0.29.17-alpha

# Airbyte Internal Database, see https://docs.airbyte.io/operator-guides/configuring-airbyte-db
DATABASE_USER=docker
DATABASE_PASSWORD=docker
DATABASE_HOST=airbyte-db-svc
DATABASE_PORT=5432
DATABASE_DB=airbyte
Expand Down Expand Up @@ -45,14 +43,11 @@ LOG_LEVEL=INFO
# S3/Minio Log Configuration
S3_LOG_BUCKET=airbyte-dev-logs
S3_LOG_BUCKET_REGION=
AWS_ACCESS_KEY_ID=minio
AWS_SECRET_ACCESS_KEY=minio123
S3_MINIO_ENDPOINT=http://airbyte-minio-svc:9000
S3_PATH_STYLE_ACCESS=true

# GCS Log Configuration
GCP_STORAGE_BUCKET=
GOOGLE_APPLICATION_CREDENTIALS=

# Docker Resource Limits
RESOURCE_CPU_REQUEST=
Expand Down
5 changes: 5 additions & 0 deletions kube/overlays/stable-with-resource-limits/.secrets
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
DATABASE_USER=docker
DATABASE_PASSWORD=docker
AWS_ACCESS_KEY_ID=minio
AWS_SECRET_ACCESS_KEY=minio123
GOOGLE_APPLICATION_CREDENTIALS=
4 changes: 4 additions & 0 deletions kube/overlays/stable-with-resource-limits/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,9 @@ configMapGenerator:
- name: airbyte-env
env: .env

secretGenerator:
- name: airbyte-secrets
env: .secrets

patchesStrategicMerge:
- set-resource-limits.yaml
5 changes: 0 additions & 5 deletions kube/overlays/stable/.env
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
AIRBYTE_VERSION=0.29.17-alpha

# Airbyte Internal Database, see https://docs.airbyte.io/operator-guides/configuring-airbyte-db
DATABASE_USER=docker
DATABASE_PASSWORD=docker
DATABASE_HOST=airbyte-db-svc
DATABASE_PORT=5432
DATABASE_DB=airbyte
Expand Down Expand Up @@ -45,14 +43,11 @@ LOG_LEVEL=INFO
# S3/Minio Log Configuration
S3_LOG_BUCKET=airbyte-dev-logs
S3_LOG_BUCKET_REGION=
AWS_ACCESS_KEY_ID=minio
AWS_SECRET_ACCESS_KEY=minio123
S3_MINIO_ENDPOINT=http://airbyte-minio-svc:9000
S3_PATH_STYLE_ACCESS=true

# GCS Log Configuration
GCP_STORAGE_BUCKET=
GOOGLE_APPLICATION_CREDENTIALS=

# Docker Resource Limits
RESOURCE_CPU_REQUEST=
Expand Down
5 changes: 5 additions & 0 deletions kube/overlays/stable/.secrets
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
DATABASE_USER=docker
DATABASE_PASSWORD=docker
AWS_ACCESS_KEY_ID=minio
AWS_SECRET_ACCESS_KEY=minio123
GOOGLE_APPLICATION_CREDENTIALS=
4 changes: 4 additions & 0 deletions kube/overlays/stable/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@ configMapGenerator:
- name: airbyte-env
envs:
- .env

secretGenerator:
- name: airbyte-secrets
env: .secrets
20 changes: 10 additions & 10 deletions kube/resources/scheduler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ spec:
key: DATABASE_PORT
- name: DATABASE_PASSWORD
valueFrom:
configMapKeyRef:
name: airbyte-env
secretKeyRef:
name: airbyte-secrets
key: DATABASE_PASSWORD
- name: DATABASE_URL
valueFrom:
Expand All @@ -48,8 +48,8 @@ spec:
key: DATABASE_URL
- name: DATABASE_USER
valueFrom:
configMapKeyRef:
name: airbyte-env
secretKeyRef:
name: airbyte-secrets
key: DATABASE_USER
- name: TRACKING_STRATEGY
valueFrom:
Expand Down Expand Up @@ -134,13 +134,13 @@ spec:
key: S3_LOG_BUCKET_REGION
- name: AWS_ACCESS_KEY_ID
valueFrom:
configMapKeyRef:
name: airbyte-env
secretKeyRef:
name: airbyte-secrets
key: AWS_ACCESS_KEY_ID
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
configMapKeyRef:
name: airbyte-env
secretKeyRef:
name: airbyte-secrets
key: AWS_SECRET_ACCESS_KEY
- name: S3_MINIO_ENDPOINT
valueFrom:
Expand All @@ -154,8 +154,8 @@ spec:
key: S3_PATH_STYLE_ACCESS
- name: GOOGLE_APPLICATION_CREDENTIALS
valueFrom:
configMapKeyRef:
name: airbyte-env
secretKeyRef:
name: airbyte-secrets
key: GOOGLE_APPLICATION_CREDENTIALS
- name: GCP_STORAGE_BUCKET
valueFrom:
Expand Down
20 changes: 10 additions & 10 deletions kube/resources/server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ spec:
key: CONFIG_ROOT
- name: DATABASE_PASSWORD
valueFrom:
configMapKeyRef:
name: airbyte-env
secretKeyRef:
name: airbyte-secrets
key: DATABASE_PASSWORD
- name: DATABASE_URL
valueFrom:
Expand All @@ -50,8 +50,8 @@ spec:
key: DATABASE_URL
- name: DATABASE_USER
valueFrom:
configMapKeyRef:
name: airbyte-env
secretKeyRef:
name: airbyte-secrets
key: DATABASE_USER
- name: TRACKING_STRATEGY
valueFrom:
Expand Down Expand Up @@ -115,13 +115,13 @@ spec:
key: S3_LOG_BUCKET_REGION
- name: AWS_ACCESS_KEY_ID
valueFrom:
configMapKeyRef:
name: airbyte-env
secretKeyRef:
name: airbyte-secrets
key: AWS_ACCESS_KEY_ID
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
configMapKeyRef:
name: airbyte-env
secretKeyRef:
name: airbyte-secrets
key: AWS_SECRET_ACCESS_KEY
- name: S3_MINIO_ENDPOINT
valueFrom:
Expand All @@ -135,8 +135,8 @@ spec:
key: S3_PATH_STYLE_ACCESS
- name: GOOGLE_APPLICATION_CREDENTIALS
valueFrom:
configMapKeyRef:
name: airbyte-env
secretKeyRef:
name: airbyte-secrets
key: GOOGLE_APPLICATION_CREDENTIALS
- name: GCP_STORAGE_BUCKET
valueFrom:
Expand Down
8 changes: 4 additions & 4 deletions kube/resources/temporal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@ spec:
env:
- name: POSTGRES_USER
valueFrom:
configMapKeyRef:
name: airbyte-env
secretKeyRef:
name: airbyte-secrets
key: DATABASE_USER
- name: POSTGRES_PWD
valueFrom:
configMapKeyRef:
name: airbyte-env
secretKeyRef:
name: airbyte-secrets
key: DATABASE_PASSWORD
- name: DYNAMIC_CONFIG_FILE_PATH
value: "config/dynamicconfig/development.yaml"
Expand Down
20 changes: 10 additions & 10 deletions kube/resources/worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ spec:
key: DATABASE_PORT
- name: DATABASE_PASSWORD
valueFrom:
configMapKeyRef:
name: airbyte-env
secretKeyRef:
name: airbyte-secrets
key: DATABASE_PASSWORD
- name: DATABASE_URL
valueFrom:
Expand All @@ -50,8 +50,8 @@ spec:
key: DATABASE_URL
- name: DATABASE_USER
valueFrom:
configMapKeyRef:
name: airbyte-env
secretKeyRef:
name: airbyte-secrets
key: DATABASE_USER
- name: TRACKING_STRATEGY
valueFrom:
Expand Down Expand Up @@ -136,13 +136,13 @@ spec:
key: S3_LOG_BUCKET_REGION
- name: AWS_ACCESS_KEY_ID
valueFrom:
configMapKeyRef:
name: airbyte-env
secretKeyRef:
name: airbyte-secrets
key: AWS_ACCESS_KEY_ID
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
configMapKeyRef:
name: airbyte-env
secretKeyRef:
name: airbyte-secrets
key: AWS_SECRET_ACCESS_KEY
- name: S3_MINIO_ENDPOINT
valueFrom:
Expand All @@ -156,8 +156,8 @@ spec:
key: S3_PATH_STYLE_ACCESS
- name: GOOGLE_APPLICATION_CREDENTIALS
valueFrom:
configMapKeyRef:
name: airbyte-env
secretKeyRef:
name: airbyte-secrets
key: GOOGLE_APPLICATION_CREDENTIALS
- name: GCP_STORAGE_BUCKET
valueFrom:
Expand Down

0 comments on commit 332687a

Please sign in to comment.