Use kube_apiserver_port
This commit is contained in:
parent
4055980ce6
commit
f21f660cc5
3 changed files with 4 additions and 3 deletions
|
@ -47,7 +47,7 @@
|
|||
|
||||
- name: wait for the apiserver to be running (pulling image and running container)
|
||||
wait_for:
|
||||
port: 8080
|
||||
port: "{{kube_apiserver_insecure_port}}"
|
||||
delay: 10
|
||||
|
||||
- name: install required python module 'httplib2'
|
||||
|
|
|
@ -21,6 +21,7 @@ spec:
|
|||
- --tls-private-key-file={{ kube_cert_dir }}/apiserver-key.pem
|
||||
- --service-account-key-file={{ kube_cert_dir }}/apiserver-key.pem
|
||||
- --secure-port={{ kube_apiserver_port }}
|
||||
- --insecure-port={{ kube_apiserver_insecure_port }}
|
||||
{% if kube_api_runtime_config is defined %}
|
||||
{% for conf in kube_api_runtime_config %}
|
||||
- --runtime-config={{ conf }}
|
||||
|
|
|
@ -13,9 +13,9 @@ spec:
|
|||
- proxy
|
||||
- --v={{ kube_log_level | default('2') }}
|
||||
{% if inventory_hostname in groups['kube-master'] %}
|
||||
- --master=http://127.0.0.1:8080
|
||||
- --master=http://127.0.0.1:{{kube_apiserver_insecure_port}}
|
||||
{% else %}
|
||||
- --master=https://{{ groups['kube-master'][0] }}:{{kube_apiserver_port }}
|
||||
- --master=https://{{ groups['kube-master'][0] }}:{{kube_apiserver_port }}
|
||||
- --kubeconfig=/etc/kubernetes/node-kubeconfig.yaml
|
||||
{% endif %}
|
||||
securityContext:
|
||||
|
|
Loading…
Reference in a new issue