Last active
June 25, 2019 03:40
-
-
Save mascot6699/e785344a67b578c58a13b30faa9b5da5 to your computer and use it in GitHub Desktop.
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
# a comment | |
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: nginx | |
labels: | |
app: nginx # arbitrary label on deployment | |
spec: | |
replicas: 3 | |
selector: | |
matchLabels: # labels the replica selector should match | |
app: nginx | |
template: | |
metadata: | |
labels: | |
app: nginx # label for replica selector to match | |
version: alpine # arbitrary label we can match on elsewhere | |
spec: | |
containers: | |
- name: nginx | |
image: nginx:alpine | |
ports: | |
- containerPort: 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment