Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: not mount tls when 'cilium_hubble_tls_generate' is false #10357

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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