Skip to content

Instantly share code, notes, and snippets.

@pahud
Last active April 21, 2019 22:47
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 pahud/01e46f3acb8665f91d92ff6879c8ade8 to your computer and use it in GitHub Desktop.
Save pahud/01e46f3acb8665f91d92ff6879c8ade8 to your computer and use it in GitHub Desktop.
nginx deployment yaml for k8s
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
labels:
app: nginx
spec:
replicas: 3
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx
ports:
- containerPort: 80
nodeSelector:
lifecycle: "OnDemand"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment