Last active
July 2, 2018 05:44
-
-
Save lalyos/cb415d158cb4cdcc9c645017b6f8f9b7 to your computer and use it in GitHub Desktop.
config map example
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: v1 | |
data: | |
index.html: hello from config | |
kind: ConfigMap | |
metadata: | |
name: webconfig | |
--- | |
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
annotations: | |
labels: | |
run: web | |
name: web | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
run: web | |
strategy: {} | |
template: | |
metadata: | |
labels: | |
run: web | |
spec: | |
containers: | |
- image: nginx | |
volumeMounts: | |
- name: webvol | |
mountPath: /usr/share/nginx/html/ | |
name: web | |
ports: | |
- containerPort: 80 | |
resources: {} | |
volumes: | |
- name: webvol | |
configMap: | |
name: webconfig | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment