diff --git a/bootstrap/apps/main.tf b/bootstrap/apps/main.tf index 86c4cdd..4b6a3a2 100644 --- a/bootstrap/apps/main.tf +++ b/bootstrap/apps/main.tf @@ -23,7 +23,8 @@ resource "kubernetes_manifest" "container_registry" { spec = { project = "default" source = { - repoURL = "https://github.com/juvdiaz/my-homelab-configs.git" + # Targets your laptop's private IP and filesystem path via SSH + repoURL = "ssh://jv@192.168.100.68/home/jv/git-server/my-homelab-configs.git" targetRevision = "HEAD" path = "apps/container-registry" } @@ -48,19 +49,20 @@ resource "kubernetes_manifest" "production_website" { apiVersion = "argoproj.io/v1alpha1" kind = "Application" metadata = { - name = "production-website" + name = "php-web-app" namespace = "argocd" } spec = { project = "default" source = { - repoURL = "https://github.com/juvdiaz/my-homelab-configs.git" + # Targets your laptop's private IP and filesystem path via SSH + repoURL = "ssh://jv@192.168.100.68/home/jv/git-server/my-homelab-configs.git" targetRevision = "HEAD" path = "apps/website" } destination = { server = "https://kubernetes.default.svc" - namespace = "website-production" + namespace = "default" } syncPolicy = { automated = { diff --git a/bootstrap/platform/main.tf b/bootstrap/platform/main.tf index 38190b7..19e5548 100644 --- a/bootstrap/platform/main.tf +++ b/bootstrap/platform/main.tf @@ -43,7 +43,6 @@ resource "helm_release" "longhorn" { create_namespace = true timeout = 600 - # Scale configurations down for our small 2-node footprint set { name = "csi.attacherReplicaCount" value = "1" @@ -65,7 +64,6 @@ resource "helm_release" "longhorn" { value = "1" } - # Global Tolerations to allow Longhorn structural pods to map onto control planes set { name = "global.tolerations[0].key" value = "node-role.kubernetes.io/control-plane" @@ -92,7 +90,7 @@ resource "helm_release" "argocd" { resource "kubernetes_secret_v1" "argocd_private_repo" { depends_on = [helm_release.argocd] metadata { - name = "my-homelab-repo-secret" + name = "laptop-bootstrap-repo-secret" namespace = "argocd" labels = { "argocd.argoproj.io/secret-type" = "repository" @@ -100,9 +98,8 @@ resource "kubernetes_secret_v1" "argocd_private_repo" { } data = { - type = "git" - url = "http://192.168.100.68:30300/jv/my-homelab-configs" - username = "jv" - password = "Summer12#$" + type = "git" + url = "ssh://jv@192.168.100.68/home/jv/git-server/my-homelab-configs.git" + sshPrivateKey = file("/home/jv/.ssh/id_ed25519") } }