Skip to content

Commit

Permalink
feat: deploy democratic-csi local-hostpath
Browse files Browse the repository at this point in the history
Signed-off-by: Devin Buhl <[email protected]>
  • Loading branch information
onedr0p committed Dec 14, 2023
1 parent b402701 commit 6e6f655
Show file tree
Hide file tree
Showing 6 changed files with 116 additions and 0 deletions.
21 changes: 21 additions & 0 deletions kubernetes/main/apps/kube-system/democratic-csi/ks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
# yaml-language-server: $schema=https://kubernetes-schemas.devbu.io/kustomize.toolkit.fluxcd.io/kustomization_v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: &app democratic-csi-local-hostpath
namespace: flux-system
spec:
targetNamespace: kube-system
commonMetadata:
labels:
app.kubernetes.io/name: *app
path: ./kubernetes/main/apps/kube-system/democratic-csi/local-hostpath
prune: true
sourceRef:
kind: GitRepository
name: home-kubernetes
wait: false
interval: 30m
retryInterval: 1m
timeout: 5m
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
---
# yaml-language-server: $schema=https://kubernetes-schemas.devbu.io/helm.toolkit.fluxcd.io/helmrelease_v2beta2.json
apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
metadata:
name: democratic-csi-local-hostpath
spec:
interval: 30m
chart:
spec:
chart: democratic-csi
version: 0.14.2
sourceRef:
name: democratic-csi
kind: HelmRepository
namespace: flux-system
maxHistory: 2
install:
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
retries: 3
uninstall:
keepHistory: false
values:
controller:
strategy: node
externalProvisioner:
image: registry.k8s.io/sig-storage/csi-provisioner:v3.6.2
extraArgs:
- --leader-election=false
- --node-deployment=true
- --node-deployment-immediate-binding=false
- --feature-gates=Topology=true
- --strict-topology=true
- --enable-capacity=true
- --capacity-ownerref-level=1
externalResizer:
enabled: false
externalAttacher:
enabled: false
externalSnapshotter:
enabled: false
csiDriver:
name: local-hostpath.democratic-csi.home.arpa
storageCapacity: true
attachRequired: false
fsGroupPolicy: File
storageClasses:
- name: democratic-csi-local-hostpath
defaultClass: false
reclaimPolicy: Retain
volumeBindingMode: WaitForFirstConsumer
allowVolumeExpansion: false
node:
driver:
image: ghcr.io/democratic-csi/democratic-csi:v1.8.4
extraVolumeMounts:
- name: local-hostpath
mountPath: /var/lib/democratic-csi-local-hostpath
mountPropagation: Bidirectional
extraVolumes:
- name: local-hostpath
hostPath:
path: /var/lib/democratic-csi-local-hostpath
type: DirectoryOrCreate
driver:
config:
driver: local-hostpath
local-hostpath:
shareBasePath: /var/lib/democratic-csi-local-hostpath
controllerBasePath: /var/lib/democratic-csi-local-hostpath
dirPermissionsMode: "0770"
dirPermissionsUser: 0
dirPermissionsGroup: 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./helmrelease.yaml
1 change: 1 addition & 0 deletions kubernetes/main/apps/kube-system/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ resources:
# Flux-Kustomizations
- ./cilium/ks.yaml
- ./coredns/ks.yaml
- ./democratic-csi/ks.yaml
- ./descheduler/ks.yaml
- ./external-secrets/ks.yaml
- ./intel-device-plugin/ks.yaml
Expand Down
10 changes: 10 additions & 0 deletions kubernetes/main/flux/repositories/helm/democratic-csi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
# yaml-language-server: $schema=https://kubernetes-schemas.devbu.io/source.toolkit.fluxcd.io/helmrepository_v1beta2.json
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: democratic-csi
namespace: flux-system
spec:
interval: 2h
url: https://democratic-csi.github.io/charts/
1 change: 1 addition & 0 deletions kubernetes/main/flux/repositories/helm/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ resources:
- ./coredns.yaml
# - ./crossplane.yaml
# - ./csi-driver-nfs.yaml
- ./democratic-csi.yaml
- ./descheduler.yaml
# - ./emqx.yaml
# - ./enix.yaml
Expand Down

0 comments on commit 6e6f655

Please sign in to comment.