From 2304fecdd9d00e2a394cbcda82a91a252a5fe36d Mon Sep 17 00:00:00 2001 From: Gregory Storme Date: Tue, 16 May 2017 01:38:46 +0200 Subject: [PATCH] Revert "Change for the kube_apiserver_insecure_port parameter to use the defined variable" This reverts commit fabc9017a469393c77d4bce5d72261550cc64d96. --- roles/kubernetes-apps/ansible/tasks/main.yml | 2 +- roles/kubernetes-apps/ansible/templates/kubedns-deploy.yml | 6 +++--- roles/kubernetes/master/handlers/main.yml | 2 +- .../master/templates/manifests/kube-apiserver.manifest.j2 | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/roles/kubernetes-apps/ansible/tasks/main.yml b/roles/kubernetes-apps/ansible/tasks/main.yml index cd7069831..ed0d11f28 100644 --- a/roles/kubernetes-apps/ansible/tasks/main.yml +++ b/roles/kubernetes-apps/ansible/tasks/main.yml @@ -1,7 +1,7 @@ --- - name: Kubernetes Apps | Wait for kube-apiserver uri: - url: http://localhost:{{ kube_apiserver_insecure_port }}/healthz + url: http://localhost:8080/healthz register: result until: result.status == 200 retries: 10 diff --git a/roles/kubernetes-apps/ansible/templates/kubedns-deploy.yml b/roles/kubernetes-apps/ansible/templates/kubedns-deploy.yml index 59d377f2e..1bae177d3 100644 --- a/roles/kubernetes-apps/ansible/templates/kubedns-deploy.yml +++ b/roles/kubernetes-apps/ansible/templates/kubedns-deploy.yml @@ -38,7 +38,7 @@ spec: livenessProbe: httpGet: path: /healthz - port: {{ kube_apiserver_insecure_port }} + port: 8080 scheme: HTTP initialDelaySeconds: 60 timeoutSeconds: 5 @@ -107,9 +107,9 @@ spec: memory: 50Mi args: - -cmd=nslookup kubernetes.default.svc.{{ dns_domain }} 127.0.0.1 >/dev/null && nslookup kubernetes.default.svc.{{ dns_domain }} 127.0.0.1:10053 >/dev/null - - -port={{ kube_apiserver_insecure_port }} + - -port=8080 - -quiet ports: - - containerPort: {{ kube_apiserver_insecure_port }} + - containerPort: 8080 protocol: TCP dnsPolicy: Default # Don't use cluster DNS. diff --git a/roles/kubernetes/master/handlers/main.yml b/roles/kubernetes/master/handlers/main.yml index e408ce04e..94cec7d1b 100644 --- a/roles/kubernetes/master/handlers/main.yml +++ b/roles/kubernetes/master/handlers/main.yml @@ -39,7 +39,7 @@ - name: Master | wait for the apiserver to be running uri: - url: http://localhost:{{ kube_apiserver_insecure_port }}/healthz + url: http://localhost:8080/healthz register: result until: result.status == 200 retries: 20 diff --git a/roles/kubernetes/master/templates/manifests/kube-apiserver.manifest.j2 b/roles/kubernetes/master/templates/manifests/kube-apiserver.manifest.j2 index 6935fbfb6..b0f1a2f53 100644 --- a/roles/kubernetes/master/templates/manifests/kube-apiserver.manifest.j2 +++ b/roles/kubernetes/master/templates/manifests/kube-apiserver.manifest.j2 @@ -92,7 +92,7 @@ spec: httpGet: host: 127.0.0.1 path: /healthz - port: {{ kube_apiserver_insecure_port }} + port: 8080 initialDelaySeconds: 30 timeoutSeconds: 10 volumeMounts: