abiosoft / abiosoft/colima

Cert authority error when using kubectl/kubernetes

Offen
#498 13 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Go
Sterne
30.8k
Forks
613
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

### Description

I'm not entirely sure this is a Colima issue but when starting a kubernetes cluster using the `--kubernetes` flag everything starts ok and the kube config is copied over properly to the host but I get `Unable to connect to the server: x509: certificate signed by unknown authority` when trying to run any commands using kubectl that require it to connect to the kubernetes node being run by colima.

### Version

Colima Version: 0.4.6
Lima Version: 0.13.0
Qemu Version: 7.1.0

### Operating System

- [ ] macOS Intel
- [X] macOS M1
- [ ] Linux

### Reproduction Steps

1. `brew install colima kubectl`
2. `colima start --runtime docker --kubernetes`
3. `kubectl get nodes`

### Expected behaviour

Kubectl should be able to connect and return the state of the colima kubernetes node.

### Additional context

I've looked through the issues on the k3s repo to see if its known issue there but i can't find anything concrete.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.