https://rancher.com/ logo
#general
Title
# general
a

astonishing-machine-76195

12/30/2022, 12:16 AM
Hey all - I’m hoping this is a stupid question. I’m running a POC using a standalone docker installation… very vanilla installation:
Copy code
community.general.docker_container:
      name: rancher
      image: rancher/rancher:stable
      ports:
      - "80:80"
      - "443:443"
      volumes:
      - /opt/rancher:/var/lib/rancher
      restart_policy: unless-stopped
      privileged: yes
When I try to build a cluster, I get:
Copy code
failed to create fleet-default/islab-kc01 <http://cluster.x-k8s.io/v1beta1|cluster.x-k8s.io/v1beta1>, Kind=Cluster for rke-cluster fleet-default/islab-kc01: Internal error occurred: failed calling webhook "<http://default.cluster.cluster.x-k8s.io|default.cluster.cluster.x-k8s.io>": failed to call webhook: Post "<https://webhook-service.cattle-system.svc:443/mutate-cluster-x-k8s-io-v1beta1-cluster?timeout=10s>": service "webhook-service" not found
It’s RKE2 and all the cluster settings are default.
Solved. Dumb problem.
m

microscopic-easter-64692

01/03/2023, 12:21 PM
What was the fix please? I'm receiving the same error but on a K8's Cluster
a

astonishing-machine-76195

01/03/2023, 1:45 PM
@microscopic-easter-64692 it was embarrassingly dumb. DiskPressure taint on the k3s node it spins up in docker was preventing pod scheduling. I had it in my mind that there was no way the DiskPressure taint was valid so I just kept on as if it wasn’t telling me exactly what the problem was.
m

microscopic-easter-64692

01/03/2023, 2:22 PM
Ahhh I see, I've been using helm to provision.. so will output the deployment to a yaml file and see whether there is any issues with the specs! Thanks 🙂
70 Views