Skip to content

Commit

Permalink
fix: not mount tls when disable (kubernetes-sigs#10357)
Browse files Browse the repository at this point in the history
  • Loading branch information
charlychiu authored and guy.gold committed Oct 30, 2023
1 parent dc7cfd5 commit 9f2b908
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions roles/network_plugin/cilium/templates/hubble/deploy.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,11 @@ spec:
- mountPath: /etc/hubble-relay
name: config
readOnly: true
{% if cilium_hubble_tls_generate -%}
- mountPath: /var/lib/hubble-relay/tls
name: tls
readOnly: true
{% endif %}
restartPolicy: Always
serviceAccount: hubble-relay
serviceAccountName: hubble-relay
Expand All @@ -74,6 +76,7 @@ spec:
path: /var/run/cilium
type: Directory
name: hubble-sock-dir
{% if cilium_hubble_tls_generate -%}
- projected:
sources:
- secret:
Expand All @@ -93,6 +96,7 @@ spec:
- key: tls.key
path: server.key
name: tls
{% endif %}
---
# Source: cilium/templates/hubble-ui/deployment.yaml
kind: Deployment
Expand Down

0 comments on commit 9f2b908

Please sign in to comment.