Add longhorn
This commit is contained in:
@@ -5,3 +5,4 @@ resources:
|
||||
- truenas-csi/
|
||||
- truenas-csi-driver.yaml
|
||||
- monitoring/
|
||||
- longhorn/
|
||||
|
||||
9
infrastructure/hydra/longhorn/kustomization.yaml
Normal file
9
infrastructure/hydra/longhorn/kustomization.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: longhorn
|
||||
namespace: longhorn-system
|
||||
resources:
|
||||
- namespace.yaml
|
||||
- longhorn-stack.yaml
|
||||
- release.yaml
|
||||
@@ -4,6 +4,6 @@ metadata:
|
||||
name: monitoring
|
||||
namespace: monitoring
|
||||
resources:
|
||||
- namespace.yaml
|
||||
- kube-prometheus-stack.yaml
|
||||
- release.yaml
|
||||
- namespace.yaml
|
||||
|
||||
@@ -4,7 +4,7 @@ metadata:
|
||||
name: truenas-csi
|
||||
namespace: truenas-csi
|
||||
resources:
|
||||
- nfs-storage-class.yaml
|
||||
- iscsi-storage-class.yaml
|
||||
- namespace.yaml
|
||||
- config.yaml
|
||||
- nfs-storage-class.yaml
|
||||
|
||||
@@ -20,12 +20,15 @@ func init() {
|
||||
}
|
||||
|
||||
func Stack() stack.Stack {
|
||||
s := stack.NewStack("longhorn", map[string]any{
|
||||
kz := kube.NewKuztomizedStack(
|
||||
meta,
|
||||
map[string]any{
|
||||
"namespace": Namespace,
|
||||
"longhorn-stack": LonghornHelmSource(),
|
||||
"release": LonghornHelmRelease(),
|
||||
})
|
||||
return s
|
||||
},
|
||||
)
|
||||
return kz.Stack("longhorn")
|
||||
}
|
||||
|
||||
func LonghornHelmSource() source.HelmRepository {
|
||||
|
||||
Reference in New Issue
Block a user