Skip to content

Commit 2725493

Browse files
authored
Merge pull request #25 from olhado/add-liveness-probe
Update for next release and add liveness probe
2 parents a96a4b6 + 56cdc27 commit 2725493

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

TSKubernetesDaemonSet.yaml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,17 @@ spec:
6464
hostPID: true
6565
serviceAccountName: threatstack-agent
6666
containers:
67-
- image: threatstack/ts-docker2:2.3.3
67+
- image: threatstack/ts-docker2:2.3.4
6868
imagePullPolicy: Always
6969
name: threatstack-agent
70+
livenessProbe:
71+
exec:
72+
command: [ "sh", "-c", "tsagent status" ]
73+
initialDelaySeconds: 15
74+
periodSeconds: 60
75+
timeoutSeconds: 5
76+
successThreshold: 1
77+
failureThreshold: 5
7078
env:
7179
- name: THREATSTACK_SETUP_ARGS
7280
value: "--deploy-key <REPLACE_WITH_VALID_DEPLOY_KEY> --ruleset 'Base Rule Set, Docker Rule Set, Kubernetes Rule Set'"
@@ -116,9 +124,17 @@ spec:
116124
hostNetwork: true
117125
hostPID: true
118126
containers:
119-
- image: threatstack/ts-docker2:2.3.3
127+
- image: threatstack/ts-docker2:2.3.4
120128
imagePullPolicy: Always
121129
name: threatstack-agent
130+
livenessProbe:
131+
exec:
132+
command: [ "sh", "-c", "tsagent status" ]
133+
initialDelaySeconds: 15
134+
periodSeconds: 60
135+
timeoutSeconds: 5
136+
successThreshold: 1
137+
failureThreshold: 5
122138
env:
123139
- name: THREATSTACK_SETUP_ARGS
124140
value: "--deploy-key <REPLACE_WITH_VALID_DEPLOY_KEY> --ruleset 'Base Rule Set, Docker Rule Set, Kubernetes Rule Set'"

0 commit comments

Comments
 (0)