134
edits
Mich181189 (talk | contribs) No edit summary |
Mich181189 (talk | contribs) No edit summary |
||
| Line 46: | Line 46: | ||
First, go get kubectl (preferably version 1.22.4 which, at the time of writing this, is the version the cluster runs) https://kubernetes.io/docs/tasks/tools/ | First, go get kubectl (preferably version 1.22.4 which, at the time of writing this, is the version the cluster runs) https://kubernetes.io/docs/tasks/tools/ | ||
Now go get the binary for your OS from https://github.com/londonhackspace/kube-auth-handler/releases/ and put it somewhere on your PATH as <code>ldap-kube-auth</code> | Now go get the binary for your OS from https://github.com/londonhackspace/kube-auth-handler/releases/ and put it somewhere on your PATH as <code>ldap-kube-auth</code> (or on Windows <code>ldap-kube-auth.exe</code> - you might just want to put it next to kubectl and run it from that directory, at least to get going) | ||
'''Note: This is only tested on Linux so far, but should work on any OS supported by kubectl, possibly with some tweaks.''' | Other filenames and paths would work, but you'll need to modify the config file below in that case. | ||
'''Note: This is only tested on Linux and Windows so far, but should work on any OS supported by kubectl, possibly with some tweaks.''' | |||
Now stick the following in $HOME/.kube/config (if you already have a config in there, you'll need to merge them) | Now stick the following in $HOME/.kube/config (if you already have a config in there, you'll need to merge them) | ||
| Line 72: | Line 74: | ||
user: | user: | ||
exec: | exec: | ||
command: | command: ldap-kube-auth | ||
env: | env: | ||
- name: AUTH_CLUSTER | - name: AUTH_CLUSTER | ||