Closed nghiepvo-ohmidasvn closed 11 months ago
You're missing spec.network
hi @till I also update
....
k0s:
version: v1.28.4+k0s.0
config:
apiVersion: k0s.k0sproject.io/v1beta1
kind: ClusterConfig
metadata:
name: k0s-cluster
spec:
network:
images:
calico:
cni:
image: calico/cni
version: v3.26.4
still not working, could you please help me provide a example that it can work, because I don't see spec.network
on document https://github.com/k0sproject/k0sctl
@nghiepvo-ohmidasvn https://docs.k0sproject.io/v1.20.6+k0s.0/configuration/
@till could you make me a example for setup k0s with calico?
I just update with configuration, but it's still not work yet
k0s:
version: v1.28.4+k0s.0
config:
apiVersion: k0s.k0sproject.io/v1beta1
kind: ClusterConfig
metadata:
name: k0s-cluster
spec:
network:
provider: calico
Did you recreate your cluster, i.e. did a k0s reset
before applying the new config? As per the docs, changing the provider for an already provisioned cluster is not supported:
Note: Once you initialize the cluster with a network provider the only way to change providers is through a full cluster redeployment.
/cc k0sproject/k0s#3707
@twz123 yes, I did, and I also try new some vm for installation, it's not working too
What behavior do you observe? Can you maybe share the exact steps and their outcome? The config you shared works for me:
$ cat ./k0s.yaml
apiVersion: k0s.k0sproject.io/v1beta1
kind: ClusterConfig
metadata:
name: k0s-cluster
spec:
network:
provider: calico
$ docker run -d --name k0s --hostname k0s --privileged --cgroupns=host -v /sys/fs/cgroup:/sys/fs/cgroup:rw -v /var/lib/k0s -v $(pwd)/k0s.yaml:/etc/k0s/k0s.yaml:ro docker.io/k0sproject/k0s:v1.28.4-k0s.0
Unable to find image 'k0sproject/k0s:v1.28.4-k0s.0' locally
v1.28.4-k0s.0: Pulling from k0sproject/k0s
7264a8db6415: Pull complete
640ab3f7cbbc: Pull complete
9ff41aafc1e8: Pull complete
ddafc87b94d2: Pull complete
Digest: sha256:7c3fe432497827b556f6d8003a63862078971f72ad873c68e7bde8c7c68c3fbb
Status: Downloaded newer image for k0sproject/k0s:v1.28.4-k0s.0
e2ec2875325b1d10c33ab3675cc702e0e27d5937b0407a5d6b68b8c94ec1c7d1
And roughly a minute later:
$ docker exec k0s k0s kc get po -A
NAMESPACE NAME READY STATUS RESTARTS AGE
kube-system calico-kube-controllers-84c6cd5b85-b4r6z 1/1 Running 0 59s
kube-system calico-node-jjnrh 1/1 Running 0 54s
kube-system coredns-85df575cdb-kjmkq 1/1 Running 0 59s
kube-system konnectivity-agent-f7nsq 1/1 Running 0 54s
kube-system kube-proxy-ggksg 1/1 Running 0 53s
kube-system metrics-server-7556957bb7-n6fj9 1/1 Running 0 59s
thank you so much @twz123, the issue happen cause from template vm, I setup from ISO of linux distribution end to end, it's working fine, I will close issue. Thank @twz123 @till
my k0sctl.yaml file:
after install successful
and the calico still has not installed yet.