feat: create a openebs hostpath storage class with its base path on the zfs pool
This commit is contained in:
parent
dcea64de1c
commit
d002d884da
|
@ -29,7 +29,7 @@ spec:
|
|||
|
||||
persistence:
|
||||
enabled: true
|
||||
storageClass: openebs-hostpath
|
||||
storageClass: mainpool-hostpath
|
||||
size: 8Gi
|
||||
|
||||
replica:
|
||||
|
@ -43,5 +43,5 @@ spec:
|
|||
|
||||
persistence:
|
||||
enabled: true
|
||||
storageClass: openebs-hostpath
|
||||
storageClass: mainpool-hostpath
|
||||
size: 8Gi
|
|
@ -13,7 +13,7 @@ spec:
|
|||
- metadata:
|
||||
name: runner-work
|
||||
spec:
|
||||
storageClassName: openebs-hostpath
|
||||
storageClassName: mainpool-hostpath
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
|
|
|
@ -29,7 +29,7 @@ spec:
|
|||
WOODPECKER_BACKEND: kubernetes
|
||||
WOODPECKER_SERVER: woodpecker-server.dev.svc.cluster.local:9000
|
||||
WOODPECKER_BACKEND_K8S_NAMESPACE: dev
|
||||
WOODPECKER_BACKEND_K8S_STORAGE_CLASS: openebs-hostpath
|
||||
WOODPECKER_BACKEND_K8S_STORAGE_CLASS: mainpool-hostpath
|
||||
WOODPECKER_BACKEND_K8S_VOLUME_SIZE: 5G
|
||||
WOODPECKER_BACKEND_K8S_STORAGE_RWX: false
|
||||
WOODPECKER_BACKEND_K8S_POD_LABELS: ""
|
||||
|
@ -53,7 +53,7 @@ spec:
|
|||
enabled: true
|
||||
size: 10Gi
|
||||
mountPath: '/var/lib/woodpecker'
|
||||
storageClass: openebs-hostpath
|
||||
storageClass: mainpool-hostpath
|
||||
|
||||
prometheus:
|
||||
podmonitor:
|
||||
|
|
|
@ -63,7 +63,7 @@ spec:
|
|||
metadata:
|
||||
type: persistentVolumeClaim
|
||||
size: 12Gi
|
||||
storageClass: openebs-hostpath
|
||||
storageClass: mainpool-hostpath
|
||||
accessMode: ReadWriteOnce
|
||||
globalMounts:
|
||||
- path: /metadata
|
||||
|
|
|
@ -68,7 +68,7 @@ spec:
|
|||
storageSpec:
|
||||
volumeClaimTemplate:
|
||||
spec:
|
||||
storageClassName: openebs-hostpath
|
||||
storageClassName: mainpool-hostpath
|
||||
resources:
|
||||
requests:
|
||||
storage: 40Gi
|
||||
|
|
|
@ -4,4 +4,5 @@ resources:
|
|||
- ./namespace.yaml
|
||||
- ./helm-repository.yaml
|
||||
- ./helm-release.yaml
|
||||
- ./mainpool-sc.yaml
|
||||
- ./monitoring-helm-release.yaml
|
|
@ -0,0 +1,14 @@
|
|||
apiVersion: storage.k8s.io/v1
|
||||
kind: StorageClass
|
||||
metadata:
|
||||
name: mainpool-hostpath
|
||||
annotations:
|
||||
openebs.io/cas-type: local
|
||||
cas.openebs.io/config: |
|
||||
- name: StorageType
|
||||
value: hostpath
|
||||
- name: BasePath
|
||||
value: /mnt/MainPool/Kubernetes/openebs-hostpath
|
||||
provisioner: openebs.io/local
|
||||
reclaimPolicy: Retain
|
||||
volumeBindingMode: WaitForFirstConsumer
|
Loading…
Reference in New Issue