Comments (15)
@olberger Seems like there was an issue with kata-deploy. cri-o does not seem to be installed for some reason. You are doing this on the vagrant setup correct?
I was able to bring it up and curl the endpoint
clear@clr-01 ~/clr-k8s-examples $ kubectl logs -n kube-system kata-deploy-kxdff
copying kata artifacts onto host
Add Kata Containers as a supported runtime for CRIO:
[crio.runtime.runtimes.kata-qemu]
runtime_path = "/opt/kata/bin/kata-qemu"
[crio.runtime.runtimes.kata-fc]
runtime_path = "/opt/kata/bin/kata-fc"
node/clr-01 labeled
kata-deploy restart crio successfully
clear@clr-01 ~/clr-k8s-examples $ sudo systemctl status crio
● crio.service - Open Container Initiative Daemon
Loaded: loaded (/usr/lib/systemd/system/crio.service; enabled; vendor preset: disabled)
Drop-In: /usr/lib/systemd/system/crio.service.d
└─crio-clearlinux.conf
Active: active (running) since Fri 2019-04-19 17:17:03 WEST; 40s ago
Docs: https://github.com/kubernetes-sigs/cri-o
Main PID: 7493 (crio)
Tasks: 22
Memory: 80.2M
CGroup: /system.slice/crio.service
└─7493 /usr/bin/crio
clear@clr-01 ~/clr-k8s-examples $ kubectl apply -f tests/deploy-svc-ing/test-deploy-kata-qemu.yaml
clear@clr-01 ~/clr-k8s-examples $ kubectl get pod -owide
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
php-apache-kata-qemu-7d4647498f-9wzfc 1/1 Running 0 87s 10.244.0.6 clr-01 <none> <none>
clear@clr-01 ~/clr-k8s-examples $ curl -w "\n" -s $(kubectl get svc php-apache-kata-qemu | awk 'NR==2 {print $3}')
OK!
from cloud-native-setup.
Uh @krsna1729, I'm not sure... I'm following the instructions using create_stack.sh... and saw no traces of kata-deploy :-/
kubectl logs -n kube-system kata-deploy-kxdff won't return anything then...
from cloud-native-setup.
@olberger substitute without your pod name or else try this
clear@clr-01 ~ $ kubectl logs -n kube-system -l name=kata-deploy
copying kata artifacts onto host
Add Kata Containers as a supported runtime for CRIO:
[crio.runtime.runtimes.kata-qemu]
runtime_path = "/opt/kata/bin/kata-qemu"
[crio.runtime.runtimes.kata-fc]
runtime_path = "/opt/kata/bin/kata-fc"
node/clr-01 labeled
from cloud-native-setup.
also use ./create_stack.sh minimal
. You wont need the extra stuff for this test
from cloud-native-setup.
Hi.
Just did a create_stack.sh minimal again, and here's the output of :
clear@clr-01 ~/clr-k8s-examples $ kubectl logs -n kube-system -l name=kata-deploy
copying kata artifacts onto host
Add Kata Containers as a supported runtime for CRIO:
cp: cannot stat '/etc/crio/crio.conf': No such file or directory
from cloud-native-setup.
Not sure why crio folder does not exist. setup_system.sh
must have set everything up
clear@clr-01 ~ $ swupd search crio
Bundle with the best search result:
containers-basic - Run container applications from Dockerhub. (454MB) (installed)
clear@clr-01 ~ $ systemctl status crio
● crio.service - Open Container Initiative Daemon
Loaded: loaded (/usr/lib/systemd/system/crio.service; enabled; vendor preset: disabled)
Drop-In: /usr/lib/systemd/system/crio.service.d
└─crio-clearlinux.conf
Active: active (running) since Fri 2019-04-19 19:03:03 WEST; 2h 20min ago
Docs: https://github.com/kubernetes-sigs/cri-o
Main PID: 7481 (crio)
Tasks: 38
Memory: 1.1G
CGroup: /system.slice/crio.service
├─ 7481 /usr/bin/crio
├─15847 /usr/bin/socat - TCP4:localhost:3000
├─15855 /usr/bin/socat - TCP4:localhost:3000
├─15864 /usr/bin/socat - TCP4:localhost:3000
├─22842 /usr/bin/socat - TCP4:localhost:3000
├─22859 /usr/bin/socat - TCP4:localhost:3000
└─22872 /usr/bin/socat - TCP4:localhost:3000
clear@clr-01 ~ $ ls /etc/crio/
crio.conf crio.conf.bak
from cloud-native-setup.
$ swupd search crio
Bundle with the best search result:
containers-basic - Run container applications from Dockerhub. (454MB) (installed)
This bundle can be installed with:
swupd bundle-add containers-basic
and:
$ swupd info containers-basic
Installed version: 28950
Version URL: https://cdn.download.clearlinux.org/update/
Content URL: https://cdn.download.clearlinux.org/update/
$ systemctl status crio.service
● crio.service - Open Container Initiative Daemon
Loaded: loaded (/usr/lib/systemd/system/crio.service; enabled; vendor preset: disabled)
Drop-In: /usr/lib/systemd/system/crio.service.d
└─crio-clearlinux.conf
Active: active (running) since Fri 2019-04-19 22:27:47 WEST; 2min 1s ago
Docs: https://github.com/kubernetes-sigs/cri-o
Main PID: 2573 (crio)
Tasks: 12
Memory: 14.0M
CGroup: /system.slice/crio.service
└─2573 /usr/bin/crio
However, still:
$ sudo ls /etc/crio
ls: cannot access '/etc/crio': No such file or directory
from cloud-native-setup.
@olberger umm this is so weird. @ganeshmaharaj any ideas
from cloud-native-setup.
I think I nailed it : I had no nested KVM virtualization activated... which probably made the crio installation/restart fail.
from cloud-native-setup.
@olberger did you get it to work? I still do not understand why crio.conf is missing. it is independent of virtualization
from cloud-native-setup.
@olberger Are you still encountering this problem?
from cloud-native-setup.
The conf file does not exist after installing on a recent version of Clear with
sudo -E swupd bundle-add --quiet cloud-native-basic storage-utils
There is no /etc/crio
directory or conf file there but it does exist at /usr/share/defaults/crio/crio.conf
from cloud-native-setup.
I thought our system_setup was copying the file over by default to /etc/crio
. Also i thought crio would work by looking at /usr/share/defaults
too based on https://github.com/clearlinux-pkgs/cri-o/blob/master/0001-include-usr-share-defaults-in-conf-file-search.patch Is that no longer the case?
from cloud-native-setup.
I thought our system_setup was copying the file over by default to /etc/crio
Clear's kata-runtime package installs crio-set-runtime.service
which is run upon crio.service
restart. The conf file is created by crio-set-runtime
if /dev/kvm
exists.
from cloud-native-setup.
@olberger closing this as obsolete (file exists now). Please re-open if the issue persists for you.
from cloud-native-setup.
Related Issues (20)
- kubeadm yaml needs to be updated to match the version of k8s HOT 1
- setup_system.sh fails when OS version is specified and packages have been removed
- kubeadm displaying warnings HOT 2
- cilium CNI does not work with containerd
- Trying to setup k8s with cri-o and kata-fc runtime on bare metal without Vagrant HOT 3
- consider shallow git clone for create `get()` function
- create: should not print out 'Not-documented' in the help
- rook: fails to come up on single node cluster HOT 4
- Systemd level proxy instead of per service HOT 2
- Problems with no_proxy settings HOT 1
- Add information about Rook to readme
- Rook needs updates
- Does Kubernetes actually work now with Clear Linux? HOT 5
- Missing steps in Vagrant install document HOT 3
- create_stack.sh no longer works
- System level proxy breaks containerd HOT 2
- "swapoff -a" not persistent across reboot HOT 3
- crio runnner is not properly installed with setup_system.sh for automated installation of Kubernetes HOT 1
- vfioveth - POD with DPDK HOT 1
- No bundle update? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloud-native-setup.