File tree 2 files changed +5
-12
lines changed
2 files changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,11 @@ resource "google_container_cluster" "primary" {
47
47
cidr_block = " ${ chomp (data. http . myip . response_body )} /32"
48
48
display_name = " local-ip"
49
49
}
50
+
51
+ cidr_blocks {
52
+ cidr_block = google_compute_subnetwork. subnet . ip_cidr_range
53
+ display_name = " vpc"
54
+ }
50
55
}
51
56
52
57
private_cluster_config {
Original file line number Diff line number Diff line change @@ -49,18 +49,6 @@ resource "google_compute_firewall" "deny_exkubelet" {
49
49
50
50
}
51
51
52
- resource "google_compute_firewall" "allow_inkublet" {
53
- name = " ${ var . gke_cluster_name } -allow-inkubelet"
54
- network = google_compute_network. vpc . self_link
55
- direction = " INGRESS"
56
- allow {
57
- protocol = " tcp"
58
- ports = [" 10255" ]
59
- }
60
- source_tags = [" ngf-tests-${ var . gke_cluster_name } -nodes" , " ngf-tests-${ var . gke_cluster_name } -vm" ]
61
-
62
- }
63
-
64
52
resource "google_compute_address" "vpc-ip" {
65
53
name = " ${ var . gke_cluster_name } -vpc-ip"
66
54
address_type = " EXTERNAL"
You can’t perform that action at this time.
0 commit comments