This commit is contained in:
parent
9faedad396
commit
bac2466df4
|
|
@ -0,0 +1,13 @@
|
||||||
|
apiVersion: storage.k8s.io/v1
|
||||||
|
kind: StorageClass
|
||||||
|
metadata:
|
||||||
|
name: hm-nas
|
||||||
|
annotations:
|
||||||
|
storageclass.kubernetes.io/is-default-class: "true"
|
||||||
|
labels:
|
||||||
|
name: provision
|
||||||
|
provisioner: k8s-sigs.io/nfs-subdir-external-provisioner
|
||||||
|
parameters:
|
||||||
|
pathPattern: "${.PVC.namespace}/${.PVC.annotations.nfs.io/storage-path}" # waits for nfs.io/storage-path annotation, if not specified will accept as empty string.
|
||||||
|
onDelete: delete
|
||||||
|
archiveOnDelete: "false"
|
||||||
|
|
@ -26,8 +26,8 @@ data:
|
||||||
rule_files:
|
rule_files:
|
||||||
- /etc/config/recording_rules.yml
|
- /etc/config/recording_rules.yml
|
||||||
- /etc/config/alerting_rules.yml
|
- /etc/config/alerting_rules.yml
|
||||||
- /etc/config/rules
|
- /etc/config/rules/*.yaml
|
||||||
- /etc/config/alerts
|
- /etc/config/alerts/*.yaml
|
||||||
scrape_configs:
|
scrape_configs:
|
||||||
- job_name: prometheus
|
- job_name: prometheus
|
||||||
static_configs:
|
static_configs:
|
||||||
|
|
|
||||||
|
|
@ -212,7 +212,9 @@ spec:
|
||||||
- name: config-volume
|
- name: config-volume
|
||||||
mountPath: /etc/config
|
mountPath: /etc/config
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
- name: config-volume2
|
||||||
|
mountPath: /etc/config/alerts
|
||||||
|
readOnly: true
|
||||||
- name: prometheus-server
|
- name: prometheus-server
|
||||||
image: "quay.io/prometheus/prometheus:v2.54.1"
|
image: "quay.io/prometheus/prometheus:v2.54.1"
|
||||||
imagePullPolicy: "IfNotPresent"
|
imagePullPolicy: "IfNotPresent"
|
||||||
|
|
@ -248,6 +250,8 @@ spec:
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: config-volume
|
- name: config-volume
|
||||||
mountPath: /etc/config
|
mountPath: /etc/config
|
||||||
|
- name: config-volume2
|
||||||
|
mountPath: /etc/config/alerts
|
||||||
- name: storage-volume
|
- name: storage-volume
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
subPath: ""
|
subPath: ""
|
||||||
|
|
@ -262,6 +266,10 @@ spec:
|
||||||
- name: config-volume
|
- name: config-volume
|
||||||
configMap:
|
configMap:
|
||||||
name: prometheus-server
|
name: prometheus-server
|
||||||
|
- configMap:
|
||||||
|
defaultMode: 420
|
||||||
|
name: prometheus-rulefiles
|
||||||
|
name: config-volume2
|
||||||
- name: storage-volume
|
- name: storage-volume
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: prometheus-server
|
claimName: prometheus-server
|
||||||
|
|
@ -18,8 +18,8 @@ spec:
|
||||||
paths:
|
paths:
|
||||||
- backend:
|
- backend:
|
||||||
service:
|
service:
|
||||||
name: prometheus-prometheus-server
|
name: prometheus-server
|
||||||
port:
|
port:
|
||||||
number: 80
|
number: 80
|
||||||
path: /
|
path: /
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue