Created
November 19, 2017 15:48
-
-
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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