Skip to content

Commit

Permalink
Try with TCP socket probes
Browse files Browse the repository at this point in the history
  • Loading branch information
ramperher committed Jan 5, 2024
1 parent 335d639 commit 399c196
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions cnf-app-mac-operator/config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ spec:
image: controller:latest
imagePullPolicy: Always
name: manager
ports:
- containerPort: 8095
resources:
limits:
cpu: 100m
Expand All @@ -35,8 +37,6 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
<<<<<<< HEAD
<<<<<<< HEAD
# lifecycle admits not only `exec`, but also `httpGet`:
# https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#hook-handler-implementations
lifecycle:
Expand All @@ -48,17 +48,6 @@ spec:
httpGet:
path: /prestopz
port: 8095
=======
lifecycle:
postStart:
exec:
command: ["/bin/sh", "-c", "echo Hello from the postStart handler"]
preStop:
exec:
command: ["/bin/sh", "-c", "echo Hello from the preStop handler"]
>>>>>>> a8a4019 (Reorder specs and fix some minor issues)
=======
>>>>>>> 93adbaa (Eventually remove lifecylc etests)
livenessProbe:
httpGet:
path: /healthz
Expand All @@ -68,12 +57,19 @@ spec:
readinessProbe:
httpGet:
path: /readyz
tcpSocket:
port: 8095
initialDelaySeconds: 15
periodSeconds: 20
readinessProbe:
tcpSocket:
port: 8095
initialDelaySeconds: 5
periodSeconds: 10
startupProbe:
httpGet:
path: /startz
tcpSocket:
port: 8095
initialDelaySeconds: 5
periodSeconds: 10
Expand Down

0 comments on commit 399c196

Please sign in to comment.