pravega / zookeeper-operator

Kubernetes Operator for Zookeeper
Apache License 2.0
368 stars 207 forks source link

Unable to Add dnsConfig to Zookeeper StatefulSet/Pods #618

Open mahesh-kore opened 1 week ago

mahesh-kore commented 1 week ago

Description

I’m having trouble adding DNS configuration (dnsConfig) to my Zookeeper StatefulSet or pods in Kubernetes. Despite following the documentation, the configuration does not seem to take effect.

Expected Behavior:

The DNS configurations specified in the dnsConfig section should be reflected in the pods' /etc/resolv.conf.

Actual Behavior:

The pods do not seem to pick up the specified DNS configurations.

Location

tried to add as below

  pod:
    dnsConfig:
      {{- if .Values.pod.dnsConfig.options }}
      options:
        {{- range .Values.pod.dnsConfig.options }}
        - name: {{ .name }}
          {{- if .value }}
          value: {{ .value }}
          {{- end }}
        {{- end }}
    {{- end }}
    {{- if .Values.pod.labels }}

Request for Help:

If anyone has experience with configuring DNS in Zookeeper deployments or knows how to troubleshoot this issue, your assistance would be greatly appreciated!