Skip to content

Commit 9960444

Browse files
committed
chart(update): use podIP in all components server host
Signed-off-by: Viet Nguyen Duc <[email protected]>
1 parent 839e5f6 commit 9960444

File tree

7 files changed

+22
-6
lines changed

7 files changed

+22
-6
lines changed

charts/selenium-grid/templates/_helpers.tpl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,10 @@ template:
349349
{{- end }}
350350
- name: SE_OTEL_SERVICE_NAME
351351
value: {{ .name | quote }}
352+
- name: SE_NODE_HOST
353+
valueFrom:
354+
fieldRef:
355+
fieldPath: status.podIP
352356
- name: SE_NODE_PORT
353357
value: {{ .node.port | quote }}
354358
{{- with .node.startupProbe.timeoutSeconds }}

charts/selenium-grid/templates/distributor-deployment.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ spec:
4646
- name: SE_OTEL_SERVICE_NAME
4747
value: '{{ template "seleniumGrid.distributor.fullname" . }}'
4848
- name: SE_DISTRIBUTOR_HOST
49-
value: '{{ template "seleniumGrid.distributor.fullname" . }}.{{ .Release.Namespace }}'
49+
valueFrom:
50+
fieldRef:
51+
fieldPath: status.podIP
5052
- name: SE_DISTRIBUTOR_PORT
5153
value: {{ .Values.components.distributor.port | quote }}
5254
- name: SE_ROUTER_HOST

charts/selenium-grid/templates/event-bus-deployment.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ spec:
5050
- name: SE_OTEL_SERVICE_NAME
5151
value: '{{ template "seleniumGrid.eventBus.fullname" . }}'
5252
- name: SE_EVENT_BUS_HOST
53-
value: '{{ template "seleniumGrid.eventBus.fullname" . }}.{{ .Release.Namespace }}'
53+
valueFrom:
54+
fieldRef:
55+
fieldPath: status.podIP
5456
- name: SE_EVENT_BUS_PORT
5557
value: {{ .Values.components.eventBus.port | quote }}
5658
{{- with .Values.components.extraEnvironmentVariables }}

charts/selenium-grid/templates/hub-deployment.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@ spec:
107107
- name: SE_OTEL_SERVICE_NAME
108108
value: '{{ template "seleniumGrid.hub.fullname" . }}'
109109
- name: SE_HUB_HOST
110-
value: '{{ template "seleniumGrid.hub.fullname" . }}.{{ .Release.Namespace }}'
110+
valueFrom:
111+
fieldRef:
112+
fieldPath: status.podIP
111113
- name: SE_HUB_PORT
112114
value: {{ .Values.hub.port | quote }}
113115
{{- with .Values.hub.subPath }}

charts/selenium-grid/templates/router-deployment.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ spec:
4444
- name: SE_OTEL_SERVICE_NAME
4545
value: '{{ template "seleniumGrid.router.fullname" . }}'
4646
- name: SE_ROUTER_HOST
47-
value: '{{ template "seleniumGrid.router.fullname" . }}.{{ .Release.Namespace }}'
47+
valueFrom:
48+
fieldRef:
49+
fieldPath: status.podIP
4850
- name: SE_ROUTER_PORT
4951
value: {{ .Values.components.router.port | quote }}
5052
- name: SE_DISTRIBUTOR_HOST

charts/selenium-grid/templates/session-map-deployment.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ spec:
4444
- name: SE_OTEL_SERVICE_NAME
4545
value: '{{ template "seleniumGrid.sessionMap.fullname" . }}'
4646
- name: SE_SESSIONS_HOST
47-
value: '{{ template "seleniumGrid.sessionMap.fullname" . }}.{{ .Release.Namespace }}'
47+
valueFrom:
48+
fieldRef:
49+
fieldPath: status.podIP
4850
- name: SE_SESSIONS_PORT
4951
value: {{ .Values.components.sessionMap.port | quote }}
5052
{{- with .Values.components.extraEnvironmentVariables }}

charts/selenium-grid/templates/session-queue-deployment.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ spec:
4343
- name: SE_OTEL_SERVICE_NAME
4444
value: '{{ template "seleniumGrid.sessionQueue.fullname" . }}'
4545
- name: SE_SESSION_QUEUE_HOST
46-
value: '{{ template "seleniumGrid.sessionQueue.fullname" . }}.{{ .Release.Namespace }}'
46+
valueFrom:
47+
fieldRef:
48+
fieldPath: status.podIP
4749
- name: SE_SESSION_QUEUE_PORT
4850
value: {{ .Values.components.sessionQueue.port | quote }}
4951
{{- with .Values.components.extraEnvironmentVariables }}

0 commit comments

Comments
 (0)