Skip to content

Instantly share code, notes, and snippets.

@vnugent
Last active November 18, 2015 18:47
Show Gist options
  • Save vnugent/50eb01aabe4a8da58270 to your computer and use it in GitHub Desktop.
Save vnugent/50eb01aabe4a8da58270 to your computer and use it in GitHub Desktop.

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>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment