enhance: add node name env (#29437)

the purpose of this PR is to add node name to environment variable for
more easily knowing which node the pod is on

Signed-off-by: Sammy Huang <sammy.huang@zilliz.com>
This commit is contained in:
sammy.huang 2023-12-26 15:34:46 +08:00 committed by GitHub
parent 6f4791da0b
commit 2cbfcb7e0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 0 deletions

View File

@ -31,6 +31,10 @@ spec:
value: 240 value: 240
- name: COMPOSE_HTTP_TIMEOUT - name: COMPOSE_HTTP_TIMEOUT
value: 240 value: 240
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
tty: true tty: true
securityContext: securityContext:
privileged: true privileged: true

View File

@ -19,6 +19,10 @@ spec:
value: 240 value: 240
- name: COMPOSE_HTTP_TIMEOUT - name: COMPOSE_HTTP_TIMEOUT
value: 240 value: 240
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
tty: true tty: true
securityContext: securityContext:
privileged: true privileged: true

View File

@ -18,6 +18,10 @@ spec:
value: 240 value: 240
- name: COMPOSE_HTTP_TIMEOUT - name: COMPOSE_HTTP_TIMEOUT
value: 240 value: 240
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
tty: true tty: true
securityContext: securityContext:
privileged: true privileged: true

View File

@ -18,6 +18,10 @@ spec:
value: 240 value: 240
- name: COMPOSE_HTTP_TIMEOUT - name: COMPOSE_HTTP_TIMEOUT
value: 240 value: 240
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
tty: true tty: true
securityContext: securityContext:
privileged: true privileged: true