Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save d-nishi/a5c1d0db643f7957710f4c121e6b98ae to your computer and use it in GitHub Desktop.
Save d-nishi/a5c1d0db643f7957710f4c121e6b98ae to your computer and use it in GitHub Desktop.
nginx-deployment-new.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
labels:
app: nginx
spec:
replicas: 20
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:1.7.9
ports:
- containerPort: 80
imagePullPolicy: IfNotPresent
resources:
requests:
memory: "256Mi"
cpu: "250m"
limits:
memory: "1000Mi"
cpu: "500m"
nodeSelector:
type: virtual-kubelet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment