Skip to content

Instantly share code, notes, and snippets.

@lalyos
Last active July 2, 2018 05:44
Show Gist options
  • Save lalyos/cb415d158cb4cdcc9c645017b6f8f9b7 to your computer and use it in GitHub Desktop.
Save lalyos/cb415d158cb4cdcc9c645017b6f8f9b7 to your computer and use it in GitHub Desktop.
config map example
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