mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
Merge pull request #40922 from berrange/hack-client-cert
Automatic merge from submit-queue local-up-cluster: fix instructions for set-credentials After launching the services, local-up-cluster.sh tells the user how to configure kubectl to access it. The instructions for 'set-credentials' enable plain password auth, but the services are configured to mandate client certificate auth. As a result it is not possible to access the cluster with the instructions printed. The use of client certs by default was added in commita1b17db458
Author: Dr. Stefan Schimanski <sttts@redhat.com> Date: Sat Nov 12 23:09:04 2016 +0100 Configure client certs in local-cluster-up.sh and the instructions were correctly updated to refer to client certificates. The changed instructions were (mistakenly) reverted though when the following commit was merged: commit72e0e91b5e
Author: xilabao <chenr.fnst@cn.fujitsu.com> Date: Fri Dec 2 11:04:25 2016 +0800 change prompt for enabling RBAC on local-up-cluster Fixes: #40192 Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
commit
1250278bf6
@ -458,8 +458,8 @@ function start_apiserver {
|
||||
AUTH_ARGS="--token=system:admin/system:masters"
|
||||
fi
|
||||
else
|
||||
# default to use basic authentication
|
||||
AUTH_ARGS="--username=admin --password=admin"
|
||||
# default to use certificate authentication
|
||||
AUTH_ARGS="--client-key=${CERT_DIR}/client-admin.key --client-certificate=${CERT_DIR}/client-admin.crt"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user