feat(openebs): add openebs, use openebs hostpath provisioner for woodpecker

This commit is contained in:
SeanOMik 2024-02-10 12:35:15 -05:00
parent 396bc860a7
commit 41f85c2583
Signed by: SeanOMik
GPG Key ID: FEC9E2FC15235964
6 changed files with 46 additions and 2 deletions

View File

@ -26,9 +26,9 @@ spec:
WOODPECKER_BACKEND: kubernetes WOODPECKER_BACKEND: kubernetes
WOODPECKER_SERVER: woodpecker-server.dev.svc.cluster.local:9000 WOODPECKER_SERVER: woodpecker-server.dev.svc.cluster.local:9000
WOODPECKER_BACKEND_K8S_NAMESPACE: dev WOODPECKER_BACKEND_K8S_NAMESPACE: dev
WOODPECKER_BACKEND_K8S_STORAGE_CLASS: longhorn WOODPECKER_BACKEND_K8S_STORAGE_CLASS: openebs-hostpath
WOODPECKER_BACKEND_K8S_VOLUME_SIZE: 5G WOODPECKER_BACKEND_K8S_VOLUME_SIZE: 5G
WOODPECKER_BACKEND_K8S_STORAGE_RWX: true WOODPECKER_BACKEND_K8S_STORAGE_RWX: false
WOODPECKER_BACKEND_K8S_POD_LABELS: "" WOODPECKER_BACKEND_K8S_POD_LABELS: ""
WOODPECKER_BACKEND_K8S_POD_ANNOTATIONS: "" WOODPECKER_BACKEND_K8S_POD_ANNOTATIONS: ""
WOODPECKER_CONNECT_RETRY_COUNT: "1" WOODPECKER_CONNECT_RETRY_COUNT: "1"

View File

@ -2,4 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
resources: resources:
- ./longhorn - ./longhorn
- ./openebs
#- ./local-path-provisioner #- ./local-path-provisioner

View File

@ -0,0 +1,23 @@
apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
metadata:
name: openebs
namespace: openebs
spec:
interval: 5m
chart:
spec:
chart: openebs
version: 3.10.0
sourceRef:
kind: HelmRepository
name: openebs-charts
namespace: flux-system
values:
ndm:
enabled: false
localprovisioner:
deviceClass:
enabled: false

View File

@ -0,0 +1,8 @@
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: openebs-charts
namespace: flux-system
spec:
interval: 1m
url: https://openebs.github.io/charts

View File

@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./namespace.yaml
- ./helm-repository.yaml
- ./helm-release.yaml

View File

@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
name: openebs
labels:
name: openebs