dear all
i install calico pluig in minikube(macos), and pod are all running.
$ k version
WARNING: This version information is deprecated and will be replaced with the output from kubectl version --short. Use --output=yaml|json to get the full version.
Client Version: version.Info{Major:"1", Minor:"26", GitVersion:"v1.26.3", GitCommit:"9e644106593f3f4aa98f8a84b23db5fa378900bd", GitTreeState:"clean", BuildDate:"2023-03-15T13:40:17Z", GoVersion:"go1.19.7", Compiler:"gc", Platform:"darwin/amd64"}
Kustomize Version: v4.5.7
Server Version: version.Info{Major:"1", Minor:"26", GitVersion:"v1.26.1", GitCommit:"8f94681cd294aa8cfd3407b8191f6c70214973a4", GitTreeState:"clean", BuildDate:"2023-01-18T15:51:25Z", GoVersion:"go1.19.5", Compiler:"gc", Platform:"linux/amd64"}
$ calicoctl version
Client Version: v3.24.5
Git commit: f1a1611ac
Cluster Version: v3.24.5
Cluster Type: k8s,bgp,kubeadm,kdd
$ k get pod -n kube-system
NAME READY STATUS RESTARTS AGE
calico-kube-controllers-7bdbfc669-6fkbf 1/1 Running 0 13h
calico-node-n67zb 1/1 Running 0 13h
calicoctl 1/1 Running 0 35m
coredns-787d4945fb-b26zf 1/1 Running 0 13h
etcd-calico 1/1 Running 3 (12h ago) 13h
kube-apiserver-calico 1/1 Running 3 (12h ago) 13h
kube-controller-manager-calico 1/1 Running 3 (12h ago) 13h
kube-proxy-xzhmw 1/1 Running 3 (12h ago) 13h
kube-scheduler-calico 1/1 Running 4 (12h ago) 13h
storage-provisioner 1/1 Running 5 (79m ago) 13h
i got two problems:
$ calicoctl node status
Error executing command: 'calicoctl node' commands are not available on this OS
$ cat calicoctl.sh
kubectl exec -ti -n kube-system calicoctl -- /calicoctl "$@"
$ ./calicoctl.sh node status
Calico process is not running.
command terminated with exit code 1
then i read the source code, the first is ok, the code shows that it does not support node command。
but the second error happens when there is no process in calico-node pod, but i enter the pod ,and they are all running。
// For older versions of calico/node, the process was called `calico-felix`. Newer ones use `calico-node -felix`.
if !psContains([]string{"calico-felix"}, processes) && !psContains([]string{"calico-node", "-felix"}, processes) {
// Return and print message if calico-node is not running
return fmt.Errorf("Calico process is not running.")
}
is it a bug? what should i do to solve this problem?
dear all i install calico pluig in minikube(macos), and pod are all running.
i got two problems:
then i read the source code, the first is ok, the code shows that it does not support node command。 but the second error happens when there is no process in calico-node pod, but i enter the pod ,and they are all running。
is it a bug? what should i do to solve this problem?