DevStack plugin for installation of container engine
Go to file
Roman Dobosz aef3c9209b Fix the issue with default_sysctls for cri-o.
In earlier version of cri-o (at least that been seen in 1.18) cri-o
packages have default configuration stored as /etc/crio/crio.conf, with
all the default values defined. Setting a value for the key means that
was a need to actually change the default. In version up to 1.23 there
was even no configuration stored at all, but starting from 1.24, all the
default config options has been commented out, and only section names
are not commented.

Similar situation has been detected for registry configuration, but here
it is even more difficult, as in recent version toml format has been
used instead of ini.

With this patch all of the cases has been covered.

Change-Id: Ia1b3dee3979841e798cec11c02ba1412dccef6c2
2022-12-02 08:44:12 +01:00
devstack Fix the issue with default_sysctls for cri-o. 2022-12-02 08:44:12 +01:00
etc/cni/net.d Support enabling CRI for containerd 2020-02-10 03:31:11 +00:00
playbooks Add Kubernetes job 2019-06-17 02:22:33 +00:00
releasenotes/notes Add support for kata container 2019-07-08 05:28:19 +00:00
roles Add Kubernetes job 2019-06-17 02:22:33 +00:00
.gitignore Add bashate job 2020-04-25 22:58:54 +00:00
.gitreview OpenDev Migration Patch 2019-04-19 19:42:34 +00:00
.zuul.yaml Migrate devstack-plugin-container jobs to focal 2020-09-13 04:05:37 +00:00
CONTRIBUTING.rst [ussuri][goal] Update contributor documentation 2020-04-25 23:09:13 +00:00
README.rst Add support for kata container 2019-07-08 05:28:19 +00:00
tox.ini Bump min tox version to 3.18.0 2021-10-07 08:58:28 +00:00

README.rst

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:

https://docs.openstack.org/devstack/latest/

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
END

For 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
END

For 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"

...

END

And 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"

...

END

3. Run devstack

cd /opt/stack/devstack
./stack.sh