Questions tagged [rancher]

30 questions
3
votes
0 answers

k3s without HA: how to switch master node?

Rancher documentation on k3s is quite nice and its HA support (both with external DB or embedded etcd) look nice, but I don't want/need an HA setup. In case my master node fails, I don't mind having downtime while I re-create it or make a master out…
2
votes
0 answers

Find out specific Rancher RKE K8s image versions

I am wondering where I can find which containers versions will be deployed when I install a K8s Cluster with the following version…
Shurkan2
  • 21
  • 2
2
votes
1 answer

Rancher x509 Certificate Expired yet not

When running kubectl, I get the error Unable to connect to the server: x509: certificate has expired or is not yet valid: current time 2021-10-05T11:59:14-04:00 is after 2021-09-29T19:21:40Z So clearly it says the cert is expired. Only problem is…
cclloyd
  • 623
1
vote
0 answers

kubectl suddenly cannot authenticate on rancher k3s

I have a Rancher k3s cluster running for 2 years already. I am regularly updating by kubectl command line. Today I get the error E0321: err="couldn't get current server API group list: the server has asked for the client to provide…
1
vote
1 answer

Issues Adding Non-Hetzner Provider Nodes to Rancher Cluster: Stuck at "Waiting for agent to check in and apply initial plan"

I have successfully deployed a Rancher server on one out of five servers obtained from Hetzner. For the cluster configuration, I designated one of the remaining servers for the control plane and etcd roles, and the other three servers were set up as…
1
vote
0 answers

OpenSSL issue with Rancher/Kubernetes cluster on RHEL 8

So we are working on setting up a big Rancher/Kubernetes cluster on a bunch of RHEL 8 servers. We have everything installed and have Rancher running on a 3 node cluster behind a load balancer. The issue we are running into is enrolling the other…
1
vote
1 answer

Create Rancher API Key with kubectl

Given access to the kubernetes cluster, but no API key, how can I programatically create a API key for rancher server? The method described in documentation here requires a password login an a web browser. I would like to get the same outcome…
1
vote
0 answers

rke2 ingress-nginx default ssl certificate

I asked this here yesterday. Can anyone advise how to apply the default ssl certificate to ingress-nginx on rke2? I followed the doc at https://docs.rke2.io/networking/#nginx-ingress-controller I imported the TLS certificate into a secret I created…
crowne
  • 115
1
vote
0 answers

Controlling Egress calls of kubernetes pods based on intermediate host file

Can I modify and use /etc/host.allow file or something similar to restrict the outgoing (egress) calls from my kubernetes pods. If there is intermediate lookup happening while making an egress call from pod to external domain(lets say google.com),…
solveit
  • 265
1
vote
0 answers

Coredns ACL plugin for restricting domain from Kubernetes Pod

How can I use use coredns acl plugin for the domain based access [blocking/allowing] the egress calls ? As per my use case I want to control the outgoing calls from my pod. something like this : . { acl { allow net stackoverflow.com …
solveit
  • 265
0
votes
1 answer

Failing to Install CSI and CPI drivers in Rancher cluster

I'm working with a Rancher-managed Kubernetes cluster consisting of Linux nodes, all of which are in the "Running" state. I'm trying to install the Cloud Provider Interface (CPI) and Container Storage Interface (CSI) drivers through UI. The…
Riyo
  • 1
0
votes
1 answer

Rancher Fleet is ignoring no proxy settings on my RKE2 cluster

On my multi-node RKE2 cluster I have been trying to deploy a gitrepo fleet resource, but when the system tries to get the repository, it tries going through the https proxy, which blocks communication to that repository. The events page is shown…
0
votes
0 answers

How to ensure a rancher managed virtual machine will be assigned to a certain host?

I have a 4-node HarvesterHCI cluster up and running. One node is equipped with dedicated hardware (GPU) which is not present on the other 3 nodes. Rancher is installed as the management solution to allow the automatic deployment of kubernetes…
KDW
  • 101
0
votes
0 answers

Rancher: Create custom K3S cluster from REST API

I want to create custom K3S clusters using rancher but without using the UI. My goal is to only call the rancher API to create the cluster on the tool and get the command to run on my nodes. I basically found all required endpoints, but the one used…
0
votes
0 answers

K3s access computers on ohter networks

0 I'm learning to work with k3s and rancher, and from my workers, I can connect to other machines that are outside the network of the workers but from the pods that are inside them, I can only access the computer that are on the same network of the…
Camadas
  • 119
1
2