Terraform format
This commit is contained in:
parent
15f7c37f22
commit
da907a7fc2
@ -1,8 +1,8 @@
|
|||||||
provider "helm" {
|
provider "helm" {
|
||||||
kubernetes {
|
kubernetes {
|
||||||
load_config_file = false
|
load_config_file = false
|
||||||
host = scaleway_k8s_cluster_beta.k8s-cluster.kubeconfig[0].host
|
host = scaleway_k8s_cluster_beta.k8s-cluster.kubeconfig[0].host
|
||||||
token = scaleway_k8s_cluster_beta.k8s-cluster.kubeconfig[0].token
|
token = scaleway_k8s_cluster_beta.k8s-cluster.kubeconfig[0].token
|
||||||
cluster_ca_certificate = base64decode(
|
cluster_ca_certificate = base64decode(
|
||||||
scaleway_k8s_cluster_beta.k8s-cluster.kubeconfig[0].cluster_ca_certificate
|
scaleway_k8s_cluster_beta.k8s-cluster.kubeconfig[0].cluster_ca_certificate
|
||||||
)
|
)
|
||||||
|
@ -14,12 +14,12 @@ resource "scaleway_k8s_cluster_beta" "k8s-cluster" {
|
|||||||
|
|
||||||
|
|
||||||
resource "scaleway_k8s_pool_beta" "k8s-cluster-pool-1" {
|
resource "scaleway_k8s_pool_beta" "k8s-cluster-pool-1" {
|
||||||
cluster_id = scaleway_k8s_cluster_beta.k8s-cluster.id
|
cluster_id = scaleway_k8s_cluster_beta.k8s-cluster.id
|
||||||
name = "node pool 1"
|
name = "node pool 1"
|
||||||
node_type = "DEV1-M"
|
node_type = "DEV1-M"
|
||||||
size = 1
|
size = 1
|
||||||
min_size = 1
|
min_size = 1
|
||||||
max_size = 2
|
max_size = 2
|
||||||
autoscaling = true
|
autoscaling = true
|
||||||
autohealing = true
|
autohealing = true
|
||||||
}
|
}
|
||||||
|
@ -8,24 +8,24 @@ provider "kubectl" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "kubectl_manifest" "manifests" {
|
resource "kubectl_manifest" "manifests" {
|
||||||
for_each = fileset(path.module, "../manifests/*")
|
for_each = fileset(path.module, "../manifests/*")
|
||||||
yaml_body = file(each.key)
|
yaml_body = file(each.key)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
resource "kubectl_manifest" "tekton-install" {
|
resource "kubectl_manifest" "tekton-install" {
|
||||||
for_each = fileset(path.module, "../tekton/1-Install/*")
|
for_each = fileset(path.module, "../tekton/1-Install/*")
|
||||||
yaml_body = file(each.key)
|
yaml_body = file(each.key)
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "kubectl_manifest" "tekton-setup" {
|
resource "kubectl_manifest" "tekton-setup" {
|
||||||
for_each = fileset(path.module, "../tekton/2-Setup/*")
|
for_each = fileset(path.module, "../tekton/2-Setup/*")
|
||||||
yaml_body = file(each.key)
|
yaml_body = file(each.key)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
resource "kubectl_manifest" "tekton" {
|
resource "kubectl_manifest" "tekton" {
|
||||||
for_each = fileset(path.module, "../tekton/{bindings,conditions,eventlisteners,pipelines,tasks,triggertemplates}/*")
|
for_each = fileset(path.module, "../tekton/{bindings,conditions,eventlisteners,pipelines,tasks,triggertemplates}/*")
|
||||||
yaml_body = file(each.key)
|
yaml_body = file(each.key)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
provider "scaleway" {
|
provider "scaleway" {
|
||||||
zone = "fr-par-1"
|
zone = "fr-par-1"
|
||||||
region = "fr-par"
|
region = "fr-par"
|
||||||
organization_id = "5c1e5e2a-a6cd-4eb3-907f-2a83a29668fc"
|
organization_id = "5c1e5e2a-a6cd-4eb3-907f-2a83a29668fc"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user