Giter VIP home page Giter VIP logo

Comments (6)

arkanmgerges avatar arkanmgerges commented on July 24, 2024

Hi based on SSH Connectivity Errors, I observed that docker was under installation, the process of rke_cluster is checking if docker is working, but docker at that time was not installed, because the installation was in progress. After the error I verified that docker was installed and I can docker ps from the ubuntu user. So I did the following to solve this issue:

in the file modules/rke/main.tf from line 54:
I've added delay_on_creation = var.delay_on_creation

resource "rke_cluster" "cluster" {
  # The following code was added 
  delay_on_creation = var.delay_on_creation
 

In the file modules/rke/variables.tf, I've added the variable delay_on_creation at the end of the file:

variable "delay_on_creation" {
  type = number
  default = 60
}

Then after applying to terraform, RKE was installed successfully.

I will leave this issue open, maybe somebody will add comment or other suggestions.

from terraform-openstack-rke.

remche avatar remche commented on July 24, 2024

Hi,

Thanks for the report. The module assumes that the image already has docker installed which makes its faster and more predictable. Packer is an easy way to cook your images

However, it should not be too complex to patch the wait_for_ssh resource to wait for docker running on host. Stay tuned ;)

from terraform-openstack-rke.

remche avatar remche commented on July 24, 2024

@arkanmgerges could you please try dac8ce0 ?

from terraform-openstack-rke.

arkanmgerges avatar arkanmgerges commented on July 24, 2024

Hi remche, thanks for the commit dac8ce0.

  1. BTW, where can I find a cloud image (ubuntu) that has already docker installed ?
  2. After installing Kubernetes using your code, where can I find 'kubeconfig', usually when running rke up --config ./rancher-cluster.yml, rke will create kube_config_rancher-cluster.yml as kubeconfig so I can use it with kubectl and helm for installing Rancher?

from terraform-openstack-rke.

remche avatar remche commented on July 24, 2024
1. BTW, where can I find a cloud image (ubuntu) that has already docker installed ?

You wont find such official images, my advice is to use Packer to cook yours. You can find a working packer file here.

2. After installing Kubernetes using your code, where can I find 'kubeconfig', usually when running `rke up --config ./rancher-cluster.yml`, rke will create kube_config_rancher-cluster.yml as kubeconfig so I can use it with `kubectl` and `helm` for installing Rancher?

Unless you specified write_kubeconfig = false, you should find in the path.root directory.

from terraform-openstack-rke.

arkanmgerges avatar arkanmgerges commented on July 24, 2024

Thanks a lot remche for your help.

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.