Skip to content

Commit

Permalink
add security context for daemonset deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
rogercoll committed Jul 26, 2024
1 parent 92d0b54 commit 5258771
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .env.override
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ FRAUD_SERVICE_DOCKERFILE=./src/frauddetectionservice/Dockerfile.elastic
# *********************
# Elastic Collector
# *********************
COLLECTOR_CONTRIB_IMAGE=docker.elastic.co/beats/elastic-agent:8.15.0-7b611e39-SNAPSHOT
COLLECTOR_CONTRIB_IMAGE=docker.elastic.co/beats/elastic-agent:8.15.0-SNAPSHOT
OTEL_COLLECTOR_CONFIG=./src/otelcollector/otelcol-elastic-config.yaml
OTEL_COLLECTOR_CONFIG_EXTRAS=./src/otelcollector/otelcol-elastic-config-extras.yaml
4 changes: 4 additions & 0 deletions kubernetes/elastic-helm/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ readinessProbe:
port: 8888
path: metrics

securityContext:
runAsUser: 0
runAsGroup: 0

extraEnvs:
- name: ELASTIC_ENDPOINT
valueFrom:
Expand Down

0 comments on commit 5258771

Please sign in to comment.