-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add hubble helm charts to cilium install/kubernetes
This patch adds hubble related helm charts to cilium install/kubernetes Fixes: #10647 Signed-off-by: Swaminathan Vasudevan <svasudevan@suse.com>
- Loading branch information
1 parent
97f8299
commit 0ad14e8
Showing
14 changed files
with
281 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: v1 | ||
name: hubble-ui | ||
version: 1.7.90 | ||
appVersion: 1.7.90 | ||
tillerVersion: ">=2.7.2" | ||
description: Helm chart for the Hubble UI | ||
keywords: | ||
sources: | ||
- https://github.com/cilium/hubble-ui | ||
engine: gotpl |
44 changes: 44 additions & 0 deletions
44
install/kubernetes/cilium/charts/hubble-ui/templates/clusterrole.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{{- if .Values.global.hubble.ui.enabled }} | ||
kind: ClusterRole | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: hubble-ui | ||
rules: | ||
- apiGroups: | ||
- networking.k8s.io | ||
resources: | ||
- networkpolicies | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- componentstatuses | ||
- endpoints | ||
- namespaces | ||
- nodes | ||
- pods | ||
- services | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- apiextensions.k8s.io | ||
resources: | ||
- customresourcedefinitions | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- cilium.io | ||
resources: | ||
- "*" | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
{{- end }} |
14 changes: 14 additions & 0 deletions
14
install/kubernetes/cilium/charts/hubble-ui/templates/clusterrolebinding.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{{- if .Values.global.hubble.ui.enabled }} | ||
kind: ClusterRoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: hubble-ui | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: hubble-ui | ||
subjects: | ||
- kind: ServiceAccount | ||
namespace: {{ .Release.Namespace }} | ||
name: hubble-ui | ||
{{- end }} |
38 changes: 38 additions & 0 deletions
38
install/kubernetes/cilium/charts/hubble-ui/templates/deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{{- if .Values.global.hubble.ui.enabled }} | ||
kind: Deployment | ||
apiVersion: apps/v1 | ||
metadata: | ||
namespace: {{ .Release.Namespace }} | ||
name: hubble-ui | ||
spec: | ||
replicas: {{ .Values.replicas }} | ||
selector: | ||
matchLabels: | ||
k8s-app: hubble-ui | ||
template: | ||
metadata: | ||
labels: | ||
k8s-app: hubble-ui | ||
spec: | ||
serviceAccountName: hubble-ui | ||
containers: | ||
- name: hubble-ui | ||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" | ||
imagePullPolicy: {{ .Values.image.pullPolicy }} | ||
env: | ||
- name: NODE_ENV | ||
value: "production" | ||
- name: LOG_LEVEL | ||
value: "info" | ||
- name: HUBBLE | ||
value: "true" | ||
- name: HUBBLE_SERVICE | ||
value: "hubble-grpc.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}" | ||
- name: HUBBLE_PORT | ||
value: "50051" | ||
ports: | ||
- containerPort: 12000 | ||
name: http | ||
resources: | ||
{{- toYaml .Values.resources | trim | nindent 12 }} | ||
{{- end }} |
29 changes: 29 additions & 0 deletions
29
install/kubernetes/cilium/charts/hubble-ui/templates/ingress.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{{- if and .Values.global.hubble.ui.enabled .Values.ingress.enabled -}} | ||
{{- $ingressPath := .Values.ingress.path -}} | ||
apiVersion: extensions/v1beta1 | ||
kind: Ingress | ||
metadata: | ||
name: hubble-ui | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
k8s-app: hubble-ui | ||
{{- with .Values.ingress.annotations }} | ||
annotations: | ||
{{ toYaml . | indent 4 }} | ||
{{- end }} | ||
spec: | ||
{{- if .Values.ingress.tls }} | ||
tls: | ||
{{ toYaml .Values.ingress.tls | indent 4 }} | ||
{{- end }} | ||
rules: | ||
{{- range .Values.ingress.hosts }} | ||
- host: {{ . }} | ||
http: | ||
paths: | ||
- path: {{ $ingressPath }} | ||
backend: | ||
serviceName: hubble-ui | ||
servicePort: http | ||
{{- end }} | ||
{{- end }} |
7 changes: 7 additions & 0 deletions
7
install/kubernetes/cilium/charts/hubble-ui/templates/serviceaccount.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{{- if .Values.global.hubble.ui.enabled }} | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
namespace: {{ .Release.Namespace }} | ||
name: hubble-ui | ||
{{- end }} |
15 changes: 15 additions & 0 deletions
15
install/kubernetes/cilium/charts/hubble-ui/templates/svc.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{{- if .Values.global.hubble.ui.enabled }} | ||
kind: Service | ||
apiVersion: v1 | ||
metadata: | ||
namespace: {{ .Release.Namespace }} | ||
name: hubble-ui | ||
spec: | ||
selector: | ||
k8s-app: hubble-ui | ||
ports: | ||
- name: http | ||
port: 12000 | ||
targetPort: 12000 | ||
type: ClusterIP | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Configuration for hubble ui | ||
image: | ||
# repository of the docker image | ||
repository: quay.io/cilium/hubble-ui | ||
# tag is the container image tag to use | ||
tag: latest | ||
# pullPolicy is the container image pull policy | ||
pullPolicy: Always | ||
clusterDomain: cluster.local | ||
replicas: 1 | ||
# Resource requests and limits for the 'hubble-ui' container of the 'hubble-ui' deployment, such as | ||
# | ||
# resources: | ||
# limits: | ||
# cpu: 1000m | ||
# memory: 1024Mi | ||
# requests: | ||
# cpu: 100m | ||
# memory: 64Mi | ||
resources: {} | ||
|
||
ingress: | ||
enabled: false | ||
annotations: {} | ||
# kubernetes.io/ingress.class: nginx | ||
# kubernetes.io/tls-acme: "true" | ||
path: / | ||
hosts: | ||
- chart-example.local | ||
tls: [] | ||
# - secretName: chart-example-tls | ||
# hosts: | ||
# - chart-example.local | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters