2018-04-21 04:34:11 +00:00
|
|
|
# Kube Auth
|
|
|
|
|
|
|
|
## Requirements
|
|
|
|
|
|
|
|
- Have `kubectl` working against minikube
|
|
|
|
|
|
|
|
## Theory
|
|
|
|
|
|
|
|
- https://kubernetes.io/docs/admin/authentication/
|
|
|
|
- https://jvns.ca/blog/2017/08/05/how-kubernetes-certificates-work/
|
|
|
|
|
|
|
|
## Practice
|
|
|
|
|
|
|
|
- Figure out how kubernetes authentication works
|
|
|
|
|
|
|
|
Try by running the following commands:
|
|
|
|
|
2018-04-21 10:36:05 +00:00
|
|
|
- `kubectl config view`
|
|
|
|
- `kubectl cluster-info`
|
|
|
|
- `kubectl proxy`
|
|
|
|
- `minikube dashboard --url`
|
|
|
|
- `kube auth can-i [verb] [resource]`
|
2018-04-21 04:34:11 +00:00
|
|
|
|
|
|
|
Try figuring out what command line flags the minikube
|
|
|
|
server was started with and use that to figure out what
|
|
|
|
authentication methods does it support.
|