Rename infrastructure filetree
This commit is contained in:
10
README.md
10
README.md
@@ -1,5 +1,6 @@
|
||||
## Homelab
|
||||
|
||||
|
||||
## 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.
|
||||
|
||||
@@ -49,3 +50,12 @@ Block Storage from NAS
|
||||
|
||||
Distributed Storage from:
|
||||
- Longhorn
|
||||
|
||||
|
||||
# True NAS key
|
||||
1-ndzlY0C6o2KW9DJHnjTcjXi49VEFgDp5Up8GZ7FXmgNoU7LNwwI7MMrk2WbI6o5J
|
||||
|
||||
## NFS
|
||||
Via NAS for Files, like photos, videos, etc...
|
||||
## ISCS
|
||||
Via NAS for Databases
|
||||
|
||||
@@ -21,21 +21,13 @@ func main() {
|
||||
err := flux_stack.MarshalYamlFlat(root.FLUX_CLUSTER_HYDRA_PATH)
|
||||
assertNoErr(err)
|
||||
|
||||
hydra_monitoring := map[string]stack.Stack{
|
||||
"controllers": monitoring.Controllers(),
|
||||
hydra_infrastructure := map[string]stack.Stack{
|
||||
"monitoring": monitoring.Stack(),
|
||||
"longhorn": longhorn.Stack(),
|
||||
}
|
||||
for name, s := range hydra_monitoring {
|
||||
fmt.Printf("Monitoring STACK: %s\n", name)
|
||||
err = s.MarshalYaml(root.FLUX_INFRA_HYDRA_PATH + "/monitoring")
|
||||
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")
|
||||
for name, s := range hydra_infrastructure {
|
||||
fmt.Printf("STACK: %s\n", name)
|
||||
err = s.MarshalYaml(root.FLUX_INFRA_HYDRA_PATH)
|
||||
assertNoErr(err)
|
||||
}
|
||||
|
||||
|
||||
@@ -18,13 +18,12 @@ func init() {
|
||||
meta = kube.NewMetadata(root.Longhorn, Namespace)
|
||||
}
|
||||
|
||||
func Controllers() stack.Stack {
|
||||
s := stack.NewStack("controllers", map[string]any{
|
||||
func Stack() stack.Stack {
|
||||
s := stack.NewStack("longhorn", map[string]any{
|
||||
"namespace": Namespace,
|
||||
"longhorn-stack": LonghornHelmSource(),
|
||||
"release": LonghornHelmRelease(),
|
||||
})
|
||||
|
||||
return s
|
||||
}
|
||||
|
||||
|
||||
@@ -21,8 +21,8 @@ func init() {
|
||||
meta = kube.NewMetadata(root.Monitoring, Namespace)
|
||||
}
|
||||
|
||||
func Controllers() stack.Stack {
|
||||
s := stack.NewStack("controllers", map[string]any{
|
||||
func Stack() stack.Stack {
|
||||
s := stack.NewStack("monitoring", map[string]any{
|
||||
"namespace": Namespace,
|
||||
"kube-prometheus-stack": PrometheusHelmSource(),
|
||||
"release": PrometheusRelease(),
|
||||
|
||||
Reference in New Issue
Block a user