Skip to content

Instantly share code, notes, and snippets.

@vigneshragupathy
Created September 29, 2018 13:50
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 vigneshragupathy/f9e4411097e480aa90bc32a272c9cb4d to your computer and use it in GitHub Desktop.
Save vigneshragupathy/f9e4411097e480aa90bc32a272c9cb4d to your computer and use it in GitHub Desktop.
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
system: secondary
name: nginx-service
namespace: accounting
spec:
replicas: 2
template:
metadata:
labels:
app: nginx
spec:
containers:
- image: nginx:1.7.9
imagePullPolicy: Always
name: nginx
ports:
- containerPort: 80
protocol: TCP
nodeSelector:
system: secondOne
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment