Skip to content
Snippets Groups Projects
Unverified Commit 6b499186 authored by peterw's avatar peterw Committed by GitHub
Browse files

add cilium hubble-ui enable flag (#10939)

parent 1ccf0df5
No related branches found
No related tags found
No related merge requests found
...@@ -152,6 +152,9 @@ cilium_l2announcements: false ...@@ -152,6 +152,9 @@ cilium_l2announcements: false
# Hubble # Hubble
### Enable Hubble without install ### Enable Hubble without install
# cilium_enable_hubble: false # cilium_enable_hubble: false
### Enable Hubble-ui
### Installed by default when hubble is enabled. To disable set to false
# cilium_enable_hubble_ui: "{{ cilium_enable_hubble }}
### Enable Hubble Metrics ### Enable Hubble Metrics
# cilium_enable_hubble_metrics: false # cilium_enable_hubble_metrics: false
### if cilium_enable_hubble_metrics: true ### if cilium_enable_hubble_metrics: true
......
...@@ -144,6 +144,8 @@ cilium_ip_masq_resync_interval: 60s ...@@ -144,6 +144,8 @@ cilium_ip_masq_resync_interval: 60s
# Hubble # Hubble
### Enable Hubble without install ### Enable Hubble without install
cilium_enable_hubble: false cilium_enable_hubble: false
### Enable Hubble-ui
cilium_enable_hubble_ui: "{{ cilium_enable_hubble }}"
### Enable Hubble Metrics ### Enable Hubble Metrics
cilium_enable_hubble_metrics: false cilium_enable_hubble_metrics: false
### if cilium_enable_hubble_metrics: true ### if cilium_enable_hubble_metrics: true
......
...@@ -60,6 +60,7 @@ rules: ...@@ -60,6 +60,7 @@ rules:
- get - get
- list - list
- watch - watch
{% if cilium_enable_hubble_ui %}
--- ---
# Source: cilium/templates/hubble-ui-clusterrole.yaml # Source: cilium/templates/hubble-ui-clusterrole.yaml
kind: ClusterRole kind: ClusterRole
...@@ -104,3 +105,4 @@ rules: ...@@ -104,3 +105,4 @@ rules:
- get - get
- list - list
- watch - watch
{% endif %}
...@@ -28,6 +28,7 @@ subjects: ...@@ -28,6 +28,7 @@ subjects:
- kind: ServiceAccount - kind: ServiceAccount
namespace: kube-system namespace: kube-system
name: hubble-relay name: hubble-relay
{% if cilium_enable_hubble_ui %}
--- ---
# Source: cilium/templates/hubble-ui-clusterrolebinding.yaml # Source: cilium/templates/hubble-ui-clusterrolebinding.yaml
kind: ClusterRoleBinding kind: ClusterRoleBinding
...@@ -42,3 +43,4 @@ subjects: ...@@ -42,3 +43,4 @@ subjects:
- kind: ServiceAccount - kind: ServiceAccount
namespace: kube-system namespace: kube-system
name: hubble-ui name: hubble-ui
{% endif %}
...@@ -104,6 +104,7 @@ spec: ...@@ -104,6 +104,7 @@ spec:
name: tls name: tls
{%- endif %} {%- endif %}
{% if cilium_enable_hubble_ui %}
--- ---
# Source: cilium/templates/hubble-ui/deployment.yaml # Source: cilium/templates/hubble-ui/deployment.yaml
kind: Deployment kind: Deployment
...@@ -195,3 +196,4 @@ spec: ...@@ -195,3 +196,4 @@ spec:
name: tls name: tls
- emptyDir: {} - emptyDir: {}
name: tmp-dir name: tmp-dir
{% endif %}
...@@ -14,6 +14,7 @@ kind: ServiceAccount ...@@ -14,6 +14,7 @@ kind: ServiceAccount
metadata: metadata:
name: hubble-relay name: hubble-relay
namespace: kube-system namespace: kube-system
{% if cilium_enable_hubble_ui %}
--- ---
# Source: cilium/templates/hubble-ui-serviceaccount.yaml # Source: cilium/templates/hubble-ui-serviceaccount.yaml
apiVersion: v1 apiVersion: v1
...@@ -21,3 +22,4 @@ kind: ServiceAccount ...@@ -21,3 +22,4 @@ kind: ServiceAccount
metadata: metadata:
name: hubble-ui name: hubble-ui
namespace: kube-system namespace: kube-system
{% endif %}
...@@ -68,6 +68,7 @@ spec: ...@@ -68,6 +68,7 @@ spec:
{% endif -%} {% endif -%}
targetPort: 4245 targetPort: 4245
--- ---
{% if cilium_enable_hubble_ui %}
# Source: cilium/templates/hubble-ui-service.yaml # Source: cilium/templates/hubble-ui-service.yaml
kind: Service kind: Service
apiVersion: v1 apiVersion: v1
...@@ -85,6 +86,7 @@ spec: ...@@ -85,6 +86,7 @@ spec:
targetPort: 8081 targetPort: 8081
type: ClusterIP type: ClusterIP
--- ---
{% endif %}
# Source: cilium/templates/hubble/peer-service.yaml # Source: cilium/templates/hubble/peer-service.yaml
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment