-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
keep-dev: GKE metrics + env repairs #534
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
2f56d49
Set metrics namepsace and app versions
42a1099
Install gke_metrics for keep-dev
d569c00
Standalone tf config for openvpn
2fe09ef
Merge branch 'master' into sthompson22/keep-dev/gke_metrics
0414347
Explicit provider version definitions
f6da6a4
Sourcing from local as a temp measure to observe some terraform plan …
30df0cf
Revert "Sourcing from local as a temp measure to observe some terrafo…
2140ca9
Set GKE logging beta service
8895c73
Remove stand alone helm-release file, will sort proper resourse segme…
4ef1691
Metrics currently creates a data read / change on each TF plan/apply
a95b7ae
Docu section for gke-metrics
e9a9aa3
Set helm keyring to empty string to prevent constant updates
a707c24
Move to openvpn install via module
0d98659
Disable network policies
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -121,11 +121,11 @@ module "gke_cluster" { | |
gke_cluster { | ||
name = "${var.gke_cluster["name"]}" | ||
private_cluster = "${var.gke_cluster["private_cluster"]}" | ||
subnetwork = "${module.vpc.vpc_private_subnet_self_link}" | ||
master_ipv4_cidr_block = "${var.gke_cluster["master_ipv4_cidr_block"]}" | ||
daily_maintenance_window_start_time = "${var.gke_cluster["daily_maintenance_window_start_time"]}" | ||
network_policy_enabled = "${var.gke_cluster["network_policy_enabled"]}" | ||
network_policy_provider = "${var.gke_cluster["network_policy_provider"]}" | ||
logging_service = "${var.gke_cluster["logging_service"]}" | ||
} | ||
|
||
gke_node_pool { | ||
|
@@ -149,3 +149,36 @@ resource "google_compute_global_address" "atlantis_external_ip" { | |
address_type = "${upper(var.atlantis_ip_address_type)}" | ||
labels = "${local.labels}" | ||
} | ||
|
||
/* Using this module will create a data read and an update for the | ||
* prometheus-to-sd resource on each Terraform planand apply run. These | ||
* updates will do nothing and are an artifact of the depends_on in the | ||
* modules data resource. Terraform team is aware and have a proposed fix | ||
* in the works. | ||
*/ | ||
module "gke_cluster_metrics" { | ||
source = "[email protected]:thesis/infrastructure.git//terraform/modules/gke_metrics" | ||
namespace = "${var.gke_metrics_namespace}" | ||
|
||
kube_state_metrics { | ||
version = "${var.kube_state_metrics["version"]}" | ||
} | ||
|
||
prometheus_to_sd { | ||
version = "${var.prometheus_to_sd["version"]}" | ||
} | ||
} | ||
|
||
module "openvpn" { | ||
source = "[email protected]:thesis/infrastructure.git//terraform/modules/helm_openvpn" | ||
|
||
openvpn { | ||
name = "${var.openvpn["name"]}" | ||
version = "${var.openvpn["version"]}" | ||
} | ||
|
||
openvpn_parameters { | ||
route_all_traffic_through_vpn = "${var.openvpn_parameters["route_all_traffic_through_vpn"]}" | ||
gke_master_ipv4_cidr_address = "${var.openvpn_parameters["gke_master_ipv4_cidr_address"]}" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Took this out because it's superfluous. This param is actually ignored by the module.