Rename infrastructure filetree
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
## Homelab
|
## Homelab
|
||||||
|
|
||||||
|
|
||||||
## GitOps
|
## GitOps
|
||||||
A set of "best practices" where the entire code delivery process is controlled via Git, including infrastructure and application definition as code and automation to complete updates and rollbacks.
|
A set of "best practices" where the entire code delivery process is controlled via Git, including infrastructure and application definition as code and automation to complete updates and rollbacks.
|
||||||
|
|
||||||
@@ -49,3 +50,12 @@ Block Storage from NAS
|
|||||||
|
|
||||||
Distributed Storage from:
|
Distributed Storage from:
|
||||||
- Longhorn
|
- Longhorn
|
||||||
|
|
||||||
|
|
||||||
|
# True NAS key
|
||||||
|
1-ndzlY0C6o2KW9DJHnjTcjXi49VEFgDp5Up8GZ7FXmgNoU7LNwwI7MMrk2WbI6o5J
|
||||||
|
|
||||||
|
## NFS
|
||||||
|
Via NAS for Files, like photos, videos, etc...
|
||||||
|
## ISCS
|
||||||
|
Via NAS for Databases
|
||||||
|
|||||||
+6
-14
@@ -21,21 +21,13 @@ func main() {
|
|||||||
err := flux_stack.MarshalYamlFlat(root.FLUX_CLUSTER_HYDRA_PATH)
|
err := flux_stack.MarshalYamlFlat(root.FLUX_CLUSTER_HYDRA_PATH)
|
||||||
assertNoErr(err)
|
assertNoErr(err)
|
||||||
|
|
||||||
hydra_monitoring := map[string]stack.Stack{
|
hydra_infrastructure := map[string]stack.Stack{
|
||||||
"controllers": monitoring.Controllers(),
|
"monitoring": monitoring.Stack(),
|
||||||
|
"longhorn": longhorn.Stack(),
|
||||||
}
|
}
|
||||||
for name, s := range hydra_monitoring {
|
for name, s := range hydra_infrastructure {
|
||||||
fmt.Printf("Monitoring STACK: %s\n", name)
|
fmt.Printf("STACK: %s\n", name)
|
||||||
err = s.MarshalYaml(root.FLUX_INFRA_HYDRA_PATH + "/monitoring")
|
err = s.MarshalYaml(root.FLUX_INFRA_HYDRA_PATH)
|
||||||
assertNoErr(err)
|
|
||||||
}
|
|
||||||
|
|
||||||
hydra_longhorn := map[string]stack.Stack{
|
|
||||||
"controllers": longhorn.Controllers(),
|
|
||||||
}
|
|
||||||
for name, s := range hydra_longhorn {
|
|
||||||
fmt.Printf("Longhorn STACK: %s\n", name)
|
|
||||||
err = s.MarshalYaml(root.FLUX_INFRA_HYDRA_PATH + "/longhorn")
|
|
||||||
assertNoErr(err)
|
assertNoErr(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -18,13 +18,12 @@ func init() {
|
|||||||
meta = kube.NewMetadata(root.Longhorn, Namespace)
|
meta = kube.NewMetadata(root.Longhorn, Namespace)
|
||||||
}
|
}
|
||||||
|
|
||||||
func Controllers() stack.Stack {
|
func Stack() stack.Stack {
|
||||||
s := stack.NewStack("controllers", map[string]any{
|
s := stack.NewStack("longhorn", map[string]any{
|
||||||
"namespace": Namespace,
|
"namespace": Namespace,
|
||||||
"longhorn-stack": LonghornHelmSource(),
|
"longhorn-stack": LonghornHelmSource(),
|
||||||
"release": LonghornHelmRelease(),
|
"release": LonghornHelmRelease(),
|
||||||
})
|
})
|
||||||
|
|
||||||
return s
|
return s
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -21,8 +21,8 @@ func init() {
|
|||||||
meta = kube.NewMetadata(root.Monitoring, Namespace)
|
meta = kube.NewMetadata(root.Monitoring, Namespace)
|
||||||
}
|
}
|
||||||
|
|
||||||
func Controllers() stack.Stack {
|
func Stack() stack.Stack {
|
||||||
s := stack.NewStack("controllers", map[string]any{
|
s := stack.NewStack("monitoring", map[string]any{
|
||||||
"namespace": Namespace,
|
"namespace": Namespace,
|
||||||
"kube-prometheus-stack": PrometheusHelmSource(),
|
"kube-prometheus-stack": PrometheusHelmSource(),
|
||||||
"release": PrometheusRelease(),
|
"release": PrometheusRelease(),
|
||||||
|
|||||||
Reference in New Issue
Block a user