Deploying K8s over openstack using KubeNow
Hi All, I'm trying to deploy kubernetes cluster on my openstack devstack using KubeNow. I'm following this https://kubenow.readthedocs.io/en/stable/getting_started/prerequisites.html (KubeNow). Im doing the installation from devstack folder with stack user and start with docker installation 1. sudo docker pull kubenow/provisioners:0.3.2 2. source admin-openrc 3. sudo kn init openstack my_deployment In the my_deployment folder I edit the Terraform configuration template as per require. 4. The problem start when I'm using the command below to get floating_ip_pool and external_network_uuid of my openstack setting by running
sudo kn openstack network list
Error
'module' object has no attribute 'OpenStackConfigException'
. I know the setting can be get just by using openstack command but I just want to follow the guideline. To proceed I just use openstack command to get the details and proceed to execute the command below
sudo kn apply
Give error below
[stack@devstack my_deployment]$ sudo kn apply
Started script image-create-openstack
List images available in OpenStack...
You must provide a username via either --os-username or env[OS_USERNAME]
I have did the source and able to run openstack command .... but when I use kn ....... command it will give me error as per above example. FYI, I have to run with 'sudo' if not the installation will give permission error. I really need to deploy using KubeNow and please help me. Thank you.