b648421624d551db7b5f41c189e4f7b650c0c041
devstack-plugin-container wrongfully assumes that the stack user name is also the name of the group under which install the docker daemon. This can cause devstack to install docker in such a way that the stack user does not have permissions to access the docker socket, as seen in [3]. [1] https://opendev.org/openstack/devstack-plugin-container [2] https://github.com/openstack/devstack-plugin-container/blob/f09c5c9/devstack/lib/docker#L27 [3] https://github.com/gophercloud/gophercloud/pull/2380#issuecomment-1094295137 Closes-Bug: 1970129 Change-Id: Id5f1fa24ebb09db10f0d56e4d6b111be66869b5a
Container Plugin
This plugin enables installation of container engine and Kubernetes on Devstack. The default container engine is Docker.
Enabling in Devstack
1. Download DevStack
For more info on devstack installation follow the below link:
2. Add this repo as an external repository
This plugin supports installing Kubernetes or container engine only. For installing container engine only, using the following config:
cat > /opt/stack/devstack/local.conf << END
[[local|localrc]]
enable_plugin devstack-plugin-container https://opendev.org/openstack/devstack-plugin-container
ENDFor installing Kata Containers, using the following config:
cat > /opt/stack/devstack/local.conf << END
[[local|localrc]]
enable_plugin devstack-plugin-container https://opendev.org/openstack/devstack-plugin-container
ENABLE_KATA_CONTAINERS=True
ENDFor installing Kubernetes, using the following config in master node:
cat > /opt/stack/devstack/local.conf << END
[[local|localrc]]
enable_plugin devstack-plugin-container https://git.openstack.org/openstack/devstack-plugin-container
enable_service etcd3
enable_service container
enable_service k8s-master
# kubeadm token generate
K8S_TOKEN="9agf12.zsu5uh2m4pzt3qba"
...
ENDAnd using the following config in worker node:
cat > /opt/stack/devstack/local.conf << END
[[local|localrc]]
SERVICE_HOST=10.0.0.11 # change this to controller's IP address
enable_plugin devstack-plugin-container https://git.openstack.org/openstack/devstack-plugin-container
enable_service container
enable_service k8s-node
# kubeadm token generate
K8S_TOKEN="9agf12.zsu5uh2m4pzt3qba"
...
END3. Run devstack
Description
Languages
Shell
100%