Skip to content

Commit 7e58409

Browse files
authored
pinger: add liveness/readiness probes (#5155)
Signed-off-by: zhangzujian <zhangzujian.7@gmail.com>
1 parent eb17163 commit 7e58409

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

charts/kube-ovn/templates/pinger-ds.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,18 @@ spec:
129129
limits:
130130
cpu: {{ index .Values "kube-ovn-pinger" "limits" "cpu" }}
131131
memory: {{ index .Values "kube-ovn-pinger" "limits" "memory" }}
132+
livenessProbe:
133+
httpGet:
134+
path: /metrics
135+
port: 8080
136+
initialDelaySeconds: 15
137+
periodSeconds: 20
138+
readinessProbe:
139+
httpGet:
140+
path: /metrics
141+
port: 8080
142+
initialDelaySeconds: 5
143+
periodSeconds: 10
132144
nodeSelector:
133145
kubernetes.io/os: "linux"
134146
volumes:

charts/kube-ovn/templates/vpc-nat-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ kind: ConfigMap
1414
apiVersion: v1
1515
metadata:
1616
name: ovn-vpc-nat-gw-config
17-
namespace: kube-system
17+
namespace: {{ .Values.namespace }}
1818
data:
19-
enable-vpc-nat-gw: "{{ .Values.func.ENABLE_NAT_GW }}"
19+
enable-vpc-nat-gw: "{{ .Values.func.ENABLE_NAT_GW }}"

dist/images/install.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5193,6 +5193,18 @@ spec:
51935193
limits:
51945194
cpu: 200m
51955195
memory: 400Mi
5196+
livenessProbe:
5197+
httpGet:
5198+
path: /metrics
5199+
port: 8080
5200+
initialDelaySeconds: 15
5201+
periodSeconds: 20
5202+
readinessProbe:
5203+
httpGet:
5204+
path: /metrics
5205+
port: 8080
5206+
initialDelaySeconds: 5
5207+
periodSeconds: 10
51965208
nodeSelector:
51975209
kubernetes.io/os: "linux"
51985210
volumes:

0 commit comments

Comments
 (0)