Skip to content

Instantly share code, notes, and snippets.

@thomastaylor312
Created November 3, 2016 23:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomastaylor312/33fc6b9dbd3e5737349e293cb3e4f093 to your computer and use it in GitHub Desktop.
Save thomastaylor312/33fc6b9dbd3e5737349e293cb3e4f093 to your computer and use it in GitHub Desktop.
An example Deployment
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: test
spec:
replicas: 1
template:
spec:
containers:
- name: test
image: alpine:latest
volumeMounts:
- mountPath: /var/myapp/
name: config
volumes:
- name: config
configMap:
name: alert-rules
defaultMode: 600
items:
- key: foo-file
path: config.yml
- key: special.conf
mode: 644
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment