enable prometheus ports, configure prometheus server
This commit is contained in:
parent
f7556d0e12
commit
242b70eb21
8 changed files with 272 additions and 158 deletions
40
manifests/prometheus/deployment.yaml
Normal file
40
manifests/prometheus/deployment.yaml
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: prometheus
|
||||
namespace: darkdork-dev
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: prometheus
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: prometheus
|
||||
spec:
|
||||
imagePullSecrets:
|
||||
- name: registry-credentials
|
||||
containers:
|
||||
- name: prometheus
|
||||
image: prom/prometheus
|
||||
imagePullPolicy: IfNotPresent
|
||||
ports:
|
||||
- containerPort: 9090
|
||||
volumeMounts:
|
||||
- name: prometheus-data
|
||||
mountPath: /prometheus
|
||||
- name: prometheus-config
|
||||
mountPath: /etc/prometheus/prometheus.yaml
|
||||
subPath: prometheus.yaml
|
||||
volumes:
|
||||
- name: prometheus-data
|
||||
persistentVolumeClaim:
|
||||
claimName: prometheus-pvc
|
||||
- name: prometheus-config
|
||||
configMap:
|
||||
name: prometheus-config
|
||||
securityContext:
|
||||
fsGroup: 1000
|
||||
---
|
||||
Loading…
Add table
Add a link
Reference in a new issue