@@ -47,6 +47,11 @@ OVSDB_CON_TIMEOUT=${OVSDB_CON_TIMEOUT:-3}
47
47
OVSDB_INACTIVITY_TIMEOUT=${OVSDB_INACTIVITY_TIMEOUT:- 10}
48
48
ENABLE_LIVE_MIGRATION_OPTIMIZE=${ENABLE_LIVE_MIGRATION_OPTIMIZE:- true}
49
49
50
+ PROBE_HTTP_GET_SCHEMA=" HTTP"
51
+ if [ " $SECURE_SERVING " = " true" ]; then
52
+ PROBE_HTTP_GET_SCHEMA=" HTTPS"
53
+ fi
54
+
50
55
# debug
51
56
DEBUG_WRAPPER=${DEBUG_WRAPPER:- }
52
57
RUN_AS_USER=65534 # run as nobody
@@ -4780,21 +4785,17 @@ spec:
4780
4785
- mountPath: /var/run/tls
4781
4786
name: kube-ovn-tls
4782
4787
readinessProbe:
4783
- exec:
4784
- command:
4785
- - /kube-ovn/kube-ovn-healthcheck
4786
- - --port=10660
4787
- - --tls=${SECURE_SERVING}
4788
- - --enable-metrics=$ENABLE_METRICS
4788
+ httpGet:
4789
+ port: 10660
4790
+ path: /readyz
4791
+ scheme: ${PROBE_HTTP_GET_SCHEMA}
4789
4792
periodSeconds: 3
4790
4793
timeoutSeconds: 5
4791
4794
livenessProbe:
4792
- exec:
4793
- command:
4794
- - /kube-ovn/kube-ovn-healthcheck
4795
- - --port=10660
4796
- - --tls=${SECURE_SERVING}
4797
- - --enable-metrics=$ENABLE_METRICS
4795
+ httpGet:
4796
+ port: 10660
4797
+ path: /livez
4798
+ scheme: ${PROBE_HTTP_GET_SCHEMA}
4798
4799
initialDelaySeconds: 300
4799
4800
periodSeconds: 7
4800
4801
failureThreshold: 5
@@ -5002,23 +5003,19 @@ spec:
5002
5003
initialDelaySeconds: 30
5003
5004
periodSeconds: 7
5004
5005
successThreshold: 1
5005
- exec:
5006
- command:
5007
- - /kube-ovn/kube-ovn-healthcheck
5008
- - --port=10665
5009
- - --tls=${SECURE_SERVING}
5010
- - --enable-metrics=$ENABLE_METRICS
5006
+ httpGet:
5007
+ port: 10665
5008
+ path: /livez
5009
+ scheme: ${PROBE_HTTP_GET_SCHEMA}
5011
5010
timeoutSeconds: 5
5012
5011
readinessProbe:
5013
5012
failureThreshold: 3
5014
5013
periodSeconds: 7
5015
5014
successThreshold: 1
5016
- exec:
5017
- command:
5018
- - /kube-ovn/kube-ovn-healthcheck
5019
- - --port=10665
5020
- - --tls=${SECURE_SERVING}
5021
- - --enable-metrics=$ENABLE_METRICS
5015
+ httpGet:
5016
+ port: 10665
5017
+ path: /readyz
5018
+ scheme: ${PROBE_HTTP_GET_SCHEMA}
5022
5019
timeoutSeconds: 5
5023
5020
resources:
5024
5021
requests:
@@ -5347,24 +5344,20 @@ spec:
5347
5344
initialDelaySeconds: 30
5348
5345
periodSeconds: 7
5349
5346
successThreshold: 1
5350
- exec:
5351
- command:
5352
- - /kube-ovn/kube-ovn-healthcheck
5353
- - --port=10661
5354
- - --tls=${SECURE_SERVING}
5355
- - --enable-metrics=$ENABLE_METRICS
5347
+ httpGet:
5348
+ port: 10661
5349
+ path: /livez
5350
+ scheme: ${PROBE_HTTP_GET_SCHEMA}
5356
5351
timeoutSeconds: 5
5357
5352
readinessProbe:
5358
5353
failureThreshold: 3
5359
5354
initialDelaySeconds: 30
5360
5355
periodSeconds: 7
5361
5356
successThreshold: 1
5362
- exec:
5363
- command:
5364
- - /kube-ovn/kube-ovn-healthcheck
5365
- - --port=10661
5366
- - --tls=${SECURE_SERVING}
5367
- - --enable-metrics=$ENABLE_METRICS
5357
+ httpGet:
5358
+ port: 10661
5359
+ path: /readyz
5360
+ scheme: ${PROBE_HTTP_GET_SCHEMA}
5368
5361
timeoutSeconds: 5
5369
5362
nodeSelector:
5370
5363
kubernetes.io/os: "linux"
0 commit comments