Skip to content

Instantly share code, notes, and snippets.

@ccollicutt
Created September 26, 2018 20:30
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 ccollicutt/3985699e0ea93c675fa5e3ffae0db1db to your computer and use it in GitHub Desktop.
Save ccollicutt/3985699e0ea93c675fa5e3ffae0db1db to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: web-dep
labels:
tier: frontend
annotations:
AppVersion: "3.4"
spec:
replicas: 2
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
securityContext:
runAsUser: 1000
containers:
- name: nginx
image: nginx:1.7.9
ports:
- containerPort: 80
command: ["sleep", "1000"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment