Skip to content

Commit

Permalink
Merge pull request #452 from kubescape/probes
Browse files Browse the repository at this point in the history
add missing probes
  • Loading branch information
matthyx authored Jun 17, 2024
2 parents a0f3e42 + 360ff02 commit de54505
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 0 deletions.
12 changes: 12 additions & 0 deletions charts/kubescape-operator/templates/node-agent/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,18 @@ spec:
- name: {{ .Values.nodeAgent.name }}
image: "{{ .Values.nodeAgent.image.repository }}:{{ .Values.nodeAgent.image.tag }}"
imagePullPolicy: {{ .Values.nodeAgent.image.pullPolicy }}
livenessProbe:
httpGet:
path: /livez
port: 7888
initialDelaySeconds: 3
periodSeconds: 3
readinessProbe:
httpGet:
path: /readyz
port: 7888
initialDelaySeconds: 3
periodSeconds: 3
resources:
{{ toYaml .Values.nodeAgent.resources | indent 12 }}
env:
Expand Down
6 changes: 6 additions & 0 deletions charts/kubescape-operator/templates/storage/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ spec:
securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true
livenessProbe:
tcpSocket:
port: 8443
readinessProbe:
tcpSocket:
port: 8443
env:
- name: "CLEANUP_INTERVAL"
value: "{{ .Values.storage.cleanupInterval }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1982,7 +1982,19 @@ all capabilities:
- name: NodeName
image: quay.io/kubescape/node-agent:v0.2.81
imagePullPolicy: IfNotPresent
livenessProbe:
httpGet:
path: /livez
port: 7888
initialDelaySeconds: 3
periodSeconds: 3
name: node-agent
readinessProbe:
httpGet:
path: /readyz
port: 7888
initialDelaySeconds: 3
periodSeconds: 3
resources:
limits:
cpu: 500m
Expand Down Expand Up @@ -3229,7 +3241,13 @@ all capabilities:
value: otel-collector:4317
image: quay.io/kubescape/storage:v0.0.85
imagePullPolicy: IfNotPresent
livenessProbe:
tcpSocket:
port: 8443
name: apiserver
readinessProbe:
tcpSocket:
port: 8443
resources:
limits:
cpu: 1500m
Expand Down Expand Up @@ -5626,7 +5644,19 @@ default capabilities:
- name: NodeName
image: quay.io/kubescape/node-agent:v0.2.81
imagePullPolicy: IfNotPresent
livenessProbe:
httpGet:
path: /livez
port: 7888
initialDelaySeconds: 3
periodSeconds: 3
name: node-agent
readinessProbe:
httpGet:
path: /readyz
port: 7888
initialDelaySeconds: 3
periodSeconds: 3
resources:
limits:
cpu: 500m
Expand Down Expand Up @@ -6683,7 +6713,13 @@ default capabilities:
value: otel-collector:4317
image: quay.io/kubescape/storage:v0.0.85
imagePullPolicy: IfNotPresent
livenessProbe:
tcpSocket:
port: 8443
name: apiserver
readinessProbe:
tcpSocket:
port: 8443
resources:
limits:
cpu: 1500m
Expand Down Expand Up @@ -8304,7 +8340,19 @@ minimal capabilities:
- name: NodeName
image: quay.io/kubescape/node-agent:v0.2.81
imagePullPolicy: IfNotPresent
livenessProbe:
httpGet:
path: /livez
port: 7888
initialDelaySeconds: 3
periodSeconds: 3
name: node-agent
readinessProbe:
httpGet:
path: /readyz
port: 7888
initialDelaySeconds: 3
periodSeconds: 3
resources:
limits:
cpu: 500m
Expand Down Expand Up @@ -9107,7 +9155,13 @@ minimal capabilities:
value: otel-collector:4317
image: quay.io/kubescape/storage:v0.0.85
imagePullPolicy: IfNotPresent
livenessProbe:
tcpSocket:
port: 8443
name: apiserver
readinessProbe:
tcpSocket:
port: 8443
resources:
limits:
cpu: 1500m
Expand Down

0 comments on commit de54505

Please sign in to comment.