chore: redirect argocd gitops source to laptop ssh git server engine
This commit is contained in:
parent
199a06aae8
commit
69ae88a416
|
|
@ -23,7 +23,8 @@ resource "kubernetes_manifest" "container_registry" {
|
||||||
spec = {
|
spec = {
|
||||||
project = "default"
|
project = "default"
|
||||||
source = {
|
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"
|
targetRevision = "HEAD"
|
||||||
path = "apps/container-registry"
|
path = "apps/container-registry"
|
||||||
}
|
}
|
||||||
|
|
@ -48,19 +49,20 @@ resource "kubernetes_manifest" "production_website" {
|
||||||
apiVersion = "argoproj.io/v1alpha1"
|
apiVersion = "argoproj.io/v1alpha1"
|
||||||
kind = "Application"
|
kind = "Application"
|
||||||
metadata = {
|
metadata = {
|
||||||
name = "production-website"
|
name = "php-web-app"
|
||||||
namespace = "argocd"
|
namespace = "argocd"
|
||||||
}
|
}
|
||||||
spec = {
|
spec = {
|
||||||
project = "default"
|
project = "default"
|
||||||
source = {
|
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"
|
targetRevision = "HEAD"
|
||||||
path = "apps/website"
|
path = "apps/website"
|
||||||
}
|
}
|
||||||
destination = {
|
destination = {
|
||||||
server = "https://kubernetes.default.svc"
|
server = "https://kubernetes.default.svc"
|
||||||
namespace = "website-production"
|
namespace = "default"
|
||||||
}
|
}
|
||||||
syncPolicy = {
|
syncPolicy = {
|
||||||
automated = {
|
automated = {
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,6 @@ resource "helm_release" "longhorn" {
|
||||||
create_namespace = true
|
create_namespace = true
|
||||||
timeout = 600
|
timeout = 600
|
||||||
|
|
||||||
# Scale configurations down for our small 2-node footprint
|
|
||||||
set {
|
set {
|
||||||
name = "csi.attacherReplicaCount"
|
name = "csi.attacherReplicaCount"
|
||||||
value = "1"
|
value = "1"
|
||||||
|
|
@ -65,7 +64,6 @@ resource "helm_release" "longhorn" {
|
||||||
value = "1"
|
value = "1"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Global Tolerations to allow Longhorn structural pods to map onto control planes
|
|
||||||
set {
|
set {
|
||||||
name = "global.tolerations[0].key"
|
name = "global.tolerations[0].key"
|
||||||
value = "node-role.kubernetes.io/control-plane"
|
value = "node-role.kubernetes.io/control-plane"
|
||||||
|
|
@ -92,7 +90,7 @@ resource "helm_release" "argocd" {
|
||||||
resource "kubernetes_secret_v1" "argocd_private_repo" {
|
resource "kubernetes_secret_v1" "argocd_private_repo" {
|
||||||
depends_on = [helm_release.argocd]
|
depends_on = [helm_release.argocd]
|
||||||
metadata {
|
metadata {
|
||||||
name = "my-homelab-repo-secret"
|
name = "laptop-bootstrap-repo-secret"
|
||||||
namespace = "argocd"
|
namespace = "argocd"
|
||||||
labels = {
|
labels = {
|
||||||
"argocd.argoproj.io/secret-type" = "repository"
|
"argocd.argoproj.io/secret-type" = "repository"
|
||||||
|
|
@ -100,9 +98,8 @@ resource "kubernetes_secret_v1" "argocd_private_repo" {
|
||||||
}
|
}
|
||||||
|
|
||||||
data = {
|
data = {
|
||||||
type = "git"
|
type = "git"
|
||||||
url = "http://192.168.100.68:30300/jv/my-homelab-configs"
|
url = "ssh://jv@192.168.100.68/home/jv/git-server/my-homelab-configs.git"
|
||||||
username = "jv"
|
sshPrivateKey = file("/home/jv/.ssh/id_ed25519")
|
||||||
password = "Summer12#$"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue