Skip to content

Commit 118cc8e

Browse files
committed
manifests: Add readiness probe
Signed-off-by: Enrique Llorente <[email protected]>
1 parent 1fd015a commit 118cc8e

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

manifests/crio-dynamic-networks-controller.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,17 @@ spec:
115115
- localhost/healthz
116116
initialDelaySeconds: 15
117117
periodSeconds: 5
118+
readinessProbe:
119+
exec:
120+
command:
121+
- curl
122+
- --fail
123+
- --unix-socket
124+
- /host/run/multus/multus.sock
125+
- localhost/healthz
126+
initialDelaySeconds: 15
127+
periodSeconds: 5
128+
118129
resources:
119130
requests:
120131
cpu: "100m"

manifests/dynamic-networks-controller.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,17 @@ spec:
115115
- localhost/healthz
116116
initialDelaySeconds: 15
117117
periodSeconds: 5
118+
readinessProbe:
119+
exec:
120+
command:
121+
- curl
122+
- --fail
123+
- --unix-socket
124+
- /host/run/multus/multus.sock
125+
- localhost/healthz
126+
initialDelaySeconds: 15
127+
periodSeconds: 5
128+
118129
resources:
119130
requests:
120131
cpu: "100m"

templates/dynamic-networks-controller.yaml.j2

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,17 @@ spec:
115115
- localhost/healthz
116116
initialDelaySeconds: 15
117117
periodSeconds: 5
118+
readinessProbe:
119+
exec:
120+
command:
121+
- curl
122+
- --fail
123+
- --unix-socket
124+
- /host{{ MULTUS_SOCKET_PATH }}
125+
- localhost/healthz
126+
initialDelaySeconds: 15
127+
periodSeconds: 5
128+
118129
resources:
119130
requests:
120131
cpu: "100m"

0 commit comments

Comments
 (0)