Closed radumalica closed 1 month ago
@radumalica thanks for the report.
crictl ps -a
journalctl -f -u rke2-server
cat /var/lib/rancher/rke2/agent/logs/kubelet.log
cat /var/lib/rancher/rke2/agent/containerd/containerd.log
Issue can be closed, there were 2 issues on my side
Now everything deployed correctly
Still, there are no LBs deployed, I reckon that LB will get deployed once an ingress controller is deployed on RKE2 ?
@radumalica thanks for providing those useful details! Correct, the load-balancer will be deployed when you open a load-balancer within Kubernetes or you can provision one using IaC aside of the module, and then use the following annotations on the load-balancers to share the same one loadbalancer.openstack.org/load-balancer-id
.
HI
I cloned the repo and modified the single server example, after a while, the master is created (bootstrap=true), 2 agents, sec groups and everything, but the k8s VIP port is down (192.168.42.4) . Floating IP is created, associated to 42.2 but nothing happens next.
I get this indefinitely
module.rke2.null_resource.write_kubeconfig[0]: Still creating... [4m40s elapsed] module.rke2.null_resource.write_kubeconfig[0] (local-exec): Wait rke2.yaml generation module.rke2.null_resource.write_kubeconfig[0]: Still creating... [4m50s elapsed] module.rke2.null_resource.write_kubeconfig[0] (local-exec): Wait rke2.yaml generation module.rke2.null_resource.write_kubeconfig[0]: Still creating... [5m0s elapsed] module.rke2.null_resource.write_kubeconfig[0] (local-exec): Wait rke2.yaml generation module.rke2.null_resource.write_kubeconfig[0]: Still creating... [5m10s elapsed] module.rke2.null_resource.write_kubeconfig[0] (local-exec): Wait rke2.yaml generation module.rke2.null_resource.write_kubeconfig[0]: Still creating... [5m20s elapsed] module.rke2.null_resource.write_kubeconfig[0] (local-exec): Wait rke2.yaml generation module.rke2.null_resource.write_kubeconfig[0]: Still creating... [5m30s elapsed] module.rke2.null_resource.write_kubeconfig[0] (local-exec): Wait rke2.yaml generation module.rke2.null_resource.write_kubeconfig[0]: Still creating... [5m40s elapsed] module.rke2.null_resource.write_kubeconfig[0] (local-exec): Wait rke2.yaml generation module.rke2.null_resource.write_kubeconfig[0]: Still creating... [5m50s elapsed]
Also, no LB gets created with this TF example.
ports list in the newly created network for k8s:
Floating ip :
As a side note, the 10.240.0.0/24 (FIP) called "external_nat_ipv4" in Openstack is reachable by the box from where i am running Terraform.
This is a fresh deployment with your github code, not an upgrade.
The openstack environment works correctly, I have production VMs on it, Load Balancers, etc. Here it seems that it might have to do with creating the dummy port :
resource "openstack_networking_port_v2" "dummy" {
Here is my complete file: