Giter VIP home page Giter VIP logo

Comments (5)

remche avatar remche commented on July 24, 2024
  1. Note that best practice is to use Packer to prepare your own Openstack image embedding docker instead of installing it at deploy time.
  2. 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.

Linutux avatar Linutux commented on July 24, 2024

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.

Linutux avatar Linutux commented on July 24, 2024

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.

remche avatar remche commented on July 24, 2024

@Linutux edge nodes are worker nodes that get a floating ip. Simply use them instead of worker nodes.

from terraform-openstack-rke.

Linutux avatar Linutux commented on July 24, 2024

Oh. Thanks!

from terraform-openstack-rke.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.