Comments (5)
- Note that best practice is to use Packer to prepare your own Openstack image embedding docker instead of installing it at deploy time.
- If you want to install in an air gaped environment, you will have to cook an Openstack image embedding all RKE docker images (or use a private registry). See here for a Packer recipe that pull RKE images.
from terraform-openstack-rke.
Thank you @remche for your help!
If anyone needs a script to build an image with docker, here is a recipe for packer.io I wrote tonight. It builds an Ubuntu 20.04 with Docker.
docker.json
{ "builders": [ { "type": "openstack", "identity_endpoint": "https://identity.api.ams.fuga.cloud:443/v3", "ssh_username": "ubuntu", "image_name": "Ubuntu 20.04 LTS Docker", "source_image": "23970310-5513-470d-9ae0-dfffad57b3ac", "flavor": "p2.medium", "floating_ip_network": "bf66495a-4c0d-4725-88c0-462198f1b1fc", "networks": "bf66495a-4c0d-4725-88c0-462198f1b1fc", "security_groups": "Packer", "insecure": "true" } ], "provisioners": [ { "type": "shell", "inline": ["sleep 10"] }, { "type": "shell", "inline": ["echo 'the following file can be downloaded here: https://releases.rancher.com/install-docker/19.03.sh'"] }, { "type": "shell", "script": "19.03.sh" }, { "type": "shell", "inline": ["sudo usermod -aG docker ubuntu"] } ] }
You need to adjust
identity_endpoint: the endpoint of your openstack install
flavor: the flavor of the build machine
source_image: the ID of the Ubuntu 20.04 LTS image in Openstack
floating_ip_network and network: the ID of the "public" network
Create a sec group in Openstack with full ingress and egress rights, call it Packer.
Execute "wget https://releases.rancher.com/install-docker/19.03.sh"
Source your openrc.sh, then execute "/usr/bin/packer validate docker.json" and "/usr/bin/packer build docker.json"
from terraform-openstack-rke.
But there is still a question left for me: How do I assign a floatingip to the worker nodes automatically? I want them to have a floatingip too, not only the master nodes.
from terraform-openstack-rke.
@Linutux edge nodes are worker nodes that get a floating ip. Simply use them instead of worker nodes.
from terraform-openstack-rke.
Oh. Thanks!
from terraform-openstack-rke.
Related Issues (19)
- Octavia support HOT 2
- Cant downscale HOT 1
- On new installation get version conflict ..? HOT 1
- fails when not using ssh-agent HOT 4
- conditional cloud provider
- Disable kubeconfig file write
- Worker nodes array HOT 3
- Use terraform-docs
- add taint
- use_ssh_agent HOT 3
- Receiving errors HOT 6
- Code quality checks fail
- Terraform 0.13
- failed to run Kubelet: could not init cloud provider "openstack": Authentication failed HOT 1
- openstack built-in cloud provider is now deprecated. Please use 'external' cloud provider for openstack HOT 1
- Creating PVs fails when Openstack has multiple compute AZs, but only one storage AZ HOT 6
- Adding a worker doesn't add a node in RKE cluster HOT 6
- [bug] Error when enabling loadbalancer HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-openstack-rke.