Skip to content

Instantly share code, notes, and snippets.

@RahulMahale
Created August 10, 2018 10:36
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 RahulMahale/4286fbeb88db7ffe620da81ac03e3ffc to your computer and use it in GitHub Desktop.
Save RahulMahale/4286fbeb88db7ffe620da81ac03e3ffc to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx
spec:
replicas: 2
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:latest
imagePullPolicy: IfNotPresent # if exists, will not pull new image
resources:
limits:
memory: "128Mi"
cpu: "200m"
requests:
memory: "64Mi"
cpu: "100m"
ports:
- containerPort: 80
- containerPort: 443
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment