Add longhorn
This commit is contained in:
@@ -5,3 +5,4 @@ resources:
|
|||||||
- truenas-csi/
|
- truenas-csi/
|
||||||
- truenas-csi-driver.yaml
|
- truenas-csi-driver.yaml
|
||||||
- monitoring/
|
- 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
|
name: monitoring
|
||||||
namespace: monitoring
|
namespace: monitoring
|
||||||
resources:
|
resources:
|
||||||
|
- namespace.yaml
|
||||||
- kube-prometheus-stack.yaml
|
- kube-prometheus-stack.yaml
|
||||||
- release.yaml
|
- release.yaml
|
||||||
- namespace.yaml
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ metadata:
|
|||||||
name: truenas-csi
|
name: truenas-csi
|
||||||
namespace: truenas-csi
|
namespace: truenas-csi
|
||||||
resources:
|
resources:
|
||||||
|
- nfs-storage-class.yaml
|
||||||
- iscsi-storage-class.yaml
|
- iscsi-storage-class.yaml
|
||||||
- namespace.yaml
|
- namespace.yaml
|
||||||
- config.yaml
|
- config.yaml
|
||||||
- nfs-storage-class.yaml
|
|
||||||
|
|||||||
@@ -20,12 +20,15 @@ func init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Stack() stack.Stack {
|
func Stack() stack.Stack {
|
||||||
s := stack.NewStack("longhorn", map[string]any{
|
kz := kube.NewKuztomizedStack(
|
||||||
"namespace": Namespace,
|
meta,
|
||||||
"longhorn-stack": LonghornHelmSource(),
|
map[string]any{
|
||||||
"release": LonghornHelmRelease(),
|
"namespace": Namespace,
|
||||||
})
|
"longhorn-stack": LonghornHelmSource(),
|
||||||
return s
|
"release": LonghornHelmRelease(),
|
||||||
|
},
|
||||||
|
)
|
||||||
|
return kz.Stack("longhorn")
|
||||||
}
|
}
|
||||||
|
|
||||||
func LonghornHelmSource() source.HelmRepository {
|
func LonghornHelmSource() source.HelmRepository {
|
||||||
|
|||||||
Reference in New Issue
Block a user