Comments (6)
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.
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.
@arkanmgerges could you please try dac8ce0 ?
from terraform-openstack-rke.
Hi remche, thanks for the commit dac8ce0.
- BTW, where can I find a cloud image (ubuntu) that has already docker installed ?
- 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 withkubectl
andhelm
for installing Rancher?
from terraform-openstack-rke.
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.
Thanks a lot remche for your help.
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
- Code quality checks fail
- Terraform 0.13
- Install fails because no docker engine is installed HOT 5
- 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.