Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • kubectl-openstack: This plugin is required for all users registered with CloudVeneto and is based on the OpenStack authentication model, using the Keystone token.

  • kubectl-iam: This plugin is required for all INFN-PD users external not registered to CloudVeneto, who are registered with one of the IAM services supported by our cluster (by default. Supported IAM services are: "https://iam.cloud.infn.it" and "https://iam.quantumtea.it"). QUESTO PUNTO VA CHIARITO

Configuring kubectl with the kubectl-openstack plugin

Prerequisites

  • install kubectl (guideguide)
  • have an OpenStack password configured through the CloudVeneto dashboard.

...

Code Block
languagebash
themeMidnight
$ kubectl-openstack --help
Usage: kubectl-openstack [FLAG] -user <USERNAME> -password <PASSOWRD> -project <PROJECT>

Options:
  -force
    	overwrite the existing configuration
  -password string
    	your CloudVeneto password
  -project string
    	your CloudVeneto project
  -user string
    	your CloudVeneto username

The following example configures kubectl selecting CMS as project:

Code Block
languagebash
themeMidnight
$ kubectl-openstack -user zangrand@infn.it -password ******** -project CMS
kubectl configured correctly

After configuring kubectl with the kubectl-openstack plugin, the kubeconfig file (/home/<username>/.kube/config) is either created or updated if it already exists. This file contains the Keystone token and various parameters essential for kubectl to manage authentication.

In scenarios where you belong to multiple CloudVeneto projects, you can utilize the 'kubectl-openstack' command to configure kubectl for all your projects seamlessly.

The following example configures kubectl selecting CMS as projectNow you can access the CaaS:

Code Block
languagebash
themeMidnight
$ kubectl-openstack -user zangrand@infn.it -password ******** -project CMS
kubectl configured correctly

Now you can access the CaaS:

Code Block
languagebash
themeMidnight
$ kubectl get pods
No get pods
No resources found in cms namespace.

...

Prerequisites

...

Code Block
languagebash
themeMidnight
$ 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") 

After configuring kubectl with the kubectl-iam plugin, the kubeconfig file (/home/<username>/.kube/config) is either created or updated if it already exists. This file contains the IAM token and various parameters essential for kubectl to manage authentication.

In scenarios where you belong to multiple CloudVeneto projects, you can utilize the 'kubectl-iam' command to configure kubectl for all your projects seamlessly.

The following example configures kubectl using IAM credentials:

...