forked from openstack/kuryr-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge "Improve nested k8s devstack install mechanism"
- Loading branch information
Showing
4 changed files
with
14 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,15 +72,12 @@ running. 4GB memory and 2 vCPUs, is the minimum resource requirement for the VM: | |
|
||
2. Launch a VM with `Neutron trunk port. <https://wiki.openstack.org/wiki/Neutron/TrunkPort>`_ | ||
3. Inside VM, install and setup Kubernetes along with Kuryr using devstack: | ||
- Since undercloud Neutron will be used by pods, neutron services should be | ||
- Since undercloud Neutron will be used by pods, Neutron services should be | ||
disabled in localrc. | ||
- git clone kuryr-kubernetes at ``/opt/stack/``. | ||
- In the ``devstack/plugin.sh``, comment out `configure_neutron_defaults <https://github.com/openstack/kuryr-kubernetes/blob/master/devstack/plugin.sh#L453>`_. | ||
This method is getting UUID of default Neutron resources project, pod_subnet etc. using local neutron client | ||
and setting those values in ``/etc/kuryr/kuryr.conf``. | ||
This will not work at the moment because Neutron is running remotely. Thats why this is being commented out | ||
and manually these variables will be configured in ``/etc/kuryr/kuryr.conf`` | ||
- Run devstack with ``devstack/local.conf.pod-in-vm.overcloud.sample``. | ||
With this config devstack will not configure Neutron resources for the | ||
local cloud. These variables have to be added manually | ||
to ``/etc/kuryr/kuryr.conf``. | ||
4. Once devstack is done and all services are up inside VM: | ||
- Configure ``/etc/kuryr/kuryr.conf`` to set UUID of Neutron resources from undercloud Neutron:: | ||
|
||
|
@@ -103,7 +100,9 @@ running. 4GB memory and 2 vCPUs, is the minimum resource requirement for the VM: | |
driver = kuryr.lib.binding.drivers.vlan | ||
link_iface = <VM interface name eg. eth0> | ||
|
||
- Restart kuryr-k8s-controller from within devstack screen. | ||
- Restart kuryr-k8s-controller:: | ||
|
||
sudo systemctl restart [email protected] | ||
|
||
Now launch pods using kubectl, Undercloud Neutron will serve the networking. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters