Skip to content

Commit

Permalink
chore: use hostname host.name config (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
ravisingal authored Oct 1, 2024
1 parent 08e013d commit a43c7eb
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions helm/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
spec:
replicas: {{ .Values.replicaCount }}
revisionHistoryLimit: 2
serviceName: {{ template "schema-registry.headless.service" . }}
serviceName: {{ include "schema-registry.headless.service" . }}
selector:
matchLabels:
app: {{ include "schema-registry.name" . }}
Expand Down Expand Up @@ -49,10 +49,16 @@ spec:
mountPath: /opt/schema-registry/etc/schema-registry/log4j.properties
subPath: "log4j.properties"
env:
- name: SCHEMA_REGISTRY_HOST_NAME
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: status.podIP
fieldPath: metadata.namespace
- name: SCHEMA_REGISTRY_HOST_NAME
value: $(POD_NAME).{{ include "schema-registry.headless.service" . }}.$(POD_NAMESPACE).svc.cluster.local
- name: SCHEMA_REGISTRY_LISTENERS
value: http://0.0.0.0:{{ .Values.service.port }}
- name: SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS
Expand Down

0 comments on commit a43c7eb

Please sign in to comment.