--- # Source: loki-stack/charts/prometheus/templates/server-deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: labels: component: "server" app: prometheus release: loki chart: prometheus-9.3.1 heritage: Tiller name: loki-prometheus-server spec: selector: matchLabels: component: "server" app: prometheus release: loki replicas: 1 template: metadata: labels: component: "server" app: prometheus release: loki chart: prometheus-9.3.1 heritage: Tiller spec: serviceAccountName: loki-prometheus-server containers: - name: prometheus-server-configmap-reload image: "jimmidyson/configmap-reload:v0.2.2" imagePullPolicy: "IfNotPresent" args: - --volume-dir=/etc/config - --webhook-url=http://127.0.0.1:9090/-/reload resources: {} volumeMounts: - name: config-volume mountPath: /etc/config readOnly: true - name: prometheus-server image: "prom/prometheus:v2.13.1" imagePullPolicy: "IfNotPresent" args: - --storage.tsdb.retention.time=15d - --config.file=/etc/config/prometheus.yml - --storage.tsdb.path=/data - --web.console.libraries=/etc/prometheus/console_libraries - --web.console.templates=/etc/prometheus/consoles - --web.enable-lifecycle ports: - containerPort: 9090 readinessProbe: httpGet: path: /-/ready port: 9090 initialDelaySeconds: 30 timeoutSeconds: 30 livenessProbe: httpGet: path: /-/healthy port: 9090 initialDelaySeconds: 30 timeoutSeconds: 30 resources: {} volumeMounts: - name: config-volume mountPath: /etc/config - name: storage-volume mountPath: /data subPath: "" securityContext: fsGroup: 65534 runAsGroup: 65534 runAsNonRoot: true runAsUser: 65534 terminationGracePeriodSeconds: 300 volumes: - name: config-volume configMap: name: loki-prometheus-server - name: storage-volume persistentVolumeClaim: claimName: loki-prometheus-server