Clean up debug in check apiserver test (#1638)
* Clean up debug in check apiserver test * Change password generation for kube_user Special characters are not allowed in known_users.csv file
This commit is contained in:
parent
079d317ade
commit
f29a42721f
2 changed files with 1 additions and 3 deletions
|
@ -40,7 +40,7 @@ kube_log_level: 2
|
||||||
|
|
||||||
# Users to create for basic auth in Kubernetes API via HTTP
|
# Users to create for basic auth in Kubernetes API via HTTP
|
||||||
# Optionally add groups for user
|
# Optionally add groups for user
|
||||||
kube_api_pwd: "{{ lookup('password', 'credentials/kube_user length=15') }}"
|
kube_api_pwd: "{{ lookup('password', 'credentials/kube_user length=15 chars=ascii_letters,digits') }}"
|
||||||
kube_users:
|
kube_users:
|
||||||
kube:
|
kube:
|
||||||
pass: "{{kube_api_pwd}}"
|
pass: "{{kube_api_pwd}}"
|
||||||
|
|
|
@ -2,8 +2,6 @@
|
||||||
- hosts: kube-master
|
- hosts: kube-master
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- debug:
|
|
||||||
msg: "kube pass: {{ lookup('password', '../../credentials/kube_user length=15') }}"
|
|
||||||
- name: Check the API servers are responding
|
- name: Check the API servers are responding
|
||||||
uri:
|
uri:
|
||||||
url: "https://{{ access_ip | default(ansible_default_ipv4.address) }}:{{ kube_apiserver_port }}/api/v1"
|
url: "https://{{ access_ip | default(ansible_default_ipv4.address) }}:{{ kube_apiserver_port }}/api/v1"
|
||||||
|
|
Loading…
Reference in a new issue