Enable simple htpasswd in ansible inventory file
[OSEv3:vars]
...
# htpasswd auth
openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider', 'filename': '/etc/origin/htpasswd'}]
Generate password file
for i in 1 2 3; do htpasswd -b /etc/origin/htpasswd user$i <put_clear_text_here>; done
Run ansible https://github.com/openshift/openshift-ansible
Registry and Router
oadm registry --config=/etc/origin/master/admin.kubeconfig \
--credentials=/etc/origin/master/openshift-registry.kubeconfig
oadm router router --credentials='/etc/origin/master/openshift-router.kubeconfig' \
--service-account=router
Optional subdomain setup:
# /etc/origin/master/master-config.yaml
...
routingConfig:
subdomain: "<your subdomain here>"