Fixes #1: Added provider.tf and variables.tf for k8sapps

This commit is contained in:
2024-09-24 21:51:14 +02:00
parent 10940b64fd
commit bf6521b362
2 changed files with 3 additions and 25 deletions
+2 -4
View File
@@ -29,10 +29,8 @@ terraform {
}
provider "kubernetes" {
host = var.k8s_host
client_certificate = base64decode(var.k8s_client_certificate)
client_key = base64decode(var.k8s_client_key)
cluster_ca_certificate = base64decode(var.k8s_cluster_ca_certificate)
config_path = "~/.kube/config"
config_context = "k8s"
insecure = true
}
-20
View File
@@ -67,23 +67,3 @@ variable "m3uproxy_secret" {
description = "M3UProxy HMAC secret"
type = string
}
variable "k8s_host" {
description = "K8S host"
type = string
}
variable "k8s_client_certificate" {
description = "K8S client certificate"
type = string
}
variable "k8s_client_key" {
description = "K8S client key"
type = string
}
variable "k8s_cluster_ca_certificate" {
description = "K8S cluster CA certificate"
type = string
}