longhorn is now kustomized

This commit is contained in:
James Andariese 2023-12-24 21:25:39 -06:00
parent 8e1a70a15a
commit 9bfa8e26cb
4 changed files with 37 additions and 29 deletions

View File

@ -1,3 +1 @@
helm repo add longhorn https://charts.longhorn.io && helm repo update
helm upgrade -i --create-namespace -n longhorn-system longhorn longhorn/longhorn -f values.yaml
kustomize build --enable-helm | kubectl apply -f -

View File

@ -1 +1 @@
helm diff upgrade -n longhorn-system longhorn longhorn/longhorn -f values.yaml
kustomize build --enable-helm | kubectl diff -f -

View File

@ -0,0 +1,35 @@
kind: Kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
helmCharts:
- name: longhorn
repo: https://charts.longhorn.io
namespace: longhorn-system
version: 1.5.3
releaseName: longhorn
includeCRDs: true
valuesInline:
defaultSettings:
taintToleration: role=storage:NoExecute
longhornDriver:
tolerations:
- effect: NoExecute
key: role
operator: Equal
value: storage
longhornManager:
tolerations:
- effect: NoExecute
key: role
operator: Equal
value: storage
longhornUI:
tolerations:
- effect: NoExecute
key: role
operator: Equal
value: storage
persistence:
defaultClass: false
defaultClassReplicaCount: "1"
defaultNodeSelector:
selector: role:storage

View File

@ -1,25 +0,0 @@
defaultSettings:
taintToleration: role=storage:NoExecute
longhornDriver:
tolerations:
- effect: NoExecute
key: role
operator: Equal
value: storage
longhornManager:
tolerations:
- effect: NoExecute
key: role
operator: Equal
value: storage
longhornUI:
tolerations:
- effect: NoExecute
key: role
operator: Equal
value: storage
persistence:
defaultClass: false
defaultClassReplicaCount: "1"
defaultNodeSelector:
selector: role:storage