adamant-kite-43734
10/08/2024, 4:57 PMpowerful-librarian-10572
10/08/2024, 5:05 PMpowerful-librarian-10572
10/08/2024, 5:05 PMbest-address-42882
10/08/2024, 5:07 PMbest-address-42882
10/08/2024, 5:07 PMpowerful-librarian-10572
10/08/2024, 5:08 PMbest-address-42882
10/08/2024, 5:20 PMUnable to connect to the server: x509: certificate has expired or is not yet valid: current time 2024-10-08T13:16:37-04:00 is after 2024-10-04T17:49:46Z
chilly-art-66797
10/09/2024, 5:48 AMchilly-art-66797
10/09/2024, 5:51 AMchilly-art-66797
10/09/2024, 5:57 AMkubectl --insecure-skip-tls-verify
is not working for you, when you try to connect to a cluster via Rancher (which means the server:
section in your config file has the rancher address) you might try to launch an nginx proxy with a proper SSL in front of the docker container you already run in a docker-compose.
There are instructions in Rancher documentation how to backup and restore the docker container and even how to start it with externally provided certificates. Unfortunately I do not have them handy.
I can suggest what the documentation says:
The Rancher backup operator can be used to migrate Rancher from the single Docker container install to an installation on a high-availability Kubernetes cluster. For details, refer to the documentation on migrating Rancher to a new cluster.
and migrate to a single node Kubernetes cluster instead. Example of how I do this
https://managing.blue/2024/06/11/how-i-setup-rancher-these-days/chilly-art-66797
10/09/2024, 5:59 AMFor test and demonstration purposes, Rancher can be installed with Docker on a single node. A local Kubernetes cluster is installed in the single Docker container, and Rancher is installed on the local cluster.
which means that if you docker exec
in the container you most likely have access to helm and stuff and can do what @powerful-librarian-10572 suggestedchilly-art-66797
10/09/2024, 6:15 AM% docker run --privileged -d --restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher
:
: container with name clever_carson is created
:
% docker exec -it clever_carson bash
bash-4.4# kubectl get pod -n cattle-system
NAME READY STATUS RESTARTS AGE
helm-operation-9w7bb 0/2 Completed 0 2m13s
helm-operation-g2p5d 0/2 Completed 0 93s
helm-operation-jlvgg 0/2 Completed 0 87s
helm-operation-rwrj2 0/2 Completed 0 78s
helm-operation-wr9qd 0/2 Completed 0 47s
rancher-webhook-79f9f75864-vm8rc 1/1 Running 0 75s