-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* init runtime agent * add runtime agent ds * change to fileorcreate * remove subpath * change tetragon sa name * test alias * remove alias * add podname and nodename and cluster-agent suffix * add resources * change chart version * add container to mika and cilium permissions * fix * updated runtime_agent image build number --------- Co-authored-by: [email protected] <[email protected]>
- Loading branch information
1 parent
447792a
commit 6d18505
Showing
7 changed files
with
147 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
helm-docs | ||
helm-docs | ||
|
||
charts/streamsec-agent/charts | ||
|
||
test.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
{{- if and (.Values.streamsec.cluster_agent_containers.enabled) (.Values.streamsec.runtime_agent.enabled) }} | ||
apiVersion: apps/v1 | ||
kind: DaemonSet | ||
metadata: | ||
name: {{ template "streamsec.fullname" . }}-runtime-agent | ||
labels: | ||
{{- include "streamsec.labels" . | nindent 4 }} | ||
spec: | ||
selector: | ||
matchLabels: | ||
{{- include "streamsec.selectorLabels" . | nindent 6 }} | ||
template: | ||
metadata: | ||
labels: | ||
{{- include "streamsec.selectorLabels" . | nindent 8 }} | ||
spec: | ||
{{- with .Values.streamsec.runtime_agent.nodeSelector }} | ||
nodeSelector: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- with .Values.streamsec.runtime_agent.affinity }} | ||
affinity: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- with .Values.streamsec.runtime_agent.tolerations }} | ||
tolerations: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
containers: | ||
- name: runtime-agent | ||
image: {{ template "streamsec.runtime-agent-image-path" $}} | ||
imagePullPolicy: {{ .Values.streamsec.runtime_agent.image.pullPolicy }} | ||
{{- with .Values.streamsec.runtime_agent.resources }} | ||
resources: | ||
{{- toYaml . | nindent 12 }} | ||
{{- end }} | ||
env: | ||
- name: POD_NAME | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: metadata.name | ||
- name: NODE_NAME | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: spec.nodeName | ||
- name: EVENTS_FILENAME | ||
value: {{ .Values.streamsec.runtime_agent.tetragonFilePath }} | ||
- name: API_URL | ||
value: {{ .Values.streamsec.apiUrl | quote }} | ||
- name: API_TOKEN | ||
valueFrom: | ||
secretKeyRef: | ||
name: {{ template "streamsec.apiTokenSecretName" $ }} | ||
key: api-key | ||
securityContext: | ||
privileged: true | ||
terminationMessagePolicy: FallbackToLogsOnError | ||
volumeMounts: | ||
- mountPath: /sys/kernel | ||
name: sys-kernel | ||
- mountPath: {{ .Values.streamsec.runtime_agent.tetragonFilePath }} | ||
name: export-logs | ||
dnsPolicy: {{ .Values.dnsPolicy }} | ||
hostNetwork: true | ||
hostPID: true | ||
hostIPC: true | ||
{{- with .Values.streamsec.runtime_agent.priorityClassName }} | ||
priorityClassName: "{{ . }}" | ||
{{- end }} | ||
serviceAccountName: {{ template "streamsec.serviceAccountName" . }} | ||
terminationGracePeriodSeconds: 1 | ||
volumes: | ||
- hostPath: | ||
path: {{ .Values.streamsec.runtime_agent.tetragonFilePath }} | ||
type: FileOrCreate | ||
name: export-logs | ||
- hostPath: | ||
path: /sys/kernel | ||
type: DirectoryOrCreate | ||
name: sys-kernel | ||
{{- with .Values.updateStrategy }} | ||
updateStrategy: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters