Skip to content

Commit 1b017b3

Browse files
committed
minor fixes
1 parent 0e027b1 commit 1b017b3

File tree

6 files changed

+11
-14
lines changed

6 files changed

+11
-14
lines changed

_examples/aks/kubernetes-config/main.tf

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,19 @@ resource "kubernetes_deployment" "test" {
1313
replicas = 2
1414
selector {
1515
match_labels = {
16-
TestLabelOne = "one"
16+
app = "test"
1717
}
1818
}
1919
template {
2020
metadata {
2121
labels = {
22-
TestLabelOne = "one"
22+
app = "test"
2323
}
2424
}
2525
spec {
26-
automount_service_account_token = false
2726
container {
2827
image = "nginx:1.19.4"
29-
name = "tf-acc-test"
28+
name = "nginx"
3029

3130
resources {
3231
limits = {

_examples/aks/variables.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@ resource "random_id" "cluster_name" {
99

1010
locals {
1111
cluster_name = "tf-k8s-${random_id.cluster_name.hex}"
12-
cluster_credentials_updated = timestamp()
1312
}

_examples/eks/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# EKS (Amazon Elastic Kubernetes Service)
22

3-
This example shows how to use the Terraform Kubernetes Provider and Terraform Helm Provider to configure an EKS cluster. The example builds the EKS cluster and applies the Kubernetes configurations in a single operation.
3+
This example shows how to use the Terraform Kubernetes Provider and Terraform Helm Provider to configure an EKS cluster. The example config builds the EKS cluster and applies the Kubernetes configurations in a single operation.
44

55
You will need the following environment variables to be set:
66

_examples/eks/kubernetes-config/main.tf

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ resource "null_resource" "generate-kubeconfig" {
3434
}
3535
}
3636

37-
3837
resource "kubernetes_namespace" "test" {
3938
depends_on = [var.cluster_name]
4039
metadata {
@@ -52,19 +51,19 @@ resource "kubernetes_deployment" "test" {
5251
replicas = 2
5352
selector {
5453
match_labels = {
55-
TestLabelOne = "one"
54+
app = "test"
5655
}
5756
}
5857
template {
5958
metadata {
6059
labels = {
61-
TestLabelOne = "one"
60+
app = "test"
6261
}
6362
}
6463
spec {
6564
container {
6665
image = "nginx:1.19.4"
67-
name = "tf-acc-test"
66+
name = "nginx"
6867

6968
resources {
7069
limits = {

_examples/gke/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# GKE (Google Container Engine)
22

3-
This example shows how to use the Terraform Kubernetes Provider and Terraform Helm Provider to configure a GKE cluster. The example builds the GKE cluster and applies the Kubernetes configurations in a single operation.
3+
This example shows how to use the Terraform Kubernetes Provider and Terraform Helm Provider to configure a GKE cluster. The example config builds the GKE cluster and applies the Kubernetes configurations in a single operation.
44

55
You will need the following environment variables to be set:
66

_examples/gke/kubernetes-config/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,19 @@ resource "kubernetes_deployment" "test" {
2525
replicas = 2
2626
selector {
2727
match_labels = {
28-
TestLabelOne = "one"
28+
app = "test"
2929
}
3030
}
3131
template {
3232
metadata {
3333
labels = {
34-
TestLabelOne = "one"
34+
app = "test"
3535
}
3636
}
3737
spec {
3838
container {
3939
image = "nginx:1.19.4"
40-
name = "tf-acc-test"
40+
name = "nginx"
4141

4242
resources {
4343
limits = {

0 commit comments

Comments
 (0)