Skip to content

Instantly share code, notes, and snippets.

@xcoulon
Created November 19, 2017 15:48
Show Gist options
  • Save xcoulon/35bc5930ac603126f385857ae372886b to your computer and use it in GitHub Desktop.
Save xcoulon/35bc5930ac603126f385857ae372886b 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: webapp
spec:
...
env:
- name: POSTGRES_HOST
value: postgres
- name: POSTGRES_PORT
value: "5432"
- name: POSTGRES_DATABASE
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