Hi All,
As mentioned I am trying to deploy eck elasticsearch through a manifest install. No helm used.
It is failing on the first init container with the following message:
bash: /mnt/elastic-internal/scripts/prepare-fs.sh: /usr/bin/env: bad interpreter: Permission denied
Here is the elasticsearch yml I am using. I think the issue is that the prepare-fs.sh script is owned by root user and elasticsearch group. I tried playing around with the settings for : "runAsUser: 1000, runAsGroup: 0, fsGroup: 1000"
but no success.
---
# Source: eck-elasticsearch/templates/elasticsearch.yaml
apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
name: elastic-eck-elasticsearch
namespace: etss-elastic
#labels:
# app.kubernetes.io/name: eck-elasticsearch
# app.kubernetes.io/instance: elastic
# annotations:
# eck.k8s.elastic.co/license: enterprise
spec:
version: 8.6.0
image: <image_url>/elasticsearch_8.6.0
nodeSets:
- name: default
count: 1
config:
node.store.allow_mmap: false
podTemplate:
spec:
securityContext:
runAsUser: 1000
runAsGroup: 0
fsGroup: 1000
initContainers:
- name: elastic-internal-init-filesystem
securityContext:
# runAsUser: 0
# runAsGroup: 0
command: ['cat', '/dev/null']
- name: elastic-internal-suspend
command: ['tail', '-f', '/dev/null']
containers:
- name: elasticsearch
resources:
limits:
memory: 2Gi
requests:
cpu: 1
tolerations:
- effect: NoSchedule
key: cloud.rbc.com/agentpool
value: spark
operator: Equal