Skip to content

Commit

Permalink
Update deployment.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
denanmusinovic authored May 29, 2024
1 parent deef887 commit 8a8f054
Showing 1 changed file with 1 addition and 27 deletions.
28 changes: 1 addition & 27 deletions charts/brokencrystals/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -205,32 +205,6 @@ spec:
restartPolicy: Always
{{- end }}

{{- if and .Values.snifferApiKey .Values.snifferProjectID .Values.snifferApiURL }}
- name: sniffer-agent
securityContext:
capabilities:
add: ["NET_RAW", "NET_ADMIN"]
image: ghcr.io/neuralegion/sniffer-agent:latest
args:
- "-a=$(API_URL)"
- "-t=$(API_KEY)"
- "-p=$(PROJECT_ID)"
- "-i=$(NETWORK_INTERFACE)"
resources:
requests:
cpu: 200m
memory: 100Mi
env:
- name: API_URL
value: "{{ .Values.snifferApiURL }}"
- name: API_KEY
value: "{{ .Values.snifferApiKey }}"
- name: PROJECT_ID
value: "{{ .Values.snifferProjectID }}"
- name: NETWORK_INTERFACE
value: "{{ .Values.snifferNetworkInterface | default "eth0" }}"
{{- end }}

{{- if and .Values.snifferApiKey .Values.snifferProjectID .Values.snifferApiURL }}
- name: sniffer-agent
securityContext:
Expand Down Expand Up @@ -270,4 +244,4 @@ spec:
name: {{ include "brokencrystals.fullname" . }}-keycloak
- name: {{ include "brokencrystals.fullname" . }}-nginx-proxy
configMap:
name: {{ include "brokencrystals.fullname" . }}-nginx-proxy
name: {{ include "brokencrystals.fullname" . }}-nginx-proxy

0 comments on commit 8a8f054

Please sign in to comment.