File tree Expand file tree Collapse file tree 3 files changed +18
-4
lines changed Expand file tree Collapse file tree 3 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -296,6 +296,7 @@ jobs:
296296 - archlinux.yaml
297297 - opensuse.yaml
298298 - docker.yaml
299+ - k8s.yaml
299300 - ../hack/test-templates/alpine-iso-9p-writable.yaml # Covers alpine-iso.yaml
300301 - ../hack/test-templates/net-user-v2.yaml
301302 - ../hack/test-templates/test-misc.yaml # TODO: merge net-user-v2 into test-misc
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ declare -A CHECKS=(
4545 [" systemd-strict" ]=" 1"
4646 [" mount-home" ]=" 1"
4747 [" container-engine" ]=" 1"
48+ [" k8s" ]=" "
4849 [" restart" ]=" 1"
4950 # snapshot tests are too flaky (especially with archlinux)
5051 [" snapshot-online" ]=" "
@@ -77,9 +78,9 @@ case "$NAME" in
7778 CHECKS[" container-engine" ]=
7879 [ " $NAME " = " alpine-iso-9p-writable" ] && CHECKS[" mount-path-with-spaces" ]=" 1"
7980 ;;
80- " k3s" )
81- ERROR " File \" $FILE \" is not testable with this script "
82- exit 1
81+ " k0s " | " k3s" | " k8s " )
82+ CHECKS[ " k8s " ]= " 1 "
83+ CHECKS[ " container-engine " ]= " "
8384 ;;
8485" fedora" )
8586 WARNING " Relaxing systemd tests for fedora (For avoiding CI failure)"
@@ -432,6 +433,18 @@ if [[ -n ${CHECKS["container-engine"]} ]]; then
432433 fi
433434fi
434435
436+ if [[ -n ${CHECKS["k8s"]} ]]; then
437+ INFO " Testing Kubernetes"
438+ set -x
439+ limactl shell " $NAME " kubectl get nodes -o wide
440+ limactl shell " $NAME " kubectl create deployment nginx --image=" ${nginx_image} "
441+ limactl shell " $NAME " kubectl create service nodeport nginx --node-port=31080 --tcp=80:80
442+ timeout 3m bash -euxc " until curl -f --retry 30 --retry-connrefused http://127.0.0.1:31080; do sleep 3; done"
443+ limactl shell " $NAME " kubectl delete service nginx
444+ limactl shell " $NAME " kubectl delete deployment nginx
445+ set +x
446+ fi
447+
435448if [[ -n ${CHECKS["port-forwards"]} ]]; then
436449 INFO " Testing port forwarding rules using netcat"
437450 set -x
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ Container orchestration:
5757- [ ` faasd ` ] ( ./faasd.yaml ) : [ Faasd] ( https://docs.openfaas.com/deployment/edge/ )
5858- [ ` k0s ` ] ( ./k0s.yaml ) : [ k0s] ( https://k0sproject.io/ ) Zero Friction Kubernetes
5959- [ ` k3s ` ] ( ./k3s.yaml ) : Kubernetes via k3s
60- - [ ` k8s ` ] ( ./k8s.yaml ) : Kubernetes via kubeadm
60+ - [ ` k8s ` ] ( ./k8s.yaml ) : ⭐ Kubernetes via kubeadm
6161- [ ` experimental/u7s ` ] ( ./experimental/u7s.yaml ) : [ Usernetes] ( https://github.com/rootless-containers/usernetes ) : Rootless Kubernetes
6262
6363Optional feature enablers:
You can’t perform that action at this time.
0 commit comments