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

103 lines
2.8 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:
component: "server"
app: prometheus
release: prometheus
2022-12-20 08:02:41 +00:00
chart: prometheus-19.0.2
2022-05-11 01:10:22 +00:00
heritage: Helm
name: prometheus-server
namespace: default
spec:
selector:
matchLabels:
component: "server"
app: prometheus
release: prometheus
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:
component: "server"
app: prometheus
release: prometheus
2022-12-20 08:02:41 +00:00
chart: prometheus-19.0.2
2022-05-11 01:10:22 +00:00
heritage: Helm
spec:
enableServiceLinks: true
serviceAccountName: prometheus-server
containers:
- name: prometheus-server-configmap-reload
2022-12-20 08:02:41 +00:00
image: "jimmidyson/configmap-reload:v0.8.0"
2022-05-11 01:10:22 +00:00
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
2022-12-20 08:02:41 +00:00
image: "quay.io/prometheus/prometheus:v2.40.5"
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