...
Prerequisites
- install kubectl (guideguide)
- have an OpenStack password configured through the CloudVeneto dashboard.
...
Before to run the first pod you must create a node.
Configuring kubectl with the kubectl-iam plugin
Prerequisites
- install kubectl (guide)
- be registered in one of the supported IAM services: "https://iam.cloud.infn.it" or "https://iam.quantumtea.it".
Plugin installation
Download the kubectl-iam file and copy it to /usr/local/bin/ . You may need to make the file executable (chmod 755 kubectl-iam)
Usage
To view the syntax and the list of parameters use the help:
Code Block | ||||
---|---|---|---|---|
| ||||
$ kubectl-iam --help
Usage: ./kubectl-iam [FLAG] -iam-url <URL> -group <GROUP>
Options:
-force
overwrite the existing configuration
-group string
your IAM group
-iam-url string
the IAM url (default "https://iam.cloud.infn.it") |
The following example configures kubectl using IAM credentials:
Code Block | ||||
---|---|---|---|---|
| ||||
$ kubectl-iam -iam-url https://iam.quantumtea.it -group QST please open the link in your web browser: https://iam.quantumtea.it/device?user_code=BB3FXJ or scan the QR code █████████████████████████████████████████ █████████████████████████████████████████ ████ ▄▄▄▄▄ ██ █▀██▀▄█ ▄ ▄▄▄██ ▄▄▄▄▄ ████ ████ █ █ █ █ ▀▄█▄▀▄█▀█▄▄██ █ █ █ ████ ████ █▄▄▄█ █ ▀▀██▄▄▄▄█▀▀▄ █▀█ █▄▄▄█ ████ ████▄▄▄▄▄▄▄█ ▀ █ █ █ █▄▀ ▀ ▀ █▄▄▄▄▄▄▄████ ████▄█ ▄▄▄▀▀▀▄ █ ▄█ ▀▀▄▀██ ▄ ▀▀████ ████▀▄ ▀█▄█▀███▀ ▄ ▀█▀▀▀▀▄▀▀█ ▀ ▀████ ████▄▄▄▀▀▀▄▀▀▄▀ ▀▄ ▄▀▀█▄ ▄▄▄▄▀▄▄ ▀ ████ ████▀▄ ▄█ ▄█▀ ███ ▄▄▀█▄ ▀██ █ ▄█████ █████▀▄█▄▄▄ ██▀▄█▀▀▄▀▄▀▀ ▀▄ ▄▀ ▄ ▀▀ ████ ████ ▀ ▄▄█▄ ▀ ▄▄ ▀ ▀█▄█ ▀▄██ ▀ ▀█████ ████▀ ▀█ ▄▄▀▀▀▀ █▀ ▀▀▄▄▀▄ ▀▄▀██▄▀▄▀████ ████ █ ▀▀▀▄▀ ▄▀▀▀ ▄█▀█▄ ▀▀▄██▀▄ ▄ ▀ █████ ████▄████▄▄▄▀ ▄▀█▀ █ ▀█ █ ▄▄▄ █▀█▀████ ████ ▄▄▄▄▄ █▀▄▀█▄██▄ ▀█ █ █▄█ ▀ ▀████ ████ █ █ █ ▄██ ▄▀▄█▀██ ▄▀ ▄▄ ▀▀▀████ ████ █▄▄▄█ █▄██▄▀▄▄ ▄█▀▀█ ▄█▄▀▄▄▀ ██████ ████▄▄▄▄▄▄▄█▄█▄▄█▄▄▄█▄▄▄▄█▄▄▄██▄█▄█▄█████ █████████████████████████████████████████ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ .................................................................................. kubectl configured correctly |