Created
August 10, 2018 10:36
-
-
Save RahulMahale/4286fbeb88db7ffe620da81ac03e3ffc 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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: nginx | |
spec: | |
replicas: 2 | |
selector: | |
matchLabels: | |
app: nginx | |
template: | |
metadata: | |
labels: | |
app: nginx | |
spec: | |
containers: | |
- name: nginx | |
image: nginx:latest | |
imagePullPolicy: IfNotPresent # if exists, will not pull new image | |
resources: | |
limits: | |
memory: "128Mi" | |
cpu: "200m" | |
requests: | |
memory: "64Mi" | |
cpu: "100m" | |
ports: | |
- containerPort: 80 | |
- containerPort: 443 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment