Skip to content

Commit bac8958

Browse files
authored
Merge pull request #27 from olhado/rel-2.4.0
Update liveness check
2 parents 2725493 + 2bc3534 commit bac8958

File tree

1 file changed

+5
-25
lines changed

1 file changed

+5
-25
lines changed

TSKubernetesDaemonSet.yaml

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,14 @@ spec:
6464
hostPID: true
6565
serviceAccountName: threatstack-agent
6666
containers:
67-
- image: threatstack/ts-docker2:2.3.4
67+
- image: threatstack/ts-docker2:2.4.0
6868
imagePullPolicy: Always
6969
name: threatstack-agent
7070
livenessProbe:
7171
exec:
7272
command: [ "sh", "-c", "tsagent status" ]
7373
initialDelaySeconds: 15
74-
periodSeconds: 60
74+
periodSeconds: 360
7575
timeoutSeconds: 5
7676
successThreshold: 1
7777
failureThreshold: 5
@@ -92,14 +92,9 @@ spec:
9292
memory: "512Mi"
9393
cpu: "400m"
9494
volumeMounts:
95-
- name: dockersocket
96-
mountPath: /var/run/docker.sock
9795
- name: hostfs
9896
mountPath: /threatstackfs
9997
volumes:
100-
- hostPath:
101-
path: /var/run/docker.sock
102-
name: dockersocket
10398
- hostPath:
10499
path: /
105100
name: hostfs
@@ -124,22 +119,22 @@ spec:
124119
hostNetwork: true
125120
hostPID: true
126121
containers:
127-
- image: threatstack/ts-docker2:2.3.4
122+
- image: threatstack/ts-docker2:2.4.0
128123
imagePullPolicy: Always
129124
name: threatstack-agent
130125
livenessProbe:
131126
exec:
132127
command: [ "sh", "-c", "tsagent status" ]
133128
initialDelaySeconds: 15
134-
periodSeconds: 60
129+
periodSeconds: 360
135130
timeoutSeconds: 5
136131
successThreshold: 1
137132
failureThreshold: 5
138133
env:
139134
- name: THREATSTACK_SETUP_ARGS
140135
value: "--deploy-key <REPLACE_WITH_VALID_DEPLOY_KEY> --ruleset 'Base Rule Set, Docker Rule Set, Kubernetes Rule Set'"
141136
- name: THREATSTACK_CONFIG_ARGS
142-
value: "enable_kubes 1 enable_containers 1 log.level info"
137+
value: "enable_kubes 1 log.level info"
143138
securityContext:
144139
privileged: false
145140
capabilities:
@@ -152,24 +147,9 @@ spec:
152147
memory: "512Mi"
153148
cpu: "400m"
154149
volumeMounts:
155-
- name: dockersocket
156-
mountPath: /var/run/docker.sock
157150
- name: hostfs
158151
mountPath: /threatstackfs
159-
- name: containerdsocket
160-
mountPath: /run/containerd/containerd.sock
161-
- name: oldcontainerdsocket
162-
mountPath: /var/run/docker/containerd/docker-containerd.sock
163152
volumes:
164-
- hostPath:
165-
path: /var/run/docker.sock
166-
name: dockersocket
167-
- hostPath:
168-
path: /run/containerd/containerd.sock
169-
name: containerdsocket
170-
- hostPath:
171-
path: /var/run/docker/containerd/docker-containerd.sock
172-
name: oldcontainerdsocket
173153
- hostPath:
174154
path: /
175155
name: hostfs

0 commit comments

Comments
 (0)