Skip to content

Instantly share code, notes, and snippets.

@mvidalgarcia
Last active June 14, 2017 15:34
Show Gist options
  • Save mvidalgarcia/d7d92e2159987c9bb859ab7fcbcaf6d6 to your computer and use it in GitHub Desktop.
Save mvidalgarcia/d7d92e2159987c9bb859ab7fcbcaf6d6 to your computer and use it in GitHub Desktop.
# ConfigMaps
spec:
containers:
- env:
volumeMounts:
- mountPath: /cephalopod/settings
name: settings-volume
# ...
spec:
volumes:
- name: settings-volume
configMap:
name: settings
items:
- key: config-file
path: cephalopod.cfg
# Secrets
env:
- name: CEPHALOPOD_CONFIG
valueFrom:
configMapKeyRef:
key: config-path
name: settings
- name: PGDATABASE
valueFrom:
configMapKeyRef:
key: pgdatabase
name: settings
- name: PGHOST
valueFrom:
configMapKeyRef:
key: pghost
name: settings
- name: PGPORT
valueFrom:
configMapKeyRef:
key: pgport
name: settings
- name: PGUSER
valueFrom:
configMapKeyRef:
key: pguser
name: settings
- name: PGPASSWORD
valueFrom:
secretKeyRef:
key: pgpassword
name: secrets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment