forked from istio/istio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added Kiali chart. * Updated replicas. * Updated service account name. * Fix lint. * Address costinm and linsun's comments.
- Loading branch information
Showing
10 changed files
with
245 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
apiVersion: v1 | ||
description: Kiali is an open source project for service mesh observability, refer to https://github.com/kiali/kiali for detail. | ||
name: kiali | ||
version: 0.3.0.Alpha |
70 changes: 70 additions & 0 deletions
70
install/kubernetes/helm/istio/charts/kiali/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,70 @@ | ||
{{- if .Values.global.rbacEnabled }} | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: kiali | ||
labels: | ||
app: kiali | ||
version: master | ||
rules: | ||
- apiGroups: ["","apps", "autoscaling"] | ||
attributeRestrictions: null | ||
resources: | ||
- configmaps | ||
- namespaces | ||
- nodes | ||
- pods | ||
- projects | ||
- services | ||
- endpoints | ||
- deployments | ||
- horizontalpodautoscalers | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: ["config.istio.io"] | ||
attributeRestrictions: null | ||
resources: | ||
- routerules | ||
- destinationpolicies | ||
- rules | ||
- circonuses | ||
- deniers | ||
- fluentds | ||
- kubernetesenvs | ||
- listcheckers | ||
- memquotas | ||
- opas | ||
- prometheuses | ||
- rbacs | ||
- servicecontrols | ||
- solarwindses | ||
- stackdrivers | ||
- statsds | ||
- stdios | ||
- apikeys | ||
- authorizations | ||
- checknothings | ||
- kuberneteses | ||
- listentries | ||
- logentries | ||
- metrics | ||
- quotas | ||
- reportnothings | ||
- servicecontrolreports | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: ["networking.istio.io"] | ||
attributeRestrictions: null | ||
resources: | ||
- virtualservices | ||
- destinationrules | ||
- gateways | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
{{- end }} |
19 changes: 19 additions & 0 deletions
19
install/kubernetes/helm/istio/charts/kiali/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,19 @@ | ||
{{- if .Values.global.rbacEnabled }} | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: istio-kiali-admin-role-binding-{{ .Release.Namespace }} | ||
labels: | ||
app: kiali | ||
chart: {{ .Chart.Name }}-{{ .Chart.Version }} | ||
heritage: {{ .Release.Service }} | ||
release: {{ .Release.Name }} | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: kiali | ||
subjects: | ||
- kind: ServiceAccount | ||
name: kiali-service-account | ||
namespace: {{ .Release.Namespace }} | ||
{{- end }} |
15 changes: 15 additions & 0 deletions
15
install/kubernetes/helm/istio/charts/kiali/templates/configmap.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 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: kiali | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
app: kiali | ||
data: | ||
config.yaml: | | ||
server: | ||
port: 20001 | ||
static_content_root_directory: /opt/kiali/console | ||
credentials: | ||
username: {{ .Values.dashboard.username }} | ||
password: {{ .Values.dashboard.password }} |
45 changes: 45 additions & 0 deletions
45
install/kubernetes/helm/istio/charts/kiali/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,45 @@ | ||
apiVersion: extensions/v1beta1 | ||
kind: Deployment | ||
metadata: | ||
name: kiali | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
app: kiali | ||
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} | ||
release: {{ .Release.Name }} | ||
heritage: {{ .Release.Service }} | ||
spec: | ||
replicas: {{ .Values.replicaCount }} | ||
selector: | ||
matchLabels: | ||
app: kiali | ||
template: | ||
metadata: | ||
name: kiali | ||
labels: | ||
app: kiali | ||
spec: | ||
{{- if .Values.global.rbacEnabled }} | ||
serviceAccountName: kiali-service-account | ||
{{ end }} | ||
containers: | ||
- image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" | ||
name: kiali | ||
command: | ||
- "/opt/kiali/kiali" | ||
- "-config" | ||
- "/kiali-configuration/config.yaml" | ||
- "-v" | ||
- "4" | ||
env: | ||
- name: ACTIVE_NAMESPACE | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: metadata.namespace | ||
volumeMounts: | ||
- name: kiali-configuration | ||
mountPath: "/kiali-configuration" | ||
volumes: | ||
- name: kiali-configuration | ||
configMap: | ||
name: kiali |
28 changes: 28 additions & 0 deletions
28
install/kubernetes/helm/istio/charts/kiali/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,28 @@ | ||
{{- if .Values.ingress.enabled -}} | ||
apiVersion: extensions/v1beta1 | ||
kind: Ingress | ||
metadata: | ||
name: kiali | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
app: kiali | ||
annotations: | ||
{{- range $key, $value := .Values.ingress.annotations }} | ||
{{ $key }}: {{ $value | quote }} | ||
{{- end }} | ||
spec: | ||
rules: | ||
{{- range $host := .Values.ingress.hosts }} | ||
- host: {{ $host }} | ||
http: | ||
paths: | ||
- path: / | ||
backend: | ||
serviceName: kiali | ||
servicePort: 20001 | ||
{{- end -}} | ||
{{- if .Values.ingress.tls }} | ||
tls: | ||
{{ toYaml .Values.ingress.tls | indent 4 }} | ||
{{- end -}} | ||
{{- end -}} |
15 changes: 15 additions & 0 deletions
15
install/kubernetes/helm/istio/charts/kiali/templates/service.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 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: kiali | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
app: kiali | ||
spec: | ||
ports: | ||
- name: tcp | ||
protocol: TCP | ||
port: 20001 | ||
name: http-kiali | ||
selector: | ||
app: kiali |
16 changes: 16 additions & 0 deletions
16
install/kubernetes/helm/istio/charts/kiali/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,16 @@ | ||
{{- if .Values.global.rbacEnabled }} | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
{{- if .Values.global.imagePullSecrets }} | ||
imagePullSecrets: | ||
{{ toYaml .Values.global.imagePullSecrets | indent 2 }} | ||
{{- end }} | ||
metadata: | ||
name: kiali-service-account | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
app: kiali | ||
chart: {{ .Chart.Name }}-{{ .Chart.Version }} | ||
heritage: {{ .Release.Service }} | ||
release: {{ .Release.Name }} | ||
{{- 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
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