From 11f7b05f279769a04a9e3b80a230ff258ede30fe Mon Sep 17 00:00:00 2001 From: tyknkd <78797823+tyknkd@users.noreply.github.com> Date: Tue, 21 May 2024 12:46:24 +0900 Subject: [PATCH] cd: remove prometheus grafana pods --- .github/workflows/ci-cd.yaml | 10 +- deployment/templates/grafana-configmap.yaml | 893 ------------------ deployment/templates/grafana-statefulset.yaml | 86 -- deployment/templates/ingress.yaml | 20 +- .../templates/prometheus-configmap.yaml | 30 - .../templates/prometheus-statefulset.yaml | 61 -- 6 files changed, 15 insertions(+), 1085 deletions(-) delete mode 100644 deployment/templates/grafana-configmap.yaml delete mode 100644 deployment/templates/grafana-statefulset.yaml delete mode 100644 deployment/templates/prometheus-configmap.yaml delete mode 100644 deployment/templates/prometheus-statefulset.yaml diff --git a/.github/workflows/ci-cd.yaml b/.github/workflows/ci-cd.yaml index abb81d0..9c79675 100644 --- a/.github/workflows/ci-cd.yaml +++ b/.github/workflows/ci-cd.yaml @@ -124,11 +124,11 @@ jobs: --dry-run=client \ -o yaml | kubectl apply -f - - kubectl create secret generic grafana-password-secret \ - --from-literal=grafana-password=${{ secrets.GRAFANA_PASSWORD }} \ - --save-config \ - --dry-run=client \ - -o yaml | kubectl apply -f - +# kubectl create secret generic grafana-password-secret \ +# --from-literal=grafana-password=${{ secrets.GRAFANA_PASSWORD }} \ +# --save-config \ +# --dry-run=client \ +# -o yaml | kubectl apply -f - kubectl create secret generic news-api-key-secret \ --from-literal=news-api-key=${{ secrets.NEWS_API_KEY }} \ diff --git a/deployment/templates/grafana-configmap.yaml b/deployment/templates/grafana-configmap.yaml deleted file mode 100644 index 1268327..0000000 --- a/deployment/templates/grafana-configmap.yaml +++ /dev/null @@ -1,893 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: grafana-datasources-configmap -data: - datasources.yaml: |- - apiVersion: 1 - - datasources: - - name: Prometheus - type: prometheus - access: proxy # proxy (server in the UI) or direct (browser in the UI) - url: http://prometheus:9090 - jsonData: - httpMethod: POST - manageAlerts: true - prometheusType: Prometheus - prometheusVersion: 2.51.2 - cacheLevel: 'High' - disableRecordingRules: false - incrementalQueryOverlapWindow: 10m - timeInterval: 10s ---- -apiVersion: v1 -kind: ConfigMap -metadata: - name: grafana-providers-configmap -data: - providers.yaml: |- - apiVersion: 1 - - providers: - - name: 'news-analyzer' - # Org id. Default to 1 - orgId: 1 - # name of the dashboard folder. - folder: '' - # folder UID. will be automatically generated if not specified - folderUid: '' - # provider type. Default to 'file' - type: file - # disable dashboard deletion - disableDeletion: true - # how often Grafana will scan for changed dashboards - updateIntervalSeconds: 10 - # allow updating provisioned dashboards from the UI - allowUiUpdates: false - options: - # path to dashboard files on disk. Required when using the 'file' type - path: /var/lib/grafana/dashboards - # use folder names from filesystem to create folders in Grafana - foldersFromFilesStructure: true ---- -apiVersion: v1 -kind: ConfigMap -metadata: - name: grafana-dashboard-configmap -data: - dashboard.json: |- - { - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": { - "type": "grafana", - "uid": "-- Grafana --" - }, - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "fiscalYearStartMonth": 0, - "graphTooltip": 0, - "id": 1, - "links": [], - "panels": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 0 - }, - "id": 1, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "disableTextWrap": false, - "editorMode": "builder", - "expr": "system_cpu_usage", - "fullMetaSearch": false, - "includeNullMetadata": true, - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "A", - "useBackend": false - } - ], - "title": "System CPU Usage", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 0 - }, - "id": 3, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "disableTextWrap": false, - "editorMode": "builder", - "expr": "process_cpu_usage", - "fullMetaSearch": false, - "includeNullMetadata": true, - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "A", - "useBackend": false - } - ], - "title": "Process CPU Usage", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 8 - }, - "id": 7, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "disableTextWrap": false, - "editorMode": "builder", - "expr": "jvm_memory_used_bytes", - "fullMetaSearch": false, - "includeNullMetadata": true, - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "A", - "useBackend": false - } - ], - "title": "JVM Memory Used", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 8 - }, - "id": 8, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "disableTextWrap": false, - "editorMode": "builder", - "expr": "jvm_threads_live_threads", - "fullMetaSearch": false, - "includeNullMetadata": true, - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "A", - "useBackend": false - } - ], - "title": "JVM Live Threads", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 16 - }, - "id": 2, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "disableTextWrap": false, - "editorMode": "builder", - "expr": "ktor_http_server_requests_seconds_count", - "fullMetaSearch": false, - "includeNullMetadata": true, - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "Total Requests", - "useBackend": false - } - ], - "title": "Total Requests", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 16 - }, - "id": 6, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "disableTextWrap": false, - "editorMode": "builder", - "expr": "ktor_http_server_requests_seconds_count{status=\"404\"}", - "fullMetaSearch": false, - "includeNullMetadata": true, - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "A", - "useBackend": false - } - ], - "title": "Request 404 Errors", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 24 - }, - "id": 4, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "disableTextWrap": false, - "editorMode": "builder", - "expr": "rabbitmq_global_messages_delivered_total", - "fullMetaSearch": false, - "includeNullMetadata": true, - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "A", - "useBackend": false - } - ], - "title": "Delivered Messages", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 24 - }, - "id": 5, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "disableTextWrap": false, - "editorMode": "builder", - "expr": "rabbitmq_global_messages_unroutable_dropped_total", - "fullMetaSearch": false, - "includeNullMetadata": true, - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "A", - "useBackend": false - } - ], - "title": "Unroutable Dropped Messages", - "type": "timeseries" - } - ], - "refresh": "", - "schemaVersion": 39, - "tags": [], - "templating": { - "list": [] - }, - "time": { - "from": "now-1h", - "to": "now" - }, - "timepicker": {}, - "timezone": "browser", - "title": "News Analyzer Dashboard", - "uid": "cdk5654bbrvnkf", - "version": 1, - "weekStart": "" - } diff --git a/deployment/templates/grafana-statefulset.yaml b/deployment/templates/grafana-statefulset.yaml deleted file mode 100644 index e542890..0000000 --- a/deployment/templates/grafana-statefulset.yaml +++ /dev/null @@ -1,86 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: grafana -spec: - clusterIP: None - ports: - - name: grafana-port - port: 3000 - targetPort: 3000 - selector: - app: grafana - type: ClusterIP ---- -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: grafana-sts -spec: - {{- if not .Values.autoscaling.enabled }} - replicas: {{ .Values.replicaCount }} - {{- end }} - selector: - matchLabels: - app: grafana - serviceName: grafana - template: - metadata: - labels: - app: grafana - spec: - initContainers: - - name: await-prometheus - image: busybox - command: [ "sh", "-c", "until nc -z prometheus:9090; do echo 'waiting for prometheus'; sleep 5; done;" ] - containers: - - name: grafana - image: grafana/grafana-oss:10.4.2 - env: - - name: GF_FEATURE_TOGGLES_ENABLE - value: publicDashboards - - name: GF_SECURITY_ADMIN_PASSWORD__FILE - value: /run/secrets/grafana-password - ports: - - containerPort: 3000 - volumeMounts: - - mountPath: /run/secrets/grafana-password - name: grafana-password - subPath: grafana-password - - mountPath: /etc/grafana/provisioning/datasources/datasources.yaml - name: grafana-datasources - subPath: datasources.yaml - - mountPath: /etc/grafana/provisioning/dashboards/providers.yaml - name: grafana-providers - subPath: providers.yaml - - mountPath: /var/lib/grafana/dashboards/dashboard.json - name: grafana-dashboard - subPath: dashboard.json - - mountPath: /var/lib/grafana - name: grafana-claim - restartPolicy: Always - volumes: - - name: grafana-password - secret: - items: - - key: grafana-password - path: grafana-password - secretName: grafana-password-secret - - name: grafana-datasources - configMap: - name: grafana-datasources-configmap - - name: grafana-providers - configMap: - name: grafana-providers-configmap - - name: grafana-dashboard - configMap: - name: grafana-dashboard-configmap - volumeClaimTemplates: - - metadata: - name: grafana-claim - spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 250Mi diff --git a/deployment/templates/ingress.yaml b/deployment/templates/ingress.yaml index d2a6840..8bb2980 100644 --- a/deployment/templates/ingress.yaml +++ b/deployment/templates/ingress.yaml @@ -16,13 +16,13 @@ spec: name: web-server port: number: 8888 - - host: monitoring.newsanalyzer.io - http: - paths: - - path: / - pathType: Prefix - backend: - service: - name: grafana - port: - number: 3000 \ No newline at end of file +{{/* - host: monitoring.newsanalyzer.io*/}} +{{/* http:*/}} +{{/* paths:*/}} +{{/* - path: /*/}} +{{/* pathType: Prefix*/}} +{{/* backend:*/}} +{{/* service:*/}} +{{/* name: grafana*/}} +{{/* port:*/}} +{{/* number: 3000*/}} \ No newline at end of file diff --git a/deployment/templates/prometheus-configmap.yaml b/deployment/templates/prometheus-configmap.yaml deleted file mode 100644 index a02eb53..0000000 --- a/deployment/templates/prometheus-configmap.yaml +++ /dev/null @@ -1,30 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: prometheus-configmap -data: - prometheus.yml: |- - global: - scrape_interval: 10s - - scrape_configs: - - job_name: 'web-server' - metrics_path: /metrics - scrape_interval: 10s - static_configs: - - targets: [ 'web-server:8888' ] - - job_name: 'data-analyzer' - metrics_path: /metrics - scrape_interval: 10s - static_configs: - - targets: [ 'data-analyzer:8887' ] - - job_name: 'data-collector' - metrics_path: /metrics - scrape_interval: 10s - static_configs: - - targets: [ 'data-collector:8886' ] - - job_name: 'rabbitmq' - metrics_path: /metrics - scrape_interval: 10s - static_configs: - - targets: [ 'mq:15692' ] diff --git a/deployment/templates/prometheus-statefulset.yaml b/deployment/templates/prometheus-statefulset.yaml deleted file mode 100644 index ac2df95..0000000 --- a/deployment/templates/prometheus-statefulset.yaml +++ /dev/null @@ -1,61 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: prometheus -spec: - clusterIP: None - ports: - - name: prometheus-port - port: 9090 - targetPort: 9090 - selector: - app: prometheus - type: ClusterIP ---- -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: prometheus-sts -spec: - {{- if not .Values.autoscaling.enabled }} - replicas: {{ .Values.replicaCount }} - {{- end }} - selector: - matchLabels: - app: prometheus - serviceName: prometheus - template: - metadata: - labels: - app: prometheus - spec: - containers: - - name: prometheus - image: prom/prometheus:v2.51.2 - args: - - "--storage.tsdb.path=/data" - - "--storage.tsdb.retention.time=30d" - - "--config.file=/etc/prometheus/prometheus.yml" - ports: - - containerPort: 9090 - volumeMounts: - - mountPath: /etc/prometheus/prometheus.yml - name: prometheus-config - subPath: prometheus.yml - - mountPath: /prometheus - subPath: data - name: prometheus-claim - restartPolicy: Always - volumes: - - name: prometheus-config - configMap: - name: prometheus-configmap - volumeClaimTemplates: - - metadata: - name: prometheus-claim - spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 250Mi