Last active
April 21, 2019 22:47
-
-
Save pahud/01e46f3acb8665f91d92ff6879c8ade8 to your computer and use it in GitHub Desktop.
nginx deployment yaml for k8s
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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