mirror of
https://github.com/wahyd4/home-docker.git
synced 2026-08-09 04:15:52 +10:00
update prometheus which caused me lost whole prometheus 😟
This commit is contained in:
@@ -10,7 +10,7 @@ kubectl -n kube-system apply -f https://raw.githubusercontent.com/coreos/flannel
|
||||
|
||||
k apply -f prometheus-pv.yml -n default
|
||||
|
||||
helm upgrade --install prometheus -n default -f prometheus-values.yaml stable/prometheus-operator
|
||||
helm upgrade --install prometheus -n default -f prometheus-values.yaml prometheus-community/kube-prometheus-stack
|
||||
|
||||
k create namespace nginx-ingress
|
||||
|
||||
|
||||
+1
-1
@@ -382,7 +382,7 @@ clusterAgent:
|
||||
# clusterAgent.replicas -- Specify the of cluster agent replicas, if > 1 it allow the cluster agent to work in HA mode.
|
||||
replicas: 1
|
||||
|
||||
## Provide Cluster Agent Deployment pod(s) RBAC configuration
|
||||
## Provide Cluster Agent Deployment pod(s) media configuration
|
||||
rbac:
|
||||
# clusterAgent.rbac.create -- If true, create & use RBAC resources
|
||||
create: true
|
||||
|
||||
+5
-59
@@ -1,61 +1,4 @@
|
||||
kind: StorageClass
|
||||
apiVersion: storage.k8s.io/v1
|
||||
metadata:
|
||||
name: manual
|
||||
provisioner: kubernetes.io/no-provisioner
|
||||
volumeBindingMode: WaitForFirstConsumer
|
||||
|
||||
---
|
||||
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: grafana-pv
|
||||
labels:
|
||||
type: local
|
||||
spec:
|
||||
storageClassName: manual
|
||||
persistentVolumeReclaimPolicy: Recycle
|
||||
capacity:
|
||||
storage: 10Gi
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
hostPath:
|
||||
path: "/mnt/grafana-data"
|
||||
|
||||
---
|
||||
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: grafana-pvc
|
||||
spec:
|
||||
storageClassName: manual
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 10Gi
|
||||
|
||||
---
|
||||
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: prometheus-pv
|
||||
labels:
|
||||
type: local
|
||||
spec:
|
||||
storageClassName: manual
|
||||
persistentVolumeReclaimPolicy: Recycle
|
||||
capacity:
|
||||
storage: 50Gi
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
hostPath:
|
||||
path: "/mnt/prometheus-data"
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
@@ -89,11 +32,14 @@ apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: prometheus-nfs
|
||||
labels:
|
||||
nfs: "true"
|
||||
spec:
|
||||
storageClassName: "nfs"
|
||||
capacity:
|
||||
storage: 100Gi
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
- ReadWriteOnce
|
||||
nfs:
|
||||
server: 192.168.1.4
|
||||
path: "/prometheus-data"
|
||||
path: "/prometheus"
|
||||
|
||||
+9
-10
@@ -1,8 +1,6 @@
|
||||
prometheusOperator:
|
||||
tls:
|
||||
enabled: false
|
||||
nodeSelector:
|
||||
ip: 192.168.1.2
|
||||
securityContext:
|
||||
runAsGroup: 1000
|
||||
fsGroup: 1000
|
||||
@@ -15,22 +13,25 @@ prometheusOperator:
|
||||
# cpu: 1300m
|
||||
# memory: 1500Mi
|
||||
prometheus:
|
||||
server:
|
||||
extraFlags:
|
||||
- storage.local.dirty
|
||||
- web.enable-lifecycle
|
||||
serviceMonitorNamespaceSelector:
|
||||
matchLabels:
|
||||
release: prometheus
|
||||
prometheusSpec:
|
||||
nodeSelector:
|
||||
ip: 192.168.1.2
|
||||
retentionSize: 100GiB
|
||||
retention: 1y
|
||||
image:
|
||||
tag: v2.19.2
|
||||
retention: 2y
|
||||
serviceMonitorSelectorNilUsesHelmValues: false
|
||||
storageSpec:
|
||||
volumeClaimTemplate:
|
||||
spec:
|
||||
storageClassName: manual
|
||||
selector:
|
||||
matchLabels:
|
||||
nfs: "true"
|
||||
accessModes: ["ReadWriteOnce"]
|
||||
storageClassName: "nfs"
|
||||
resources:
|
||||
requests:
|
||||
storage: 100Gi
|
||||
@@ -52,8 +53,6 @@ prometheus:
|
||||
matchLabels:
|
||||
release: prometheus
|
||||
grafana:
|
||||
image:
|
||||
tag: 7.0.1
|
||||
persistence:
|
||||
enabled: true
|
||||
storageClassName: manual
|
||||
|
||||
Reference in New Issue
Block a user