Created
June 11, 2018 16:02
-
-
Save watiko/50eaf893418ca4b9f4129f387fbbe641 to your computer and use it in GitHub Desktop.
Kubernetes envFrom with env
This file contains 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: v1 | |
kind: ConfigMap | |
metadata: | |
name: myconf | |
data: | |
TEST_KEY: my-value | |
--- | |
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: mydep | |
spec: | |
replicas: 1 | |
template: | |
spec: | |
containers: | |
- name: myapp | |
image: alpine | |
command: | |
- sleep | |
- '10000' | |
envFrom: | |
- configMapRef: | |
name: myconf | |
env: | |
- name: GEN_TEST_KEY | |
value: 'PREFIX_$(TEST_KEY)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment