File tree 3 files changed +8
-20
lines changed
3 files changed +8
-20
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ locals {
11
11
name = google_container_cluster.primary.name
12
12
context = {
13
13
cluster = google_container_cluster.primary.name
14
- user = var.gke_nodes_service_account
14
+ user = google_container_cluster.primary.name
15
15
}
16
16
}
17
17
]
@@ -26,7 +26,7 @@ locals {
26
26
]
27
27
users = [
28
28
{
29
- name = var.gke_nodes_service_account
29
+ name = google_container_cluster.primary.name
30
30
user = {
31
31
exec = {
32
32
apiVersion = " client.authentication.k8s.io/v1beta1"
Original file line number Diff line number Diff line change @@ -48,10 +48,10 @@ resource "google_container_cluster" "primary" {
48
48
display_name = " local-ip"
49
49
}
50
50
51
- cidr_blocks {
52
- cidr_block = google_compute_subnetwork. subnet . ip_cidr_range
53
- display_name = " vpc"
54
- }
51
+ # cidr_blocks {
52
+ # cidr_block = google_compute_subnetwork.subnet.ip_cidr_range
53
+ # display_name = "vpc"
54
+ # }
55
55
}
56
56
57
57
private_cluster_config {
Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ resource "google_compute_router_nat" "nat" {
27
27
}
28
28
}
29
29
30
- resource "google_compute_firewall" "firewall " {
31
- name = " ${ var . gke_cluster_name } -firewall "
30
+ resource "google_compute_firewall" "ssh " {
31
+ name = " ${ var . gke_cluster_name } -ssh "
32
32
network = google_compute_network. vpc . self_link
33
33
allow {
34
34
protocol = " tcp"
@@ -37,18 +37,6 @@ resource "google_compute_firewall" "firewall" {
37
37
source_ranges = [" ${ chomp (data. http . myip . response_body )} /32" ]
38
38
}
39
39
40
- resource "google_compute_firewall" "deny_exkubelet" {
41
- name = " ${ var . gke_cluster_name } -deny-exkubelet"
42
- network = google_compute_network. vpc . self_link
43
- direction = " INGRESS"
44
- deny {
45
- protocol = " tcp"
46
- ports = [" 10255" ]
47
- }
48
- source_ranges = [" 0.0.0.0/0" ]
49
-
50
- }
51
-
52
40
resource "google_compute_address" "vpc-ip" {
53
41
name = " ${ var . gke_cluster_name } -vpc-ip"
54
42
address_type = " EXTERNAL"
You can’t perform that action at this time.
0 commit comments