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 = {
|
||||
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 = {
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
@ -101,8 +99,7 @@ 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#$"
|
||||
url = "ssh://jv@192.168.100.68/home/jv/git-server/my-homelab-configs.git"
|
||||
sshPrivateKey = file("/home/jv/.ssh/id_ed25519")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue