-
Notifications
You must be signed in to change notification settings - Fork 73
/
deployment.yaml
42 lines (42 loc) · 881 Bytes
/
deployment.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: nginxhello
name: nginxhello
annotations:
fluxcd.io/ignore: "true"
fluxcd.io/automated: "false"
spec:
replicas: 5
selector:
matchLabels:
app: nginxhello
template:
metadata:
labels:
app: nginxhello
spec:
containers:
- image: nbrown/nginxhello:1.19.0
name: nginxhello
ports:
- containerPort: 80
env:
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
livenessProbe:
initialDelaySeconds: 2
periodSeconds: 2
httpGet:
port: 80
path: /healthz/live
readinessProbe:
initialDelaySeconds: 2
periodSeconds: 2
httpGet:
port: 80
path: /healthz/ready