Skip to content

Commit

Permalink
adapt kustomization to new configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ftsell authored and timonegk committed Jan 1, 2021
1 parent 04033c0 commit 743144f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
11 changes: 5 additions & 6 deletions k8s/web_app.yml
Expand Up @@ -30,9 +30,6 @@ spec:
tier: web
spec:
volumes:
- name: config
configMap:
name: imagetagger-web
- name: data
persistentVolumeClaim:
claimName: imagetagger-image-data
Expand All @@ -44,10 +41,12 @@ spec:
containerPort: 3008
- name: http
containerPort: 80
envFrom:
- configMapRef:
name: imagetagger-web
- configMapRef:
name: imagetagger-postgres
volumeMounts:
- name: config
mountPath: /app/config
readOnly: true
- name: data
mountPath: /app/data
livenessProbe:
Expand Down
9 changes: 7 additions & 2 deletions kustomization.yml
Expand Up @@ -12,8 +12,13 @@ resources:

configMapGenerator:
- name: imagetagger-web
files:
- "settings.py=./imagetagger/imagetagger/settings.py.example"
literals:
# service hostname
- "IT_DB_HOST=imagetagger-postgres"
# references to below postgres configMap which is also mounted in the pod
- "IT_DB_USER=$(POSTGRES_USER)"
- "IT_DB_PASSWORD=$(POSTGRES_PASSWORD)"
- "IT_DB_NAME=$(POSTGRES_DB)"
- name: imagetagger-postgres
literals:
- "POSTGRES_PASSWORD=imagetagger"
Expand Down

0 comments on commit 743144f

Please sign in to comment.