mirror of
https://github.com/khuedoan/homelab.git
synced 2024-12-23 01:04:32 +07:00
refactor: move all external charts back to system
This commit is contained in:
parent
4e2a173858
commit
d515e1946a
51
external/applicationset.tf
vendored
51
external/applicationset.tf
vendored
@ -1,51 +0,0 @@
|
||||
provider "kubernetes" {
|
||||
config_path = "${path.root}/../metal/kubeconfig.yaml"
|
||||
}
|
||||
|
||||
resource "kubernetes_manifest" "external_applicationset" {
|
||||
manifest = {
|
||||
apiVersion = "argoproj.io/v1alpha1"
|
||||
kind = "ApplicationSet"
|
||||
metadata = {
|
||||
name = "external"
|
||||
namespace = "argocd"
|
||||
}
|
||||
spec = {
|
||||
generators = [
|
||||
{
|
||||
git = {
|
||||
directories = [
|
||||
{
|
||||
path = "external/*"
|
||||
}
|
||||
]
|
||||
repoURL = "https://github.com/khuedoan/homelab.git"
|
||||
revision = "master"
|
||||
}
|
||||
},
|
||||
]
|
||||
template = {
|
||||
metadata = {
|
||||
name = "{{path.basename}}"
|
||||
}
|
||||
spec = {
|
||||
destination = {
|
||||
name = "in-cluster"
|
||||
namespace = "{{path.basename}}"
|
||||
}
|
||||
project = "default"
|
||||
source = {
|
||||
path = "{{path}}"
|
||||
repoURL = "https://github.com/khuedoan/homelab.git"
|
||||
}
|
||||
syncPolicy = {
|
||||
automated = {
|
||||
prune = true
|
||||
selfHeal = true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
6
external/backblaze.tf
vendored
6
external/backblaze.tf
vendored
@ -1,9 +1,3 @@
|
||||
provider "b2" {
|
||||
# Environment variables
|
||||
# B2_APPLICATION_KEY
|
||||
# B2_APPLICATION_KEY_ID
|
||||
}
|
||||
|
||||
resource "b2_bucket" "backup" {
|
||||
bucket_name = "khuedoan-homelab-backup"
|
||||
bucket_type = "allPrivate"
|
||||
|
5
external/cloudflare.tf
vendored
5
external/cloudflare.tf
vendored
@ -2,11 +2,6 @@ variable "cloudflare_account_id" {
|
||||
type = string
|
||||
}
|
||||
|
||||
provider "cloudflare" {
|
||||
# Environment variables
|
||||
# CLOUDFLARE_API_TOKEN
|
||||
}
|
||||
|
||||
data "cloudflare_zone" "khuedoan_com" {
|
||||
name = "khuedoan.com"
|
||||
}
|
||||
|
15
external/versions.tf
vendored
15
external/versions.tf
vendored
@ -32,3 +32,18 @@ terraform {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
provider "cloudflare" {
|
||||
# Environment variables
|
||||
# CLOUDFLARE_API_TOKEN
|
||||
}
|
||||
|
||||
provider "b2" {
|
||||
# Environment variables
|
||||
# B2_APPLICATION_KEY
|
||||
# B2_APPLICATION_KEY_ID
|
||||
}
|
||||
|
||||
provider "kubernetes" {
|
||||
config_path = "${path.root}/../metal/kubeconfig.yaml"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user