Skip to content

Instantly share code, notes, and snippets.

@xcoulon
Created November 19, 2017 15:47
Show Gist options
  • Save xcoulon/ddb04afdb8338b36d41d281aaf6c6c04 to your computer and use it in GitHub Desktop.
Save xcoulon/ddb04afdb8338b36d41d281aaf6c6c04 to your computer and use it in GitHub Desktop.
Managing Pod configuration using ConfigMaps and Secrets in Kubernetes (resource for the story on Medium)
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: postgres
spec:
...
env:
- name: POSTGRES_DB
value: url_shortener_db
- name: POSTGRES_USER
value: user
- name: POSTGRES_PASSWORD
value: mysecretpassword
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment