Created
April 3, 2018 13:25
-
-
Save wjx0912/5941737974edc91c462f05e8a0a50dce to your computer and use it in GitHub Desktop.
kubernetes yaml example: nginx
This file contains hidden or 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: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: nginx-deployment | |
spec: | |
replicas: 2 | |
template: | |
metadata: | |
labels: | |
app: nginx | |
spec: | |
containers: | |
- name: nginx | |
image: nginx:1.7.9 | |
ports: | |
- containerPort: 80 | |
resources: | |
requests: | |
cpu: 400m |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment