grafana: Update chart
This commit is contained in:
parent
bb26bcf6f3
commit
61052424c3
|
@ -4,10 +4,10 @@ kind: ClusterRole
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
helm.sh/chart: grafana-6.29.2
|
helm.sh/chart: grafana-6.48.0
|
||||||
app.kubernetes.io/name: grafana
|
app.kubernetes.io/name: grafana
|
||||||
app.kubernetes.io/instance: grafana
|
app.kubernetes.io/instance: grafana
|
||||||
app.kubernetes.io/version: "8.5.0"
|
app.kubernetes.io/version: "9.3.1"
|
||||||
app.kubernetes.io/managed-by: Helm
|
app.kubernetes.io/managed-by: Helm
|
||||||
name: grafana-clusterrole
|
name: grafana-clusterrole
|
||||||
rules: []
|
rules: []
|
||||||
|
|
|
@ -5,10 +5,10 @@ apiVersion: rbac.authorization.k8s.io/v1
|
||||||
metadata:
|
metadata:
|
||||||
name: grafana-clusterrolebinding
|
name: grafana-clusterrolebinding
|
||||||
labels:
|
labels:
|
||||||
helm.sh/chart: grafana-6.29.2
|
helm.sh/chart: grafana-6.48.0
|
||||||
app.kubernetes.io/name: grafana
|
app.kubernetes.io/name: grafana
|
||||||
app.kubernetes.io/instance: grafana
|
app.kubernetes.io/instance: grafana
|
||||||
app.kubernetes.io/version: "8.5.0"
|
app.kubernetes.io/version: "9.3.1"
|
||||||
app.kubernetes.io/managed-by: Helm
|
app.kubernetes.io/managed-by: Helm
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
|
|
|
@ -6,10 +6,10 @@ metadata:
|
||||||
name: grafana
|
name: grafana
|
||||||
namespace: default
|
namespace: default
|
||||||
labels:
|
labels:
|
||||||
helm.sh/chart: grafana-6.29.2
|
helm.sh/chart: grafana-6.48.0
|
||||||
app.kubernetes.io/name: grafana
|
app.kubernetes.io/name: grafana
|
||||||
app.kubernetes.io/instance: grafana
|
app.kubernetes.io/instance: grafana
|
||||||
app.kubernetes.io/version: "8.5.0"
|
app.kubernetes.io/version: "9.3.1"
|
||||||
app.kubernetes.io/managed-by: Helm
|
app.kubernetes.io/managed-by: Helm
|
||||||
data:
|
data:
|
||||||
grafana.ini: |
|
grafana.ini: |
|
||||||
|
@ -24,7 +24,8 @@ data:
|
||||||
logs = /var/log/grafana
|
logs = /var/log/grafana
|
||||||
plugins = /var/lib/grafana/plugins
|
plugins = /var/lib/grafana/plugins
|
||||||
provisioning = /etc/grafana/provisioning
|
provisioning = /etc/grafana/provisioning
|
||||||
|
[server]
|
||||||
|
domain = ''
|
||||||
datasources.yaml: |
|
datasources.yaml: |
|
||||||
apiVersion: 1
|
apiVersion: 1
|
||||||
datasources:
|
datasources:
|
||||||
|
@ -53,33 +54,51 @@ data:
|
||||||
--max-time 60 \
|
--max-time 60 \
|
||||||
-H "Accept: application/json" \
|
-H "Accept: application/json" \
|
||||||
-H "Content-Type: application/json;charset=UTF-8" \
|
-H "Content-Type: application/json;charset=UTF-8" \
|
||||||
"https://grafana.com/api/dashboards/10046/revisions/1/download" | sed '/-- .* --/! s/"datasource":.*,/"datasource": "Prometheus",/g'\
|
"https://grafana.com/api/dashboards/13192/revisions/1/download" \
|
||||||
|
| sed '/-- .* --/! s/"datasource":.*,/"datasource": "Prometheus",/g' \
|
||||||
> "/var/lib/grafana/dashboards/default/gitea.json"
|
> "/var/lib/grafana/dashboards/default/gitea.json"
|
||||||
|
|
||||||
curl -skf \
|
curl -skf \
|
||||||
--connect-timeout 60 \
|
--connect-timeout 60 \
|
||||||
--max-time 60 \
|
--max-time 60 \
|
||||||
-H "Accept: application/json" \
|
-H "Accept: application/json" \
|
||||||
-H "Content-Type: application/json;charset=UTF-8" \
|
-H "Content-Type: application/json;charset=UTF-8" \
|
||||||
"https://grafana.com/api/dashboards/12006/revisions/1/download" | sed '/-- .* --/! s/"datasource":.*,/"datasource": "Prometheus",/g'\
|
"https://grafana.com/api/dashboards/12006/revisions/1/download" \
|
||||||
|
| sed '/-- .* --/! s/"datasource":.*,/"datasource": "Prometheus",/g' \
|
||||||
> "/var/lib/grafana/dashboards/default/kubernetes-apiserver.json"
|
> "/var/lib/grafana/dashboards/default/kubernetes-apiserver.json"
|
||||||
|
|
||||||
curl -skf \
|
curl -skf \
|
||||||
--connect-timeout 60 \
|
--connect-timeout 60 \
|
||||||
--max-time 60 \
|
--max-time 60 \
|
||||||
-H "Accept: application/json" \
|
-H "Accept: application/json" \
|
||||||
-H "Content-Type: application/json;charset=UTF-8" \
|
-H "Content-Type: application/json;charset=UTF-8" \
|
||||||
"https://grafana.com/api/dashboards/9614/revisions/1/download" | sed '/-- .* --/! s/"datasource":.*,/"datasource": "Prometheus",/g'\
|
"https://grafana.com/api/dashboards/9614/revisions/1/download" \
|
||||||
|
| sed '/-- .* --/! s/"datasource":.*,/"datasource": "Prometheus",/g' \
|
||||||
> "/var/lib/grafana/dashboards/default/nginx-ingress.json"
|
> "/var/lib/grafana/dashboards/default/nginx-ingress.json"
|
||||||
|
|
||||||
curl -skf \
|
curl -skf \
|
||||||
--connect-timeout 60 \
|
--connect-timeout 60 \
|
||||||
--max-time 60 \
|
--max-time 60 \
|
||||||
-H "Accept: application/json" \
|
-H "Accept: application/json" \
|
||||||
-H "Content-Type: application/json;charset=UTF-8" \
|
-H "Content-Type: application/json;charset=UTF-8" \
|
||||||
"https://grafana.com/api/dashboards/1860/revisions/26/download" | sed '/-- .* --/! s/"datasource":.*,/"datasource": "Prometheus",/g'\
|
"https://grafana.com/api/dashboards/1860/revisions/26/download" \
|
||||||
|
| sed '/-- .* --/! s/"datasource":.*,/"datasource": "Prometheus",/g' \
|
||||||
> "/var/lib/grafana/dashboards/default/node.json"
|
> "/var/lib/grafana/dashboards/default/node.json"
|
||||||
|
|
||||||
curl -skf \
|
curl -skf \
|
||||||
--connect-timeout 60 \
|
--connect-timeout 60 \
|
||||||
--max-time 60 \
|
--max-time 60 \
|
||||||
-H "Accept: application/json" \
|
-H "Accept: application/json" \
|
||||||
-H "Content-Type: application/json;charset=UTF-8" \
|
-H "Content-Type: application/json;charset=UTF-8" \
|
||||||
"https://grafana.com/api/dashboards/9628/revisions/7/download" | sed '/-- .* --/! s/"datasource":.*,/"datasource": "Prometheus",/g'\
|
"https://grafana.com/api/dashboards/9628/revisions/7/download" \
|
||||||
|
| sed '/-- .* --/! s/"datasource":.*,/"datasource": "Prometheus",/g' \
|
||||||
> "/var/lib/grafana/dashboards/default/postgresql.json"
|
> "/var/lib/grafana/dashboards/default/postgresql.json"
|
||||||
|
|
||||||
|
curl -skf \
|
||||||
|
--connect-timeout 60 \
|
||||||
|
--max-time 60 \
|
||||||
|
-H "Accept: application/json" \
|
||||||
|
-H "Content-Type: application/json;charset=UTF-8" \
|
||||||
|
"https://grafana.com/api/dashboards/10046/revisions/1/download" \
|
||||||
|
| sed '/-- .* --/! s/"datasource":.*,/"datasource": "Prometheus",/g' \
|
||||||
|
> "/var/lib/grafana/dashboards/default/synapse.json"
|
||||||
|
|
|
@ -6,10 +6,10 @@ metadata:
|
||||||
name: grafana-dashboards-default
|
name: grafana-dashboards-default
|
||||||
namespace: default
|
namespace: default
|
||||||
labels:
|
labels:
|
||||||
helm.sh/chart: grafana-6.29.2
|
helm.sh/chart: grafana-6.48.0
|
||||||
app.kubernetes.io/name: grafana
|
app.kubernetes.io/name: grafana
|
||||||
app.kubernetes.io/instance: grafana
|
app.kubernetes.io/instance: grafana
|
||||||
app.kubernetes.io/version: "8.5.0"
|
app.kubernetes.io/version: "9.3.1"
|
||||||
app.kubernetes.io/managed-by: Helm
|
app.kubernetes.io/managed-by: Helm
|
||||||
dashboard-provider: default
|
dashboard-provider: default
|
||||||
data:
|
data:
|
||||||
|
|
|
@ -6,10 +6,10 @@ metadata:
|
||||||
name: grafana
|
name: grafana
|
||||||
namespace: default
|
namespace: default
|
||||||
labels:
|
labels:
|
||||||
helm.sh/chart: grafana-6.29.2
|
helm.sh/chart: grafana-6.48.0
|
||||||
app.kubernetes.io/name: grafana
|
app.kubernetes.io/name: grafana
|
||||||
app.kubernetes.io/instance: grafana
|
app.kubernetes.io/instance: grafana
|
||||||
app.kubernetes.io/version: "8.5.0"
|
app.kubernetes.io/version: "9.3.1"
|
||||||
app.kubernetes.io/managed-by: Helm
|
app.kubernetes.io/managed-by: Helm
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
@ -26,8 +26,8 @@ spec:
|
||||||
app.kubernetes.io/name: grafana
|
app.kubernetes.io/name: grafana
|
||||||
app.kubernetes.io/instance: grafana
|
app.kubernetes.io/instance: grafana
|
||||||
annotations:
|
annotations:
|
||||||
checksum/config: 6060638a52f08e279c64b37a63b59ec99aa0b12a2a25e594b3d7acd41512ea01
|
checksum/config: 60be875675b2ad83279ee347d5a150559b24646f43fbc740f51b97915a0b9c31
|
||||||
checksum/dashboards-json-config: 60bfce132b37398fa9329494762f049aebef4ba473dabdd67d4f15d6a86a578c
|
checksum/dashboards-json-config: 703b33634d715cefba0501f04654c5d6dc28aba46888183ea3420ccdae3c8ecf
|
||||||
checksum/sc-dashboard-provider-config: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
|
checksum/sc-dashboard-provider-config: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
|
||||||
spec:
|
spec:
|
||||||
|
|
||||||
|
@ -39,12 +39,10 @@ spec:
|
||||||
runAsUser: 472
|
runAsUser: 472
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: download-dashboards
|
- name: download-dashboards
|
||||||
image: "curlimages/curl:7.73.0"
|
image: "curlimages/curl:7.85.0"
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
command: ["/bin/sh"]
|
command: ["/bin/sh"]
|
||||||
args: [ "-c", "mkdir -p /var/lib/grafana/dashboards/default && /bin/sh -x /etc/grafana/download_dashboards.sh" ]
|
args: [ "-c", "mkdir -p /var/lib/grafana/dashboards/default && /bin/sh -x /etc/grafana/download_dashboards.sh" ]
|
||||||
resources:
|
|
||||||
{}
|
|
||||||
env:
|
env:
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: config
|
- name: config
|
||||||
|
@ -55,7 +53,7 @@ spec:
|
||||||
enableServiceLinks: true
|
enableServiceLinks: true
|
||||||
containers:
|
containers:
|
||||||
- name: grafana
|
- name: grafana
|
||||||
image: "grafana/grafana:8.5.0"
|
image: "grafana/grafana:9.3.1"
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: config
|
- name: config
|
||||||
|
@ -70,9 +68,6 @@ spec:
|
||||||
mountPath: "/etc/grafana/provisioning/dashboards/dashboardproviders.yaml"
|
mountPath: "/etc/grafana/provisioning/dashboards/dashboardproviders.yaml"
|
||||||
subPath: "dashboardproviders.yaml"
|
subPath: "dashboardproviders.yaml"
|
||||||
ports:
|
ports:
|
||||||
- name: service
|
|
||||||
containerPort: 80
|
|
||||||
protocol: TCP
|
|
||||||
- name: grafana
|
- name: grafana
|
||||||
containerPort: 3000
|
containerPort: 3000
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
@ -106,8 +101,6 @@ spec:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /api/health
|
path: /api/health
|
||||||
port: 3000
|
port: 3000
|
||||||
resources:
|
|
||||||
{}
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: config
|
- name: config
|
||||||
configMap:
|
configMap:
|
||||||
|
|
|
@ -1,51 +0,0 @@
|
||||||
---
|
|
||||||
# Source: grafana/templates/podsecuritypolicy.yaml
|
|
||||||
apiVersion: policy/v1beta1
|
|
||||||
kind: PodSecurityPolicy
|
|
||||||
metadata:
|
|
||||||
name: grafana
|
|
||||||
labels:
|
|
||||||
helm.sh/chart: grafana-6.29.2
|
|
||||||
app.kubernetes.io/name: grafana
|
|
||||||
app.kubernetes.io/instance: grafana
|
|
||||||
app.kubernetes.io/version: "8.5.0"
|
|
||||||
app.kubernetes.io/managed-by: Helm
|
|
||||||
annotations:
|
|
||||||
seccomp.security.alpha.kubernetes.io/allowedProfileNames: 'docker/default,runtime/default'
|
|
||||||
seccomp.security.alpha.kubernetes.io/defaultProfileName: 'docker/default'
|
|
||||||
apparmor.security.beta.kubernetes.io/allowedProfileNames: 'runtime/default'
|
|
||||||
apparmor.security.beta.kubernetes.io/defaultProfileName: 'runtime/default'
|
|
||||||
spec:
|
|
||||||
privileged: false
|
|
||||||
allowPrivilegeEscalation: false
|
|
||||||
requiredDropCapabilities:
|
|
||||||
# Default set from Docker, with DAC_OVERRIDE and CHOWN
|
|
||||||
- ALL
|
|
||||||
volumes:
|
|
||||||
- 'configMap'
|
|
||||||
- 'emptyDir'
|
|
||||||
- 'projected'
|
|
||||||
- 'csi'
|
|
||||||
- 'secret'
|
|
||||||
- 'downwardAPI'
|
|
||||||
- 'persistentVolumeClaim'
|
|
||||||
hostNetwork: false
|
|
||||||
hostIPC: false
|
|
||||||
hostPID: false
|
|
||||||
runAsUser:
|
|
||||||
rule: 'RunAsAny'
|
|
||||||
seLinux:
|
|
||||||
rule: 'RunAsAny'
|
|
||||||
supplementalGroups:
|
|
||||||
rule: 'MustRunAs'
|
|
||||||
ranges:
|
|
||||||
# Forbid adding the root group.
|
|
||||||
- min: 1
|
|
||||||
max: 65535
|
|
||||||
fsGroup:
|
|
||||||
rule: 'MustRunAs'
|
|
||||||
ranges:
|
|
||||||
# Forbid adding the root group.
|
|
||||||
- min: 1
|
|
||||||
max: 65535
|
|
||||||
readOnlyRootFilesystem: false
|
|
|
@ -6,10 +6,10 @@ metadata:
|
||||||
name: grafana
|
name: grafana
|
||||||
namespace: default
|
namespace: default
|
||||||
labels:
|
labels:
|
||||||
helm.sh/chart: grafana-6.29.2
|
helm.sh/chart: grafana-6.48.0
|
||||||
app.kubernetes.io/name: grafana
|
app.kubernetes.io/name: grafana
|
||||||
app.kubernetes.io/instance: grafana
|
app.kubernetes.io/instance: grafana
|
||||||
app.kubernetes.io/version: "8.5.0"
|
app.kubernetes.io/version: "9.3.1"
|
||||||
app.kubernetes.io/managed-by: Helm
|
app.kubernetes.io/managed-by: Helm
|
||||||
rules:
|
rules:
|
||||||
- apiGroups: ['extensions']
|
- apiGroups: ['extensions']
|
||||||
|
|
|
@ -6,10 +6,10 @@ metadata:
|
||||||
name: grafana
|
name: grafana
|
||||||
namespace: default
|
namespace: default
|
||||||
labels:
|
labels:
|
||||||
helm.sh/chart: grafana-6.29.2
|
helm.sh/chart: grafana-6.48.0
|
||||||
app.kubernetes.io/name: grafana
|
app.kubernetes.io/name: grafana
|
||||||
app.kubernetes.io/instance: grafana
|
app.kubernetes.io/instance: grafana
|
||||||
app.kubernetes.io/version: "8.5.0"
|
app.kubernetes.io/version: "9.3.1"
|
||||||
app.kubernetes.io/managed-by: Helm
|
app.kubernetes.io/managed-by: Helm
|
||||||
roleRef:
|
roleRef:
|
||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
|
|
@ -6,10 +6,10 @@ metadata:
|
||||||
name: grafana
|
name: grafana
|
||||||
namespace: default
|
namespace: default
|
||||||
labels:
|
labels:
|
||||||
helm.sh/chart: grafana-6.29.2
|
helm.sh/chart: grafana-6.48.0
|
||||||
app.kubernetes.io/name: grafana
|
app.kubernetes.io/name: grafana
|
||||||
app.kubernetes.io/instance: grafana
|
app.kubernetes.io/instance: grafana
|
||||||
app.kubernetes.io/version: "8.5.0"
|
app.kubernetes.io/version: "9.3.1"
|
||||||
app.kubernetes.io/managed-by: Helm
|
app.kubernetes.io/managed-by: Helm
|
||||||
spec:
|
spec:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
|
@ -18,7 +18,6 @@ spec:
|
||||||
port: 80
|
port: 80
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
targetPort: 3000
|
targetPort: 3000
|
||||||
|
|
||||||
selector:
|
selector:
|
||||||
app.kubernetes.io/name: grafana
|
app.kubernetes.io/name: grafana
|
||||||
app.kubernetes.io/instance: grafana
|
app.kubernetes.io/instance: grafana
|
||||||
|
|
|
@ -4,10 +4,10 @@ apiVersion: v1
|
||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
helm.sh/chart: grafana-6.29.2
|
helm.sh/chart: grafana-6.48.0
|
||||||
app.kubernetes.io/name: grafana
|
app.kubernetes.io/name: grafana
|
||||||
app.kubernetes.io/instance: grafana
|
app.kubernetes.io/instance: grafana
|
||||||
app.kubernetes.io/version: "8.5.0"
|
app.kubernetes.io/version: "9.3.1"
|
||||||
app.kubernetes.io/managed-by: Helm
|
app.kubernetes.io/managed-by: Helm
|
||||||
name: grafana
|
name: grafana
|
||||||
namespace: default
|
namespace: default
|
||||||
|
|
|
@ -66,7 +66,6 @@ resources:
|
||||||
- inflated/grafana/templates/role.yaml
|
- inflated/grafana/templates/role.yaml
|
||||||
- inflated/grafana/templates/service.yaml
|
- inflated/grafana/templates/service.yaml
|
||||||
- inflated/grafana/templates/clusterrole.yaml
|
- inflated/grafana/templates/clusterrole.yaml
|
||||||
- inflated/grafana/templates/podsecuritypolicy.yaml
|
|
||||||
- inflated/grafana/templates/configmap.yaml
|
- inflated/grafana/templates/configmap.yaml
|
||||||
- inflated/grafana/templates/clusterrolebinding.yaml
|
- inflated/grafana/templates/clusterrolebinding.yaml
|
||||||
# kubernetes-replicator
|
# kubernetes-replicator
|
||||||
|
|
Loading…
Reference in New Issue