diff --git a/environments/dev/group_vars/k8s-cluster.yml b/environments/dev/group_vars/k8s-cluster.yml index a88e0402a640a0fa51425799916ac9dee0e02ac8..d18f4d873b0723b0d3652d2091c4ceddee327f0a 100644 --- a/environments/dev/group_vars/k8s-cluster.yml +++ b/environments/dev/group_vars/k8s-cluster.yml @@ -35,6 +35,10 @@ peer_with_router: false # Warning : enabling router peering will disable calico's default behavior ('node mesh'). # The subnets of each nodes will be distributed by the datacenter router +# The port the API Server will be listening on. +kube_master_port: 443 # (https) +kube_master_insecure_port: 8080 # (http) + # Internal DNS configuration. # Kubernetes can create and mainatain its own DNS server to resolve service names # into appropriate IP addresses. It's highly advisable to run such DNS server, diff --git a/environments/production/group_vars/k8s-cluster.yml b/environments/production/group_vars/k8s-cluster.yml index 222f7613cbb750cb488355fca0cb4cade9099a8e..efaf3cca6bb15b05579a4ecb84f10840676cf596 100644 --- a/environments/production/group_vars/k8s-cluster.yml +++ b/environments/production/group_vars/k8s-cluster.yml @@ -35,6 +35,10 @@ # Warning : enabling router peering will disable calico's default behavior ('node mesh'). # The subnets of each nodes will be distributed by the datacenter router +# The port the API Server will be listening on. +# kube_master_port: 443 # (https) +# kube_master_insecure_port: 8080 # (http) + # Internal DNS configuration. # Kubernetes can create and mainatain its own DNS server to resolve service names # into appropriate IP addresses. It's highly advisable to run such DNS server, diff --git a/roles/kubernetes/common/defaults/main.yml b/roles/kubernetes/common/defaults/main.yml index f644baeabde8ddc02e2732b5f2c66d6a2c412bdf..f25f2b8027642306130d5436efe3431d4edf1a5f 100644 --- a/roles/kubernetes/common/defaults/main.yml +++ b/roles/kubernetes/common/defaults/main.yml @@ -11,9 +11,6 @@ kube_script_dir: "{{ bin_dir }}/kubernetes-scripts" # look in here. Don't do it. kube_config_dir: /etc/kubernetes -# The port the API Server will be listening on. -kube_master_port: 443 - # This is where all the cert scripts and certs will be located kube_cert_dir: "{{ kube_config_dir }}/certs"