Use a generated password for kube user (#1624)

Removed unnecessary root user
This commit is contained in:
Matthew Mosesohn
2017-09-06 20:20:25 +03:00
committed by GitHub
parent e26aec96b0
commit 7117614ee5
5 changed files with 29 additions and 14 deletions

View File

@@ -2,10 +2,12 @@
- hosts: kube-master
tasks:
- debug:
msg: "kube pass: {{ lookup('password', '../../credentials/kube_user length=15') }}"
- name: Check the API servers are responding
uri:
url: "https://{{ access_ip | default(ansible_default_ipv4.address) }}:{{ kube_apiserver_port }}/api/v1"
user: kube
password: changeme
password: "{{ lookup('password', '../../credentials/kube_user length=15') }}"
validate_certs: no
status_code: 200