Skip to content

Instantly share code, notes, and snippets.

@itscaro
Last active January 27, 2018 00:08
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save itscaro/33990b04bd74f2195c16d57c3c2e7009 to your computer and use it in GitHub Desktop.
OpenShift with minishift - secured
# By default, minishift set up OpenShift with AllowAllPasswordIdentityProvider
# You can secure OpenShift with other identity provider like this
minishift start --vm-driver=hyperv --cpus=4 --memory=4GB
minishift ssh
vi /var/lib/minishift/openshift.local.config/master/master-config.yaml
# Modify in oauthConfig
# - challenge: true
# login: true
# mappingMethod: claim
# name: htpasswd
# provider:
# apiVersion: v1
# kind: HTPasswdPasswordIdentityProvider
# file: /var/lib/origin/openshift.local.config/htpasswd
vi /var/lib/minishift/openshift.local.config/htpasswd
# Add a credential
docker restart origin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment