Ask Your Question

Deploying K8s over openstack using KubeNow

asked 2020-02-25 18:11:47 -0600

dz gravatar image

Hi All, I'm trying to deploy kubernetes cluster on my openstack devstack using KubeNow. I'm following this (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


    '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.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2020-02-26 01:09:29 -0600

dz gravatar image

Problem resolved by adding stack onto docker group. This is to grants permission to the socket of docker at /var/run/docker.sock. Now able to to run kubernetes command and deployed kubernetes cluster. Thank you

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2020-02-25 18:11:47 -0600

Seen: 95 times

Last updated: Feb 25 '20