334 lines
11 KiB
YAML
334 lines
11 KiB
YAML
---
|
|
"kind": "StatefulSet"
|
|
"apiVersion": "apps/v1"
|
|
"metadata":
|
|
"name": "kube-prometheus-stack-1761819498-grafana"
|
|
"namespace": "kube-mon"
|
|
"labels":
|
|
"app.kubernetes.io/instance": "kube-prometheus-stack-1761819498"
|
|
"app.kubernetes.io/managed-by": "Helm"
|
|
"app.kubernetes.io/name": "grafana"
|
|
"app.kubernetes.io/version": "12.2.1"
|
|
"helm.sh/chart": "grafana-10.1.4"
|
|
"k8slens-edit-resource-version": "v1"
|
|
"annotations":
|
|
"meta.helm.sh/release-name": "kube-prometheus-stack-1761819498"
|
|
"meta.helm.sh/release-namespace": "kube-mon"
|
|
"spec":
|
|
"replicas": 1
|
|
"selector":
|
|
"matchLabels":
|
|
"app.kubernetes.io/instance": "kube-prometheus-stack-1761819498"
|
|
"app.kubernetes.io/name": "grafana"
|
|
"template":
|
|
"metadata":
|
|
"labels":
|
|
"app.kubernetes.io/instance": "kube-prometheus-stack-1761819498"
|
|
"app.kubernetes.io/name": "grafana"
|
|
"app.kubernetes.io/version": "12.2.1"
|
|
"helm.sh/chart": "grafana-10.1.4"
|
|
"annotations":
|
|
"checksum/config": "d4994ce00e7811465a2fa6543bf581120fee2eef2b029c1877d15c2a3886deae"
|
|
"checksum/dashboards-json-config": "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b"
|
|
"checksum/sc-dashboard-provider-config": "77f303eadac6bf5e0f42c223d042ba2827635e029336a34ae30a97433b486bdb"
|
|
"checksum/secret": "68ab9c5d48640ff3232bd4e6b4f93001b47e8cc44ae8bbd347e5af4fa2bafa55"
|
|
"kubectl.kubernetes.io/default-container": "grafana"
|
|
"spec":
|
|
"volumes":
|
|
-
|
|
"name": "config"
|
|
"configMap":
|
|
"name": "kube-prometheus-stack-1761819498-grafana"
|
|
"defaultMode": 420
|
|
-
|
|
"name": "sc-dashboard-volume"
|
|
"emptyDir": {}
|
|
-
|
|
"name": "sc-dashboard-provider"
|
|
"configMap":
|
|
"name": "kube-prometheus-stack-1761819498-grafana-config-dashboards"
|
|
"defaultMode": 420
|
|
-
|
|
"name": "sc-datasources-volume"
|
|
"emptyDir": {}
|
|
"initContainers":
|
|
-
|
|
"name": "init-chown-data"
|
|
"image": "docker.io/library/busybox:1.31.1"
|
|
"command":
|
|
- "chown"
|
|
- "-R"
|
|
- "472:472"
|
|
- "/var/lib/grafana"
|
|
"resources": {}
|
|
"volumeMounts":
|
|
-
|
|
"name": "storage"
|
|
"mountPath": "/var/lib/grafana"
|
|
"terminationMessagePath": "/dev/termination-log"
|
|
"terminationMessagePolicy": "File"
|
|
"imagePullPolicy": "IfNotPresent"
|
|
"securityContext":
|
|
"capabilities":
|
|
"add":
|
|
- "CHOWN"
|
|
"drop":
|
|
- "ALL"
|
|
"runAsUser": 0
|
|
"runAsNonRoot": false
|
|
"readOnlyRootFilesystem": false
|
|
"seccompProfile":
|
|
"type": "RuntimeDefault"
|
|
"containers":
|
|
-
|
|
"name": "grafana-sc-dashboard"
|
|
"image": "quay.io/kiwigrid/k8s-sidecar:1.30.10"
|
|
"env":
|
|
-
|
|
"name": "METHOD"
|
|
"value": "WATCH"
|
|
-
|
|
"name": "LABEL"
|
|
"value": "grafana_dashboard"
|
|
-
|
|
"name": "LABEL_VALUE"
|
|
"value": "1"
|
|
-
|
|
"name": "FOLDER"
|
|
"value": "/tmp/dashboards"
|
|
-
|
|
"name": "RESOURCE"
|
|
"value": "both"
|
|
-
|
|
"name": "NAMESPACE"
|
|
"value": "ALL"
|
|
-
|
|
"name": "SKIP_TLS_VERIFY"
|
|
"value": "true"
|
|
-
|
|
"name": "REQ_USERNAME"
|
|
"valueFrom":
|
|
"secretKeyRef":
|
|
"name": "kube-prometheus-stack-1761819498-grafana"
|
|
"key": "admin-user"
|
|
-
|
|
"name": "REQ_PASSWORD"
|
|
"valueFrom":
|
|
"secretKeyRef":
|
|
"name": "kube-prometheus-stack-1761819498-grafana"
|
|
"key": "admin-password"
|
|
-
|
|
"name": "REQ_URL"
|
|
"value": "http://localhost:3000/api/admin/provisioning/dashboards/reload"
|
|
-
|
|
"name": "REQ_METHOD"
|
|
"value": "POST"
|
|
"resources": {}
|
|
"volumeMounts":
|
|
-
|
|
"name": "sc-dashboard-volume"
|
|
"mountPath": "/tmp/dashboards"
|
|
"terminationMessagePath": "/dev/termination-log"
|
|
"terminationMessagePolicy": "File"
|
|
"imagePullPolicy": "IfNotPresent"
|
|
"securityContext":
|
|
"capabilities":
|
|
"drop":
|
|
- "ALL"
|
|
"allowPrivilegeEscalation": false
|
|
"seccompProfile":
|
|
"type": "RuntimeDefault"
|
|
-
|
|
"name": "grafana-sc-datasources"
|
|
"image": "quay.io/kiwigrid/k8s-sidecar:1.30.10"
|
|
"env":
|
|
-
|
|
"name": "METHOD"
|
|
"value": "WATCH"
|
|
-
|
|
"name": "LABEL"
|
|
"value": "grafana_datasource"
|
|
-
|
|
"name": "LABEL_VALUE"
|
|
"value": "1"
|
|
-
|
|
"name": "FOLDER"
|
|
"value": "/etc/grafana/provisioning/datasources"
|
|
-
|
|
"name": "RESOURCE"
|
|
"value": "both"
|
|
-
|
|
"name": "SKIP_TLS_VERIFY"
|
|
"value": "true"
|
|
-
|
|
"name": "REQ_USERNAME"
|
|
"valueFrom":
|
|
"secretKeyRef":
|
|
"name": "kube-prometheus-stack-1761819498-grafana"
|
|
"key": "admin-user"
|
|
-
|
|
"name": "REQ_PASSWORD"
|
|
"valueFrom":
|
|
"secretKeyRef":
|
|
"name": "kube-prometheus-stack-1761819498-grafana"
|
|
"key": "admin-password"
|
|
-
|
|
"name": "REQ_URL"
|
|
"value": "http://localhost:3000/api/admin/provisioning/datasources/reload"
|
|
-
|
|
"name": "REQ_METHOD"
|
|
"value": "POST"
|
|
"resources": {}
|
|
"volumeMounts":
|
|
-
|
|
"name": "sc-datasources-volume"
|
|
"mountPath": "/etc/grafana/provisioning/datasources"
|
|
"terminationMessagePath": "/dev/termination-log"
|
|
"terminationMessagePolicy": "File"
|
|
"imagePullPolicy": "IfNotPresent"
|
|
"securityContext":
|
|
"capabilities":
|
|
"drop":
|
|
- "ALL"
|
|
"allowPrivilegeEscalation": false
|
|
"seccompProfile":
|
|
"type": "RuntimeDefault"
|
|
-
|
|
"name": "grafana"
|
|
"image": "docker.io/grafana/grafana:13.1.0-24485707904"
|
|
"ports":
|
|
-
|
|
"name": "grafana"
|
|
"containerPort": 3000
|
|
"protocol": "TCP"
|
|
-
|
|
"name": "gossip-tcp"
|
|
"containerPort": 9094
|
|
"protocol": "TCP"
|
|
-
|
|
"name": "gossip-udp"
|
|
"containerPort": 9094
|
|
"protocol": "UDP"
|
|
-
|
|
"name": "profiling"
|
|
"containerPort": 6060
|
|
"protocol": "TCP"
|
|
"env":
|
|
-
|
|
"name": "POD_IP"
|
|
"valueFrom":
|
|
"fieldRef":
|
|
"apiVersion": "v1"
|
|
"fieldPath": "status.podIP"
|
|
-
|
|
"name": "GF_SECURITY_ADMIN_USER"
|
|
"valueFrom":
|
|
"secretKeyRef":
|
|
"name": "kube-prometheus-stack-1761819498-grafana"
|
|
"key": "admin-user"
|
|
-
|
|
"name": "GF_SECURITY_ADMIN_PASSWORD"
|
|
"valueFrom":
|
|
"secretKeyRef":
|
|
"name": "kube-prometheus-stack-1761819498-grafana"
|
|
"key": "admin-password"
|
|
-
|
|
"name": "GF_PATHS_DATA"
|
|
"value": "/var/lib/grafana/"
|
|
-
|
|
"name": "GF_PATHS_LOGS"
|
|
"value": "/var/log/grafana"
|
|
-
|
|
"name": "GF_PATHS_PLUGINS"
|
|
"value": "/var/lib/grafana/plugins"
|
|
-
|
|
"name": "GF_PATHS_PROVISIONING"
|
|
"value": "/etc/grafana/provisioning"
|
|
"resources": {}
|
|
"volumeMounts":
|
|
-
|
|
"name": "config"
|
|
"mountPath": "/etc/grafana/grafana.ini"
|
|
"subPath": "grafana.ini"
|
|
-
|
|
"name": "storage"
|
|
"mountPath": "/var/lib/grafana"
|
|
-
|
|
"name": "sc-dashboard-volume"
|
|
"mountPath": "/tmp/dashboards"
|
|
-
|
|
"name": "sc-dashboard-provider"
|
|
"mountPath": "/etc/grafana/provisioning/dashboards/sc-dashboardproviders.yaml"
|
|
"subPath": "provider.yaml"
|
|
-
|
|
"name": "sc-datasources-volume"
|
|
"mountPath": "/etc/grafana/provisioning/datasources"
|
|
"livenessProbe":
|
|
"httpGet":
|
|
"path": "/api/health"
|
|
"port": 3000
|
|
"scheme": "HTTP"
|
|
"initialDelaySeconds": 60
|
|
"timeoutSeconds": 30
|
|
"periodSeconds": 10
|
|
"successThreshold": 1
|
|
"failureThreshold": 10
|
|
"readinessProbe":
|
|
"httpGet":
|
|
"path": "/api/health"
|
|
"port": 3000
|
|
"scheme": "HTTP"
|
|
"timeoutSeconds": 1
|
|
"periodSeconds": 10
|
|
"successThreshold": 1
|
|
"failureThreshold": 3
|
|
"terminationMessagePath": "/dev/termination-log"
|
|
"terminationMessagePolicy": "File"
|
|
"imagePullPolicy": "IfNotPresent"
|
|
"securityContext":
|
|
"capabilities":
|
|
"drop":
|
|
- "ALL"
|
|
"allowPrivilegeEscalation": false
|
|
"seccompProfile":
|
|
"type": "RuntimeDefault"
|
|
"restartPolicy": "Always"
|
|
"terminationGracePeriodSeconds": 30
|
|
"dnsPolicy": "ClusterFirst"
|
|
"serviceAccountName": "kube-prometheus-stack-1761819498-grafana"
|
|
"serviceAccount": "kube-prometheus-stack-1761819498-grafana"
|
|
"automountServiceAccountToken": true
|
|
"shareProcessNamespace": false
|
|
"securityContext":
|
|
"runAsUser": 472
|
|
"runAsGroup": 472
|
|
"runAsNonRoot": true
|
|
"fsGroup": 472
|
|
"schedulerName": "default-scheduler"
|
|
"enableServiceLinks": true
|
|
"volumeClaimTemplates":
|
|
-
|
|
"kind": "PersistentVolumeClaim"
|
|
"apiVersion": "v1"
|
|
"metadata":
|
|
"name": "storage"
|
|
"spec":
|
|
"accessModes":
|
|
- "ReadWriteOnce"
|
|
"resources":
|
|
"requests":
|
|
"storage": "20Gi"
|
|
"storageClassName": "nfs-csi"
|
|
"volumeMode": "Filesystem"
|
|
"serviceName": "kube-prometheus-stack-1761819498-grafana-headless"
|
|
"podManagementPolicy": "OrderedReady"
|
|
"updateStrategy":
|
|
"type": "RollingUpdate"
|
|
"rollingUpdate":
|
|
"partition": 0
|
|
"maxUnavailable": 1
|
|
"revisionHistoryLimit": 10
|
|
"persistentVolumeClaimRetentionPolicy":
|
|
"whenDeleted": "Retain"
|
|
"whenScaled": "Retain"
|