k8s.io/perf-tests/clusterloader2@v0.0.0-20240304094227-64bdb12da87e/pkg/prometheus/manifests/grafana-deployment.yaml (about) 1 apiVersion: apps/v1 2 kind: Deployment 3 metadata: 4 labels: 5 app: grafana 6 name: grafana 7 namespace: monitoring 8 spec: 9 replicas: 1 10 selector: 11 matchLabels: 12 app: grafana 13 template: 14 metadata: 15 labels: 16 app: grafana 17 spec: 18 containers: 19 - image: gcr.io/k8s-testimages/grafana/grafana:6.2.0 20 name: grafana 21 ports: 22 - containerPort: 3000 23 name: http 24 readinessProbe: 25 httpGet: 26 path: /api/health 27 port: http 28 resources: 29 requests: 30 cpu: 250m 31 memory: 250Mi 32 volumeMounts: 33 - mountPath: /var/lib/grafana 34 name: grafana-storage 35 readOnly: false 36 - mountPath: /etc/grafana/provisioning/datasources 37 name: grafana-datasources 38 readOnly: false 39 - mountPath: /etc/grafana/provisioning/dashboards 40 name: grafana-dashboards 41 readOnly: false 42 - mountPath: /grafana-dashboard-definitions/0/grafana-dashboard-network 43 name: grafana-dashboard-network 44 readOnly: false 45 - mountPath: /grafana-dashboard-definitions/0/grafana-dashboard-dns 46 name: grafana-dashboard-dns 47 readOnly: false 48 - mountPath: /grafana-dashboard-definitions/0/grafana-dashboard-master-dashboard 49 name: grafana-dashboard-master-dashboard 50 readOnly: false 51 - mountPath: /grafana-dashboard-definitions/0/grafana-dashboard-slo 52 name: grafana-dashboard-slo 53 readOnly: false 54 env: 55 - name: GF_AUTH_ANONYMOUS_ENABLED 56 value: "true" 57 - name: GF_AUTH_ANONYMOUS_ORG_ROLE 58 value: "Admin" 59 nodeSelector: 60 kubernetes.io/os: linux 61 securityContext: 62 runAsNonRoot: true 63 runAsUser: 65534 64 serviceAccountName: grafana 65 priorityClassName: prometheus-priorityclass 66 volumes: 67 - emptyDir: {} 68 name: grafana-storage 69 - name: grafana-datasources 70 secret: 71 secretName: grafana-datasources 72 - configMap: 73 name: grafana-dashboards 74 name: grafana-dashboards 75 - configMap: 76 name: grafana-dashboard-network 77 name: grafana-dashboard-network 78 - configMap: 79 name: grafana-dashboard-dns 80 name: grafana-dashboard-dns 81 - configMap: 82 name: grafana-dashboard-master-dashboard 83 name: grafana-dashboard-master-dashboard 84 - configMap: 85 name: grafana-dashboard-slo 86 name: grafana-dashboard-slo