diff --git a/meta/linode/babybuddy.tf b/meta/linode/babybuddy.tf deleted file mode 100644 index 7bc92af..0000000 --- a/meta/linode/babybuddy.tf +++ /dev/null @@ -1,123 +0,0 @@ -resource "kubernetes_persistent_volume_claim" "babybuddy" { - metadata { - name = "babybuddy" - } - spec { - access_modes = ["ReadWriteOnce"] - resources { - requests = { - storage = "2Gi" - } - } - storage_class_name = "linode-block-storage-retain" - } -} - -resource "kubernetes_deployment" "babybuddy" { - metadata { - name = "babybuddy" - } - - spec { - selector { - match_labels = { - app = "babybuddy" - } - } - strategy { - type = "Recreate" - } - template { - metadata { - labels = { - app = "babybuddy" - } - } - spec { - container { - image = "lscr.io/linuxserver/babybuddy:1.11.1" - name = "babybuddy" - image_pull_policy = "Always" - port { - container_port = 8000 - } - volume_mount { - name = "babybuddy" - mount_path = "/config" - } - env { - name = "CSRF_TRUSTED_ORIGINS" - value = "https://babybuddy.${var.domain}" - } - env { - name = "SECURE_PROXY_SSL_HEADER" - value = "True" - } - env { - name = "DEBUG" - value = "True" - } - } - volume { - name = "babybuddy" - persistent_volume_claim { - claim_name = "babybuddy" - } - } - } - } - } -} - -resource "kubernetes_service" "babybuddy" { - metadata { - name = "babybuddy" - } - - spec { - port { - port = 80 - target_port = 8000 - protocol = "TCP" - } - selector = { - app = "babybuddy" - } - } -} - -resource "kubernetes_ingress_v1" "babybuddy" { - metadata { - name = "babybuddy" - annotations = { - "kubernetes.io/ingress.class" = "nginx" - "cert-manager.io/cluster-issuer" = "letsencrypt-prod" - } - } - - spec { - tls { - hosts = [ - "babybuddy.${var.domain}" - ] - secret_name = "babybuddy-tls" - } - rule { - host = "babybuddy.${var.domain}" - http { - path { - path = "/" - path_type = "Prefix" - backend { - service { - name = "babybuddy" - port { - number = 80 - } - } - } - } - } - } - } -} diff --git a/meta/linode/kuard.tf b/meta/linode/kuard.tf deleted file mode 100644 index f4ed801..0000000 --- a/meta/linode/kuard.tf +++ /dev/null @@ -1,84 +0,0 @@ -resource "kubernetes_deployment" "kuard" { - metadata { - name = "kuard" - } - - spec { - selector { - match_labels = { - app = "kuard" - } - } - replicas = 1 - template { - metadata { - labels = { - app = "kuard" - } - } - spec { - container { - image = "gcr.io/kuar-demo/kuard-amd64:1" - image_pull_policy = "Always" - name = "kuard" - port { - container_port = 8080 - } - } - } - } - } -} - -resource "kubernetes_service" "kuard" { - metadata { - name = "kuard" - } - - spec { - port { - port = 80 - target_port = 8080 - protocol = "TCP" - } - selector = { - app = "kuard" - } - } -} - -resource "kubernetes_ingress_v1" "kuard" { - metadata { - name = "kuard" - annotations = { - "kubernetes.io/ingress.class" = "nginx" - "cert-manager.io/cluster-issuer" = "letsencrypt-prod" - } - } - - spec { - tls { - hosts = [ - "kuard.${var.domain}" - ] - secret_name = "kuard-tls" - } - rule { - host = "kuard.${var.domain}" - http { - path { - path = "/" - path_type = "Prefix" - backend { - service { - name = "kuard" - port { - number = 80 - } - } - } - } - } - } - } -}