Issue when installing Elasticsearch using helm by staying in rancher

my values.yaml file


antiAffinity: hard
antiAffinityTopologyKey: kubernetes.io/hostname
clusterHealthCheckParams: wait_for_status=green&timeout=1s
clusterName: elasticsearch
createCert: true
enableServiceLinks: true
envFrom: null
esConfig: {}
esJavaOpts: ''
esJvmOptions: {}
esMajorVersion: ''
extraContainers: null
extraEnvs: null
extraInitContainers:

  • command:
    • mkdir
    • '-p'
    • /usr/share/elasticsearch/data/nodes/
      image: busybox:1.28
      name: create
      securityContext:
      runAsUser: 0
  • command:
    • chown
    • '-R'
    • '1000:1000'
    • /usr/share/elasticsearch/
      image: busybox:1.28
      name: file-permissions
      securityContext:
      runAsUser: 0
      extraVolumeMounts: null
      extraVolumes: null
      fullnameOverride: ''
      healthNameOverride: ''
      hostAliases: null
      httpPort: 9200
      image: docker.elastic.co/elasticsearch/elasticsearch
      imagePullPolicy: IfNotPresent
      imagePullSecrets: null
      imageTag: 8.5.1
      ingress:
      annotations: {}
      className: nginx
      enabled: false
      hosts:
    • host: chart-example.local
      paths:
      • path: /
        pathtype: ImplementationSpecific
        tls: null
        initResources: {}
        keystore: null
        labels: {}
        lifecycle: {}
        masterService: ''
        maxUnavailable: 1
        minimumMasterNodes: 1
        nameOverride: ''
        networkHost: 192.168.....
        networkPolicy:
        http:
        enabled: false
        transport:
        enabled: false
        nodeAffinity: {}
        nodeGroup: master
        nodeSelector: {}
        persistence:
        annotations: {}
        enabled: true
        labels:
        enabled: false
        podAnnotations: {}
        podManagementPolicy: Parallel
        podSecurityContext:
        fsGroup: 1000
        runAsUser: 1000
        podSecurityPolicy:
        create: false
        name: ''
        spec:
        fsGroup:
        rule: RunAsAny
        privileged: true
        runAsUser:
        rule: RunAsAny
        seLinux:
        rule: RunAsAny
        supplementalGroups:
        rule: RunAsAny
        volumes:
      • secret
      • configMap
      • persistentVolumeClaim
      • emptyDir
        priorityClassName: ''
        protocol: https
        rbac:
        automountToken: true
        create: false
        serviceAccountAnnotations: {}
        serviceAccountName: ''
        readinessProbe:
        failureThreshold: 3
        initialDelaySeconds: 10
        periodSeconds: 10
        successThreshold: 3
        timeoutSeconds: 5
        replicas: 1
        resources:
        limits:
        cpu: 1000m
        memory: 2Gi
        requests:
        cpu: 1000m
        memory: 2Gi
        roles:
  • master
  • data
  • data_content
  • data_hot
  • data_warm
  • data_cold
  • ingest
  • ml
  • remote_cluster_client
  • transform
    schedulerName: ''
    secret:
    enabled: true
    password: ''
    secretMounts: null
    securityContext:
    capabilities:
    drop:
    • ALL
      runAsNonRoot: true
      runAsUser: 1000
      service:
      annotations: {}
      enabled: true
      externalTrafficPolicy: ''
      httpPortName: http
      labels: {}
      labelsHeadless: {}
      loadBalancerIP: ''
      loadBalancerSourceRanges: null
      nodePort: ''
      publishNotReadyAddresses: false
      transportPortName: transport
      type: ClusterIP
      sysctlInitContainer:
      enabled: true
      sysctlVmMaxMapCount: 262144
      terminationGracePeriod: 120
      tests:
      enabled: true
      tolerations: null
      transportPort: 9300
      updateStrategy: RollingUpdate
      volumeClaimTemplate:
      accessModes:
    • ReadWriteOnce
      resources:
      requests:
      storage: 8Gi
      global:
      cattle:
      clusterId: local
      clusterName: local
      rkePathPrefix: ''
      rkeWindowsPathPrefix: ''
      systemDefaultRegistry: ''
      systemProjectId: p-kxjj2
      url: https://alma3.tech.in
      systemDefaultRegistry: ''

when i execute helm install ..
Below Error i am getting
Defaulted container "elasticsearch" out of: elasticsearch, configure-sysctl (init), create (init), file-permissions (init)


Hi Team,
I am new to elk.. For testing reduced to 1 replicas .Any help is appreciated ...

Please don't create multiple topics on the same question :slight_smile: