-
Notifications
You must be signed in to change notification settings - Fork 500
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
deploy: Modularize gcp terraform #717
Merged
Merged
Changes from 12 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
a079fb0
Adds gcp project-credentials and vpc terraform modules
jlerche cfac212
More progress
jlerche 0646f9e
intermediate commit
jlerche a39858f
More refactoring of gcp terraform into modules
jlerche 60492b0
Correctly passes module outputs to variables
jlerche 9d485e1
Correctly set taints and selectors on node pools
jlerche d15a095
Adds base values for GCP
jlerche e1e8a21
Adds formatting pass
jlerche 17629ab
Fixes to get the helm provider to work
jlerche ca71692
Removes local variable that was no longer necessary
jlerche cf89eae
Uncomments and fixes data.tf
jlerche b38f8d5
Merge branch 'master' into modularize_gcp_terraform
d825c03
Fixes formatting, removes unnecessary variables, refactors
jlerche bc229a8
Refactors some names and formats
jlerche 7480cdd
Add maintenance time variable with default
jlerche c801a64
Changes bastion image to centos
jlerche 2799672
Adds comment to bastion module explaining empty access_config block
jlerche df29390
Merge branch 'master' into modularize_gcp_terraform
1dd4b96
Removes empty data.tf
jlerche 4258766
Merge branch 'modularize_gcp_terraform' of github.com:jlerche/tidb-op…
jlerche 239918f
Removes tidb-cluster-values.yaml.tpl
jlerche 284415f
helm doesn't install a release unless there's wait = false
jlerche a9cc9c4
Removes storage size override in default.yaml
jlerche cd4dacf
Refactors the tidb operator chart version variables
jlerche d8ba365
Moves pv reclaimpolicy=delete to tidb-cluster module
jlerche a87796c
fix create-service-account.sh
gregwebs 886adbf
Removes destroy trigger for patching reclaimpolicy PV
jlerche 93db57b
Adds bash script to change pv reclaimpolicy from Retain to Delete
jlerche 9f32741
Formatting pass
jlerche adda73b
Formatting pass
jlerche c84d1d1
Merge branch 'master' into modularize_gcp_terraform
gregwebs 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 |
---|---|---|
@@ -1,35 +1,20 @@ | ||
data "template_file" "tidb_cluster_values" { | ||
template = file("${path.module}/templates/tidb-cluster-values.yaml.tpl") | ||
|
||
vars = { | ||
cluster_version = var.tidb_version | ||
pd_replicas = var.pd_replica_count | ||
tikv_replicas = var.tikv_replica_count | ||
tidb_replicas = var.tidb_replica_count | ||
operator_version = var.tidb_operator_version | ||
tidb_operator_registry = var.tidb_operator_registry | ||
} | ||
} | ||
|
||
data "google_compute_zones" "available" {} | ||
|
||
data "external" "tidb_ilb_ip" { | ||
depends_on = [null_resource.deploy-tidb-cluster] | ||
program = ["bash", "-c", "kubectl --kubeconfig ${local.kubeconfig} get svc -n tidb tidb-cluster-tidb -o json | jq '.status.loadBalancer.ingress[0]'"] | ||
depends_on = [module.default-tidb-cluster] | ||
program = ["bash", "-c", "kubectl --kubeconfig ${local.kubeconfig} get svc -n ${var.default_tidb_cluster_name} ${var.default_tidb_cluster_name}-tidb -o json | jq '.status.loadBalancer.ingress[0]'"] | ||
} | ||
|
||
data "external" "monitor_ilb_ip" { | ||
jlerche marked this conversation as resolved.
Show resolved
Hide resolved
|
||
depends_on = [null_resource.deploy-tidb-cluster] | ||
program = ["bash", "-c", "kubectl --kubeconfig ${local.kubeconfig} get svc -n tidb tidb-cluster-grafana -o json | jq '.status.loadBalancer.ingress[0]'"] | ||
depends_on = [module.default-tidb-cluster] | ||
program = ["bash", "-c", "kubectl --kubeconfig ${local.kubeconfig} get svc -n ${var.default_tidb_cluster_name} ${var.default_tidb_cluster_name}-grafana -o json | jq '.status.loadBalancer.ingress[0]'"] | ||
} | ||
|
||
data "external" "tidb_port" { | ||
depends_on = [null_resource.deploy-tidb-cluster] | ||
program = ["bash", "-c", "kubectl --kubeconfig ${local.kubeconfig} get svc -n tidb tidb-cluster-tidb -o json | jq '.spec.ports | .[] | select( .name == \"mysql-client\") | {port: .port|tostring}'"] | ||
depends_on = [module.default-tidb-cluster] | ||
program = ["bash", "-c", "kubectl --kubeconfig ${local.kubeconfig} get svc -n ${var.default_tidb_cluster_name} ${var.default_tidb_cluster_name}-tidb -o json | jq '.spec.ports | .[] | select( .name == \"mysql-client\") | {port: .port|tostring}'"] | ||
} | ||
|
||
data "external" "monitor_port" { | ||
depends_on = [null_resource.deploy-tidb-cluster] | ||
program = ["bash", "-c", "kubectl --kubeconfig ${local.kubeconfig} get svc -n tidb tidb-cluster-grafana -o json | jq '.spec.ports | .[] | select( .name == \"grafana\") | {port: .port|tostring}'"] | ||
depends_on = [module.default-tidb-cluster] | ||
program = ["bash", "-c", "kubectl --kubeconfig ${local.kubeconfig} get svc -n ${var.default_tidb_cluster_name} ${var.default_tidb_cluster_name}-grafana -o json | jq '.spec.ports | .[] | select( .name == \"grafana\") | {port: .port|tostring}'"] | ||
jlerche marked this conversation as resolved.
Show resolved
Hide resolved
|
||
} | ||
|
Oops, something went wrong.
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.
This is now just an empty file.