File tree 6 files changed +124
-1
lines changed
6 files changed +124
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ apiVersion : networking.k8s.io/v1beta1
3
+ kind : Ingress
4
+ metadata :
5
+ name : longhorn-ingress
6
+ namespace : longhorn-system
7
+ annotations :
8
+ cert-manager.io/cluster-issuer : " ingress"
9
+ kubernetes.io/ingress.class : nginx
10
+ spec :
11
+ rules :
12
+ - host : longhorn.vejlupek.org
13
+ http :
14
+ paths :
15
+ - backend :
16
+ serviceName : longhorn-frontend
17
+ servicePort : 80
18
+ path : /
19
+ tls :
20
+ - hosts :
21
+ - longhorn.vejlupek.org
22
+ secretName : tls-secret-le-longhorn
Original file line number Diff line number Diff line change
1
+ apiVersion : kustomize.config.k8s.io/v1beta1
2
+ kind : Kustomization
3
+ resources :
4
+ - https://raw.githubusercontent.com/longhorn/longhorn/master/deploy/longhorn.yaml
5
+ - ingress.yaml
6
+ namespace : longhorn
7
+ images :
8
+ - name : longhornio/longhorn-manager
9
+ newName : vsellier/longhorn-manager
10
+ newTag : v1.0.1
11
+ - name : longhornio/longhorn-ui
12
+ newName : vsellier/longhorn-ui
13
+ newTag : v1.0.1
14
+ patches :
15
+ - path : patch_csi.yaml
16
+ target :
17
+ group : apps
18
+ version : v1
19
+ kind : Deployment
20
+ name : longhorn-driver-deployer
21
+ - path : patch_daemonset.yaml
22
+ target :
23
+ group : apps
24
+ version : v1
25
+ kind : DaemonSet
26
+ name : longhorn-manager
27
+ - path : patch-default-settings-configmap.yaml
28
+ target :
29
+ version : v1
30
+ kind : ConfigMap
31
+ name : longhorn-default-setting
Original file line number Diff line number Diff line change
1
+ ---
2
+ - op : replace
3
+ path : /data/default-setting.yaml
4
+ value : |-
5
+ backup-target:
6
+ backup-target-credential-secret:
7
+ create-default-disk-labeled-nodes: true
8
+ default-data-path: /media/disk0
9
+ replica-soft-anti-affinity:
10
+ storage-over-provisioning-percentage:
11
+ storage-minimal-available-percentage:
12
+ upgrade-checker:
13
+ default-replica-count: 3
14
+ guaranteed-engine-cpu: 0.125
15
+ default-longhorn-static-storage-class:
16
+ backupstore-poll-interval:
17
+ taint-toleration:
18
+ priority-class:
19
+ registry-secret:
20
+ auto-salvage:
21
+ disable-scheduling-on-cordoned-node:
22
+ replica-zone-soft-anti-affinity:
23
+ volume-attachment-recovery-policy:
24
+ mkfs-ext4-parameters:
Original file line number Diff line number Diff line change
1
+ ---
2
+ - op : replace
3
+ path : /spec/template/spec/containers/0/command/4
4
+ value : vsellier/longhorn-manager:v1.0.1
5
+
6
+ - op : add
7
+ path : /spec/template/spec/containers/0/env/-
8
+ value :
9
+ name : CSI_ATTACHER_IMAGE
10
+ value : vsellier/csi-attacher:v2.0.0
11
+
12
+ - op : add
13
+ path : /spec/template/spec/containers/0/env/-
14
+ value :
15
+ name : CSI_PROVISIONER_IMAGE
16
+ value : vsellier/csi-provisioner:v1.4.0
17
+
18
+ - op : add
19
+ path : /spec/template/spec/containers/0/env/-
20
+ value :
21
+ name : CSI_NODE_DRIVER_REGISTRAR_IMAGE
22
+ value : vsellier/csi-node-driver-registrar:v1.2.0
23
+
24
+ - op : add
25
+ path : /spec/template/spec/containers/0/env/-
26
+ value :
27
+ name : CSI_RESIZER_IMAGE
28
+ value : vsellier/csi-resizer:v0.3.0
Original file line number Diff line number Diff line change
1
+ ---
2
+ - op : replace
3
+ path : /spec/template/spec/containers/0/command/4
4
+ value : vsellier/longhorn-engine:v1.0.1
5
+
6
+ - op : replace
7
+ path : /spec/template/spec/containers/0/command/6
8
+ value : vsellier/longhorn-instance-manager:v1_20200514_1
9
+
10
+ - op : replace
11
+ path : /spec/template/spec/containers/0/command/8
12
+ value : vsellier/longhorn-manager:v1.0.1
Original file line number Diff line number Diff line change 14
14
echo " Cleanup manifests folder"
15
15
rm -rf manifests && mkdir manifests
16
16
17
- manifests=" cert-manager ingress-nginx metallb-system monitoring-system"
17
+ manifests=" cert-manager ingress-nginx metallb-system monitoring-system longhorn "
18
18
19
19
for service_namespace in ${manifests}
20
20
do
25
25
docker run -it --rm -e KUBECONFIG=/workdir/tmp/kube_config.yml -v ${PWD} :/workdir bitnami/kubectl:1.18.8 apply --wait --record=false -f /workdir/manifests/${service_namespace} .yml
26
26
done
27
27
28
+ for cluster_node in $( docker run -it --rm -e KUBECONFIG=/workdir/tmp/kube_config.yml -v ${PWD} :/workdir bitnami/kubectl:1.18.8 get no -o name)
29
+ do
30
+
31
+ docker run -it --rm -e KUBECONFIG=/workdir/tmp/kube_config.yml -v ${PWD} :/workdir bitnami/kubectl:1.18.8 label $( echo $cluster_node | tr -d ' [:space:]' ) node.longhorn.io/create-default-disk=true --overwrite
32
+
33
+ done
You can’t perform that action at this time.
0 commit comments