netflux-kubernetes/deploy/base/inflated/prometheus/templates/deploy.yaml

107 lines
3.2 KiB
YAML
Raw Normal View History

2022-05-11 01:10:22 +00:00
---
2022-12-20 08:02:41 +00:00
# Source: prometheus/templates/deploy.yaml
2022-05-11 01:10:22 +00:00
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
2023-07-16 06:22:33 +00:00
app.kubernetes.io/component: server
app.kubernetes.io/name: prometheus
app.kubernetes.io/instance: prometheus
app.kubernetes.io/version: v2.45.0
helm.sh/chart: prometheus-23.1.0
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/part-of: prometheus
2022-05-11 01:10:22 +00:00
name: prometheus-server
namespace: default
spec:
selector:
matchLabels:
2023-07-16 06:22:33 +00:00
app.kubernetes.io/component: server
app.kubernetes.io/name: prometheus
app.kubernetes.io/instance: prometheus
2022-05-11 01:10:22 +00:00
replicas: 1
2022-12-20 08:02:41 +00:00
strategy:
type: Recreate
rollingUpdate: null
2022-05-11 01:10:22 +00:00
template:
metadata:
labels:
2023-07-16 06:22:33 +00:00
app.kubernetes.io/component: server
app.kubernetes.io/name: prometheus
app.kubernetes.io/instance: prometheus
app.kubernetes.io/version: v2.45.0
helm.sh/chart: prometheus-23.1.0
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/part-of: prometheus
2022-05-11 01:10:22 +00:00
spec:
enableServiceLinks: true
serviceAccountName: prometheus-server
containers:
- name: prometheus-server-configmap-reload
2023-07-16 06:22:33 +00:00
image: "quay.io/prometheus-operator/prometheus-config-reloader:v0.66.0"
2022-05-11 01:10:22 +00:00
imagePullPolicy: "IfNotPresent"
args:
2023-07-16 06:22:33 +00:00
- --watched-dir=/etc/config
- --reload-url=http://127.0.0.1:9090/-/reload
2022-05-11 01:10:22 +00:00
resources:
{}
volumeMounts:
- name: config-volume
mountPath: /etc/config
readOnly: true
- name: prometheus-server
2023-07-16 06:22:33 +00:00
image: "quay.io/prometheus/prometheus:v2.45.0"
2022-05-11 01:10:22 +00:00
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
scheme: HTTP
initialDelaySeconds: 30
periodSeconds: 5
timeoutSeconds: 4
failureThreshold: 3
successThreshold: 1
livenessProbe:
httpGet:
path: /-/healthy
port: 9090
scheme: HTTP
initialDelaySeconds: 30
periodSeconds: 15
timeoutSeconds: 10
failureThreshold: 3
successThreshold: 1
resources:
{}
volumeMounts:
- name: config-volume
mountPath: /etc/config
- name: storage-volume
mountPath: /data
subPath: ""
dnsPolicy: ClusterFirst
securityContext:
fsGroup: 65534
runAsGroup: 65534
runAsNonRoot: true
runAsUser: 65534
terminationGracePeriodSeconds: 300
volumes:
- name: config-volume
configMap:
name: prometheus-server
- name: storage-volume
persistentVolumeClaim:
claimName: prometheus-server