Adding NAMESPACE to elasticsearch pod environment from downward API
This commit is contained in:
@@ -38,6 +38,11 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: es-persistent-storage
|
- name: es-persistent-storage
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
|
env:
|
||||||
|
- name: "NAMESPACE"
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: metadata.namespace
|
||||||
volumes:
|
volumes:
|
||||||
- name: es-persistent-storage
|
- name: es-persistent-storage
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
|
Reference in New Issue
Block a user