Skip to content

Commit

Permalink
[elastic] Add fsGroup to security context for permission issue for el…
Browse files Browse the repository at this point in the history
…astic AND enable CORS (#1241)

* Add fsGroup to security context for permission issue for elastic

* enable CORS for elastic
  • Loading branch information
ypkang committed Apr 23, 2024
1 parent 3dba074 commit cb64f4f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jaseci_core/jaseci/jsorc/manifests/elastic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5639,6 +5639,7 @@ spec:
serviceAccountName: elastic-operator
securityContext:
runAsNonRoot: true
fsGroup: 65534
containers:
- image: "docker.elastic.co/eck/eck-operator:2.7.0"
imagePullPolicy: IfNotPresent
Expand Down Expand Up @@ -6000,6 +6001,10 @@ spec:
count: 1
config:
node.store.allow_mmap: false
http.cors.enabled: true
http.cors.allow-origin: "*"
http.cors.allow-methods: OPTIONS, POST, GET
http.cors.allow-headers: X-Requested-With, X-Auth-Token, Content-Type, Content-Length, Authorization, Access-Control-Allow-Headers, Accept
volumeClaimTemplates:
- metadata:
name: elasticsearch-data
Expand Down

0 comments on commit cb64f4f

Please sign in to comment.