Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vagrant up failed #5

Open
120dev opened this issue Feb 25, 2023 · 0 comments
Open

vagrant up failed #5

120dev opened this issue Feb 25, 2023 · 0 comments

Comments

@120dev
Copy link

120dev commented Feb 25, 2023

Good morning,

Thank you for the info !! I'm getting into the K8 certif and I really like the idea of being able to deploy via vagrant to test.
However I have an error

TASK [kubernetes/master : Init Kubernetes cluster] *****************************
samedi 25 février 2023  17:34:21 +0100 (0:00:00.222)       0:01:02.596 ******** 
fatal: [k8s-master]: FAILED! => {"changed": true, "cmd": "kubeadm init --service-cidr 10.96.0.0/12             --kubernetes-version v1.20.11             --pod-network-cidr 10.244.0.0/16             --token b0f7b8.8d1767876297d85c             --apiserver-advertise-address 192.168.56.10             --cri-socket=/var/run/containerd/containerd.sock                          \n", "delta": "0:00:00.157446", "end": "2023-02-25 17:34:21.923438", "msg": "non-zero return code", "rc": 1, "start": "2023-02-25 17:34:21.765992", "stderr": "error execution phase preflight: [preflight] Some fatal errors occurred:\n\t[ERROR CRI]: container runtime is not running: output: time=\"2023-02-25T17:34:21+01:00\" level=fatal msg=\"validate service connection: CRI v1 runtime API is not implemented for endpoint \\\"unix:///var/run/containerd/containerd.sock\\\": rpc error: code = Unimplemented desc = unknown service runtime.v1.RuntimeService\"\n, error: exit status 1\n[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`\nTo see the stack trace of this error execute with --v=5 or higher", "stderr_lines": ["error execution phase preflight: [preflight] Some fatal errors occurred:", "\t[ERROR CRI]: container runtime is not running: output: time=\"2023-02-25T17:34:21+01:00\" level=fatal msg=\"validate service connection: CRI v1 runtime API is not implemented for endpoint \\\"unix:///var/run/containerd/containerd.sock\\\": rpc error: code = Unimplemented desc = unknown service runtime.v1.RuntimeService\"", ", error: exit status 1", "[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`", "To see the stack trace of this error execute with --v=5 or higher"], "stdout": "[init] Using Kubernetes version: v1.20.11\n[preflight] Running pre-flight checks", "stdout_lines": ["[init] Using Kubernetes version: v1.20.11", "[preflight] Running pre-flight checks"]}

PLAY RECAP *********************************************************************
k8s-master                 : ok=32   changed=19   unreachable=0    failed=1    skipped=6    rescued=0    ignored=0   

My stack ;

[d120@pc-68 kubeadm-automation]$ VBoxManage --version
7.0.6_rpmfusionr155176
[d120@pc-68 kubeadm-automation]$ pip3 --version
pip 22.2.2 from /usr/lib/python3.11/site-packages/pip (python 3.11)
[d120@pc-68 kubeadm-automation]$ python3 --version
Python 3.11.2
[d120@pc-68 kubeadm-automation]$ ansible --version
ansible [core 2.14.2]
  config file = /home/d120/WWWROOT/Labs/kubeadm-automation/ansible.cfg
  configured module search path = ['/home/d120/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.11/site-packages/ansible
  ansible collection location = /home/d120/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/bin/ansible
  python version = 3.11.2 (main, Feb  8 2023, 00:00:00) [GCC 12.2.1 20221121 (Red Hat 12.2.1-4)] (/usr/bin/python3)
  jinja version = 3.0.3
  libyaml = True
[d120@pc-68 kubeadm-automation]$ uname -a
Linux pc-68.home 6.1.13-200.fc37.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 22 17:53:57 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux (FEDORA 37)

I only changed the IP pool

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant