mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 13:54:37 +03:00
fix: not mount tls when disable (#10357)
This commit is contained in:
@@ -56,9 +56,11 @@ spec:
|
|||||||
- mountPath: /etc/hubble-relay
|
- mountPath: /etc/hubble-relay
|
||||||
name: config
|
name: config
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
{% if cilium_hubble_tls_generate -%}
|
||||||
- mountPath: /var/lib/hubble-relay/tls
|
- mountPath: /var/lib/hubble-relay/tls
|
||||||
name: tls
|
name: tls
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
{% endif %}
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
serviceAccount: hubble-relay
|
serviceAccount: hubble-relay
|
||||||
serviceAccountName: hubble-relay
|
serviceAccountName: hubble-relay
|
||||||
@@ -74,6 +76,7 @@ spec:
|
|||||||
path: /var/run/cilium
|
path: /var/run/cilium
|
||||||
type: Directory
|
type: Directory
|
||||||
name: hubble-sock-dir
|
name: hubble-sock-dir
|
||||||
|
{% if cilium_hubble_tls_generate -%}
|
||||||
- projected:
|
- projected:
|
||||||
sources:
|
sources:
|
||||||
- secret:
|
- secret:
|
||||||
@@ -93,6 +96,7 @@ spec:
|
|||||||
- key: tls.key
|
- key: tls.key
|
||||||
path: server.key
|
path: server.key
|
||||||
name: tls
|
name: tls
|
||||||
|
{% endif %}
|
||||||
---
|
---
|
||||||
# Source: cilium/templates/hubble-ui/deployment.yaml
|
# Source: cilium/templates/hubble-ui/deployment.yaml
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
|
|||||||
Reference in New Issue
Block a user