Fixes #1: Added provider.tf and variables.tf for k8sapps
This commit is contained in:
@@ -29,11 +29,9 @@ terraform {
|
|||||||
}
|
}
|
||||||
|
|
||||||
provider "kubernetes" {
|
provider "kubernetes" {
|
||||||
host = var.k8s_host
|
config_path = "~/.kube/config"
|
||||||
client_certificate = base64decode(var.k8s_client_certificate)
|
config_context = "k8s"
|
||||||
client_key = base64decode(var.k8s_client_key)
|
insecure = true
|
||||||
cluster_ca_certificate = base64decode(var.k8s_cluster_ca_certificate)
|
|
||||||
insecure = true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
provider "scaleway" {
|
provider "scaleway" {
|
||||||
|
|||||||
@@ -67,23 +67,3 @@ variable "m3uproxy_secret" {
|
|||||||
description = "M3UProxy HMAC secret"
|
description = "M3UProxy HMAC secret"
|
||||||
type = string
|
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
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user