Skip to content

Commit

Permalink
Merge pull request #314 from redpanda-data/fix_313_post_start_fail
Browse files Browse the repository at this point in the history
Fix postStart.sh hook with custom Service domain (kubeadm's network.dnsDomain)
  • Loading branch information
joejulian authored Feb 7, 2023
2 parents 6b932f9 + 4f1adc2 commit d4a7c50
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/redpanda/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type: application
# The chart version and the app version are not the same and will not track
# together. The chart version is a semver representation of changes to this
# chart.
version: 2.8.0
version: 2.8.1

# The app version is the default version of Redpanda to install.
appVersion: v22.3.10
Expand Down
2 changes: 1 addition & 1 deletion charts/redpanda/templates/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ stringData:
#!/usr/bin/env bash
# the SERVICE_NAME comes from the metadata.name of the pod, essentially the POD_NAME
CURL_URL="{{ include "admin-http-protocol" . }}://${SERVICE_NAME}.{{ template "redpanda.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local:{{ .Values.listeners.admin.port }}"
CURL_URL="{{ include "admin-http-protocol" . }}://${SERVICE_NAME}.{{ template "redpanda.fullname" . }}.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain | trimSuffix "." }}:{{ .Values.listeners.admin.port }}"
# commands used throughout
CURL_NODE_ID_CMD="curl --silent --fail {{ include "admin-tls-curl-flags" . }} ${CURL_URL}/v1/node_config"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ spec:
image: {{ .Values.image.repository}}:{{ template "redpanda.tag" . }}
env:
- name: REDPANDA_BROKERS
value: "{{ include "redpanda.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local:{{ .Values.listeners.kafka.port }}"
value: "{{ include "redpanda.fullname" . }}.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain | trimSuffix "." }}:{{ .Values.listeners.kafka.port }}"
- name: POD_NAME
valueFrom:
fieldRef:
Expand Down

0 comments on commit d4a7c50

Please sign in to comment.