From 30753cb4c52b70c53a37b294d778f9ffeeba6f8f Mon Sep 17 00:00:00 2001 From: Sergiusz Urbaniak Date: Fri, 19 May 2017 16:29:10 +0200 Subject: [PATCH] */config: compute service k8s IPs (#767) Fixes #642 --- Documentation/variables/config.md | 3 --- config.tf | 30 --------------------- examples/terraform.tfvars.aws | 12 --------- examples/terraform.tfvars.azure | 12 --------- examples/terraform.tfvars.metal | 12 --------- examples/terraform.tfvars.openstack-neutron | 12 --------- examples/terraform.tfvars.openstack-nova | 12 --------- modules/bootkube/assets.tf | 30 +++++++++++++++------ modules/bootkube/assets_tls.tf | 2 +- modules/bootkube/outputs.tf | 4 +++ modules/bootkube/variables.tf | 15 ----------- platforms/aws/main.tf | 4 +-- platforms/aws/tectonic.tf | 4 --- platforms/azure/main.tf | 4 +-- platforms/azure/tectonic.tf | 4 --- platforms/metal/matchers.tf | 4 +-- platforms/metal/tectonic.tf | 5 ---- platforms/openstack/neutron/main.tf | 8 ++---- platforms/openstack/nova/main.tf | 8 ++---- 19 files changed, 37 insertions(+), 148 deletions(-) diff --git a/Documentation/variables/config.md b/Documentation/variables/config.md index 36a5b67436..5f5be6eeff 100644 --- a/Documentation/variables/config.md +++ b/Documentation/variables/config.md @@ -23,9 +23,6 @@ This document gives an overview of variables used in all platforms of the Tecton | tectonic_etcd_count | The number of etcd nodes to be created. If set to zero, the count of etcd nodes will be determined automatically.

Note: This is currently only supported on AWS. | string | `0` | | tectonic_etcd_servers | (optional) List of external etcd v3 servers to connect with (hostnames/IPs only). Needs to be set if using an external etcd cluster.

Example: `["etcd1", "etcd2", "etcd3"]` | list | `` | | tectonic_experimental | If set to true, experimental Tectonic assets are being deployed. | string | `false` | -| tectonic_kube_apiserver_service_ip | The Kubernetes service IP used to reach kube-apiserver inside the cluster as returned by `kubectl -n default get service kubernetes`. | string | `10.3.0.1` | -| tectonic_kube_dns_service_ip | The Kubernetes service IP used to reach kube-dns inside the cluster as returned by `kubectl -n kube-system get service kube-dns`. | string | `10.3.0.10` | -| tectonic_kube_etcd_service_ip | The Kubernetes service IP used to reach self-hosted etcd inside the cluster as returned by `kubectl -n kube-system get service etcd-service`. | string | `10.3.0.15` | | tectonic_license_path | The path to the tectonic licence file.

Note: This field MUST be set manually prior to creating the cluster unless `tectonic_vanilla_k8s` is set to `true`. | string | `` | | tectonic_master_count | The number of master nodes to be created. This applies only to cloud platforms. | string | `1` | | tectonic_pull_secret_path | The path the pull secret file in JSON format.

Note: This field MUST be set manually prior to creating the cluster unless `tectonic_vanilla_k8s` is set to `true`. | string | `` | diff --git a/config.tf b/config.tf index 017cbd403b..cf82ad51fa 100644 --- a/config.tf +++ b/config.tf @@ -60,36 +60,6 @@ variable "tectonic_versions" { } } -variable "tectonic_kube_apiserver_service_ip" { - type = "string" - default = "10.3.0.1" - - description = <