File tree Expand file tree Collapse file tree 5 files changed +55
-0
lines changed
apps/monitoring/victoriametrics/components/pvc
clusters/rs.soeren.cloud/monitoring Expand file tree Collapse file tree 5 files changed +55
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ apiVersion : kustomize.config.k8s.io/v1alpha1
3
+ kind : Component
4
+ resources :
5
+ - pvc.yaml
6
+ patches :
7
+ - target :
8
+ kind : " Deployment"
9
+ name : " victoriametrics"
10
+ patch : |-
11
+ - op: replace
12
+ path: /spec/template/spec/volumes/0
13
+ value:
14
+ name: storage
15
+ persistentVolumeClaim:
16
+ claimName: victoriametrics
Original file line number Diff line number Diff line change
1
+ ---
2
+ kind : PersistentVolumeClaim
3
+ apiVersion : v1
4
+ metadata :
5
+ name : " victoriametrics"
6
+ spec :
7
+ accessModes :
8
+ - " ReadWriteOnce"
9
+ resources :
10
+ requests :
11
+ storage : " 50Gi"
Original file line number Diff line number Diff line change @@ -4,3 +4,4 @@ kind: Kustomization
4
4
resources :
5
5
- namespace.yaml
6
6
- victoriametrics
7
+ - victoriametrics-pv.yaml
Original file line number Diff line number Diff line change
1
+ ---
2
+ apiVersion : " v1"
3
+ kind : " PersistentVolume"
4
+ metadata :
5
+ name : " victoriametrics"
6
+ spec :
7
+ accessModes :
8
+ - " ReadWriteOnce"
9
+ capacity :
10
+ storage : " 50Gi"
11
+ storageClassName : " local-storage"
12
+ local :
13
+ path : " /mnt/k8s/victoriametrics"
14
+ claimRef :
15
+ namespace : " monitoring"
16
+ name : " victoriametrics"
17
+ nodeAffinity :
18
+ required :
19
+ nodeSelectorTerms :
20
+ - matchExpressions :
21
+ - key : " kubernetes.io/hostname"
22
+ operator : " In"
23
+ values :
24
+ - " rs.soeren.cloud"
Original file line number Diff line number Diff line change @@ -5,3 +5,6 @@ namespace: monitoring
5
5
resources :
6
6
- ../../../../apps/monitoring/victoriametrics
7
7
- virtualservice.yaml
8
+ components :
9
+ - ../../../../apps/monitoring/victoriametrics/components/istio
10
+ - ../../../../apps/monitoring/victoriametrics/components/pvc
You can’t perform that action at this time.
0 commit comments