You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 22, 2018. It is now read-only.
- When you start the webhook process make sure you also have the following flags (in addition to the flags in the case of authentication)
44
+
*`--keystone-policy-file examples/policy.json`
45
+
46
+
## K8s kubectl Client configuration
47
+
48
+
### Old kubectl clients
49
+
34
50
- Run `openstack token issue` to generate a token
35
51
- Run `kubectl --token $TOKEN get po` or `curl -k -v -XGET -H "Accept: application/json" -H "Authorization: Bearer $TOKEN" https://localhost:6443/api/v1/namespaces/default/pods`
36
52
53
+
### New kubectl clients v1.8.0 and later
54
+
55
+
The client is able to read the `OS_` env variables used also by the openstackclient. You dont have to pass a token with `--token`, but the client will contact Keystone directly, will get a token and will use it. To configure the client to the following:
56
+
57
+
- Run `kubectl config set-credentials openstackuser --auth-provider=openstack`
58
+
59
+
This command creates the following entry in your ~/.kube/config
60
+
```
61
+
- name: openstackuser
62
+
user:
63
+
as-user-extra: {}
64
+
auth-provider:
65
+
name: openstack
66
+
```
67
+
- Run `kubectl config set-context --cluster=kubernetes --user=openstackuser openstackuser@kubernetes`
68
+
- Run `kubectl config use-context openstackuser@kubernetes` to activate the context
69
+
70
+
Source your env vars. Make sure you include `OS_DOMAIN_NAME` or the client will fallback to Keystone V2 that is not supported by the webhook.This env should be ok:
0 commit comments