Created
December 22, 2022 08:29
-
-
Save bezlant/4e12547a856499d04246348fbbdd30e2 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-deployment | |
labels: | |
app: nginx | |
spec: | |
replicas: 4 | |
selector: | |
matchLabels: | |
app: nginx | |
template: | |
metadata: | |
labels: | |
app: nginx | |
spec: | |
containers: | |
- name: nginx | |
image: nginx:1.14.2 | |
ports: | |
- containerPort: 80 | |
resources: | |
requests: | |
memory: "128M" | |
cpu: "100m" | |
livenessProbe: | |
httpGet: | |
path: / | |
port: 80 | |
initialDelaySeconds: 5 | |
periodSeconds: 5 | |
readinessProbe: | |
httpGet: | |
path: / | |
port: 80 | |
initialDelaySeconds: 5 | |
periodSeconds: 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment