Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
system-charts
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rancher商店
system-charts
Commits
815ef473
Commit
815ef473
authored
Jul 09, 2019
by
Guangbo Chen
Committed by
Alena Prokharchyk
Jul 23, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Kiali config to istio to reuse cluster-monitoring
parent
ca23d42c
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
56 additions
and
8 deletions
+56
-8
configmap-custom-resources.yaml
.../charts/grafana/templates/configmap-custom-resources.yaml
+2
-0
configmap-dashboards.yaml
.../0.0.2/charts/grafana/templates/configmap-dashboards.yaml
+2
-0
configmap.yaml
...ncher-istio/0.0.2/charts/grafana/templates/configmap.yaml
+2
-0
create-custom-resources-job.yaml
...charts/grafana/templates/create-custom-resources-job.yaml
+2
-0
deployment.yaml
...cher-istio/0.0.2/charts/grafana/templates/deployment.yaml
+2
-0
ingress.yaml
...rancher-istio/0.0.2/charts/grafana/templates/ingress.yaml
+2
-0
nginx-configmap.yaml
...istio/0.0.2/charts/grafana/templates/nginx-configmap.yaml
+2
-0
pvc.yaml
charts/rancher-istio/0.0.2/charts/grafana/templates/pvc.yaml
+2
-0
service.yaml
...rancher-istio/0.0.2/charts/grafana/templates/service.yaml
+2
-0
configmap.yaml
...rancher-istio/0.0.2/charts/kiali/templates/configmap.yaml
+17
-0
deployment.yaml
...ancher-istio/0.0.2/charts/kiali/templates/deployment.yaml
+0
-8
clusterrole.yaml
...-istio/0.0.2/charts/prometheus/templates/clusterrole.yaml
+2
-0
clusterrolebindings.yaml
....0.2/charts/prometheus/templates/clusterrolebindings.yaml
+2
-0
configmap.yaml
...er-istio/0.0.2/charts/prometheus/templates/configmap.yaml
+2
-0
deployment.yaml
...r-istio/0.0.2/charts/prometheus/templates/deployment.yaml
+2
-0
ingress.yaml
...cher-istio/0.0.2/charts/prometheus/templates/ingress.yaml
+2
-0
nginx-configmap.yaml
...io/0.0.2/charts/prometheus/templates/nginx-configmap.yaml
+2
-0
service.yaml
...cher-istio/0.0.2/charts/prometheus/templates/service.yaml
+2
-0
serviceaccount.yaml
...tio/0.0.2/charts/prometheus/templates/serviceaccount.yaml
+2
-0
values.yaml
charts/rancher-istio/0.0.2/values.yaml
+5
-0
No files found.
charts/rancher-istio/0.0.2/charts/grafana/templates/configmap-custom-resources.yaml
View file @
815ef473
{{
- if and .Values.enabled (eq .Values.global.monitoring.type "built-in") -
}}
apiVersion
:
v1
kind
:
ConfigMap
metadata
:
...
...
@@ -14,3 +15,4 @@ data:
{{- include "grafana-default.yaml.tpl" . | indent 4}}
run.sh: |-
{{- include "install-custom-resources.sh.tpl" . | indent 4}}
{{
- end -
}}
charts/rancher-istio/0.0.2/charts/grafana/templates/configmap-dashboards.yaml
View file @
815ef473
{{
- if and .Values.enabled (eq .Values.global.monitoring.type "built-in") -
}}
{{
- $files
:
= .Files
}}
{{
- range $path
,
$bytes
:
= .Files.Glob "dashboards/*.json"
}}
{{
- $filename
:
= trimSuffix (ext $path) (base $path)
}}
...
...
@@ -16,3 +17,4 @@ data:
{{
base $path
}}:
'
{{
$files.Get
$path
}}'
---
{{
- end
}}
{{
- end -
}}
charts/rancher-istio/0.0.2/charts/grafana/templates/configmap.yaml
View file @
815ef473
{{
- if and .Values.enabled (eq .Values.global.monitoring.type "built-in") -
}}
apiVersion
:
v1
kind
:
ConfigMap
metadata
:
...
...
@@ -23,3 +24,4 @@ data:
{{
toYaml $value | indent 4
}}
{{
- end -
}}
{{
- end -
}}
{{
- end -
}}
charts/rancher-istio/0.0.2/charts/grafana/templates/create-custom-resources-job.yaml
View file @
815ef473
{{
- if and .Values.enabled (eq .Values.global.monitoring.type "built-in") -
}}
apiVersion
:
v1
kind
:
ServiceAccount
{{
- if .Values.global.imagePullSecrets
}}
...
...
@@ -92,3 +93,4 @@ spec:
affinity
:
{{
- include "nodeaffinity" . | indent 6
}}
{{
- include "podAntiAffinity" . | indent 6
}}
{{
- end -
}}
charts/rancher-istio/0.0.2/charts/grafana/templates/deployment.yaml
View file @
815ef473
{{
- if and .Values.enabled (eq .Values.global.monitoring.type "built-in") -
}}
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
...
...
@@ -147,3 +148,4 @@ spec:
configMap
:
name
:
istio-grafana-configuration-dashboards-{{ $filename }}
{{
- end
}}
{{
- end -
}}
charts/rancher-istio/0.0.2/charts/grafana/templates/ingress.yaml
View file @
815ef473
{{
- if and .Values.enabled (eq .Values.global.monitoring.type "built-in") -
}}
{{
- if .Values.ingress.enabled -
}}
apiVersion
:
extensions/v1beta1
kind
:
Ingress
...
...
@@ -38,3 +39,4 @@ spec:
{{
toYaml .Values.ingress.tls | indent 4
}}
{{
- end -
}}
{{
- end -
}}
{{
- end -
}}
charts/rancher-istio/0.0.2/charts/grafana/templates/nginx-configmap.yaml
View file @
815ef473
{{
- if and .Values.enabled (eq .Values.global.monitoring.type "built-in") -
}}
apiVersion
:
v1
kind
:
ConfigMap
metadata
:
...
...
@@ -76,3 +77,4 @@ data:
}
}
}
{{
- end -
}}
charts/rancher-istio/0.0.2/charts/grafana/templates/pvc.yaml
View file @
815ef473
{{
- if and .Values.enabled (eq .Values.global.monitoring.type "built-in") -
}}
{{
- if .Values.persistence.enabled
}}
kind
:
PersistentVolumeClaim
apiVersion
:
v1
...
...
@@ -17,3 +18,4 @@ spec:
requests
:
storage
:
{{
.Values.persistence.size
}}
{{
- end
}}
{{
- end -
}}
charts/rancher-istio/0.0.2/charts/grafana/templates/service.yaml
View file @
815ef473
{{
- if and .Values.enabled (eq .Values.global.monitoring.type "built-in") -
}}
apiVersion
:
v1
kind
:
Service
metadata
:
...
...
@@ -22,3 +23,4 @@ spec:
port
:
80
selector
:
app
:
grafana
{{
- end -
}}
charts/rancher-istio/0.0.2/charts/kiali/templates/configmap.yaml
View file @
815ef473
...
...
@@ -22,7 +22,24 @@ data:
{{- end }}
{{- end }}
grafana:
{{- if eq .Values.global.monitoring.type "cluster-monitoring" }}
url: https://{{ .Values.global.rancher.domain }}/k8s/clusters/{{ .Values.global.rancher.clusterId }}/api/v1/namespaces/cattle-prometheus/services/http:access-grafana:80/proxy/
service_namespace: cattle-prometheus
service: access-grafana
{{- else if eq .Values.global.monitoring.type "built-in" }}
{{- if and .Values.global.rancher (and .Values.global.rancher.domain .Values.global.rancher.clusterId) }}
url: https://{{ .Values.global.rancher.domain }}/k8s/clusters/{{ .Values.global.rancher.clusterId }}/api/v1/namespaces/{{ .Release.Namespace }}/services/http:grafana:80/proxy/
{{- end }}
{{- else }}
custom_metrics_url: "http://prometheus.{{ .Release.Namespace }}:9090"
{{- if .Values.dashboard.grafanaURL }}
url: {{ .Values.dashboard.grafanaURL }}
{{- end }}
{{- end }}
prometheus:
{{- if eq .Values.global.monitoring.type "cluster-monitoring" }}
url: "http://access-prometheus.cattle-prometheus:80"
{{- else }}
url: {{ .Values.prometheusAddr }}
{{- end }}
charts/rancher-istio/0.0.2/charts/kiali/templates/deployment.yaml
View file @
815ef473
...
...
@@ -41,12 +41,6 @@ spec:
-
"
-v"
-
"
4"
env
:
{{
- if and .Values.global.rancher (and .Values.global.rancher.domain .Values.global.rancher.clusterId)
}}
{{
- if not .Values.dashboard.grafanaURL
}}
-
name
:
GRAFANA_URL
value
:
'
https://{{
.Values.global.rancher.domain
}}/k8s/clusters/{{
.Values.global.rancher.clusterId
}}/api/v1/namespaces/{{
.Release.Namespace
}}/services/http:grafana:80/proxy/'
{{
- end
}}
{{
- end
}}
-
name
:
ACTIVE_NAMESPACE
valueFrom
:
fieldRef
:
...
...
@@ -65,8 +59,6 @@ spec:
name
:
{{
.Values.dashboard.secretName
}}
key
:
passphrase
optional
:
true
-
name
:
PROMETHEUS_SERVICE_URL
value
:
{{
.Values.prometheusAddr
}}
{{
- if .Values.contextPath
}}
-
name
:
SERVER_WEB_ROOT
value
:
{{
.Values.contextPath
}}
...
...
charts/rancher-istio/0.0.2/charts/prometheus/templates/clusterrole.yaml
View file @
815ef473
{{
- if and .Values.enabled (eq .Values.global.monitoring.type "built-in") -
}}
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
metadata
:
...
...
@@ -22,3 +23,4 @@ rules:
verbs
:
[
"
get"
]
-
nonResourceURLs
:
[
"
/metrics"
]
verbs
:
[
"
get"
]
{{
- end -
}}
charts/rancher-istio/0.0.2/charts/prometheus/templates/clusterrolebindings.yaml
View file @
815ef473
{{
- if and .Values.enabled (eq .Values.global.monitoring.type "built-in") -
}}
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRoleBinding
metadata
:
...
...
@@ -15,3 +16,4 @@ subjects:
-
kind
:
ServiceAccount
name
:
prometheus
namespace
:
{{
.Release.Namespace
}}
{{
- end -
}}
charts/rancher-istio/0.0.2/charts/prometheus/templates/configmap.yaml
View file @
815ef473
{{
- if and .Values.enabled (eq .Values.global.monitoring.type "built-in") -
}}
apiVersion
:
v1
kind
:
ConfigMap
metadata
:
...
...
@@ -279,3 +280,4 @@ data:
- source_labels: [__meta_kubernetes_pod_name]
action: replace
target_label: pod_name
{{
- end -
}}
charts/rancher-istio/0.0.2/charts/prometheus/templates/deployment.yaml
View file @
815ef473
{{
- if and .Values.enabled (eq .Values.global.monitoring.type "built-in") -
}}
# TODO: the original template has service account, roles, etc
apiVersion
:
apps/v1
kind
:
Deployment
...
...
@@ -103,3 +104,4 @@ spec:
tolerations
:
{{
toYaml .Values.tolerations | indent 6
}}
{{
- end
}}
{{
- end -
}}
charts/rancher-istio/0.0.2/charts/prometheus/templates/ingress.yaml
View file @
815ef473
{{
- if and .Values.enabled (eq .Values.global.monitoring.type "built-in") -
}}
{{
- if .Values.ingress.enabled -
}}
apiVersion
:
extensions/v1beta1
kind
:
Ingress
...
...
@@ -38,3 +39,4 @@ spec:
{{
toYaml .Values.ingress.tls | indent 4
}}
{{
- end -
}}
{{
- end -
}}
{{
- end -
}}
charts/rancher-istio/0.0.2/charts/prometheus/templates/nginx-configmap.yaml
View file @
815ef473
{{
- if and .Values.enabled (eq .Values.global.monitoring.type "built-in") -
}}
apiVersion
:
v1
kind
:
ConfigMap
metadata
:
...
...
@@ -80,3 +81,4 @@ data:
}
}
}
{{
- end -
}}
charts/rancher-istio/0.0.2/charts/prometheus/templates/service.yaml
View file @
815ef473
{{
- if and .Values.enabled (eq .Values.global.monitoring.type "built-in") -
}}
apiVersion
:
v1
kind
:
Service
metadata
:
...
...
@@ -42,3 +43,4 @@ spec:
-
name
:
access-prometheus
protocol
:
TCP
port
:
80
{{
- end -
}}
charts/rancher-istio/0.0.2/charts/prometheus/templates/serviceaccount.yaml
View file @
815ef473
{{
- if and .Values.enabled (eq .Values.global.monitoring.type "built-in") -
}}
apiVersion
:
v1
kind
:
ServiceAccount
{{
- if .Values.global.imagePullSecrets
}}
...
...
@@ -14,3 +15,4 @@ metadata:
chart
:
{{
template "prometheus.chart" .
}}
heritage
:
{{
.Release.Service
}}
release
:
{{
.Release.Name
}}
{{
- end -
}}
charts/rancher-istio/0.0.2/values.yaml
View file @
815ef473
...
...
@@ -545,3 +545,8 @@ global:
# This field is set to false by default, so 'helm template ...'
# will ignore the helm test yaml files when generating the template
enableHelmTest
:
false
# Specify the monitoring server config of istio
monitoring
:
# options includes built-in, cluster-monitoring and custom, default to internal
type
:
built-in
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment