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:
|
||||
- /etc/config/recording_rules.yml
|
||||
- /etc/config/alerting_rules.yml
|
||||
- /etc/config/rules
|
||||
- /etc/config/alerts
|
||||
- /etc/config/rules/*.yaml
|
||||
- /etc/config/alerts/*.yaml
|
||||
scrape_configs:
|
||||
- job_name: prometheus
|
||||
static_configs:
|
||||
|
|
|
|||
|
|
@ -212,7 +212,9 @@ spec:
|
|||
- name: config-volume
|
||||
mountPath: /etc/config
|
||||
readOnly: true
|
||||
|
||||
- name: config-volume2
|
||||
mountPath: /etc/config/alerts
|
||||
readOnly: true
|
||||
- name: prometheus-server
|
||||
image: "quay.io/prometheus/prometheus:v2.54.1"
|
||||
imagePullPolicy: "IfNotPresent"
|
||||
|
|
@ -248,6 +250,8 @@ spec:
|
|||
volumeMounts:
|
||||
- name: config-volume
|
||||
mountPath: /etc/config
|
||||
- name: config-volume2
|
||||
mountPath: /etc/config/alerts
|
||||
- name: storage-volume
|
||||
mountPath: /data
|
||||
subPath: ""
|
||||
|
|
@ -262,6 +266,10 @@ spec:
|
|||
- name: config-volume
|
||||
configMap:
|
||||
name: prometheus-server
|
||||
- configMap:
|
||||
defaultMode: 420
|
||||
name: prometheus-rulefiles
|
||||
name: config-volume2
|
||||
- name: storage-volume
|
||||
persistentVolumeClaim:
|
||||
claimName: prometheus-server
|
||||
|
|
@ -18,8 +18,8 @@ spec:
|
|||
paths:
|
||||
- backend:
|
||||
service:
|
||||
name: prometheus-prometheus-server
|
||||
name: prometheus-server
|
||||
port:
|
||||
number: 80
|
||||
path: /
|
||||
pathType: Prefix
|
||||
pathType: Prefix
|
||||
|
|
|
|||
Loading…
Reference in New Issue