diff --git a/k8s/alpine-runu.yaml b/k8s/alpine-runu.yaml new file mode 100644 index 0000000..de2643d --- /dev/null +++ b/k8s/alpine-runu.yaml @@ -0,0 +1,23 @@ +apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2 +kind: Deployment +metadata: + name: alpine-runu +spec: + selector: + matchLabels: + app: alpine-runu + replicas: 1 + template: + metadata: + labels: + app: alpine-runu + spec: + runtimeClassName: ukontainer + containers: + - name: alpine-runu + image: alpine:latest + imagePullPolicy: Always + args: ["busybox", "ping", "-c", "50", "8.8.8.8"] + env: + - name: RUMP_VERBOSE + value: "1" diff --git a/test/k8s-test.sh b/test/k8s-test.sh index eab0f57..bf3f5c7 100644 --- a/test/k8s-test.sh +++ b/test/k8s-test.sh @@ -25,7 +25,7 @@ cat k8s/hello-world.yaml | sed "s/\$DOCKER_IMG_VERSION/$DOCKER_IMG_VERSION/" \ | kubectl apply -f - kubectl get nodes -o wide -A -sleep 30 +sleep 20 set -x kubectl get pods -o wide -A kubectl describe deployment/helloworld-runu @@ -33,3 +33,18 @@ kubectl logs deployment/helloworld-runu |& tee /tmp/log.txt grep "icmp_req=1" /tmp/log.txt fold_end k8s.test.3 "" + +fold_start k8s.test.4 "k8s: alpine hello world" +# install runu pod +cat k8s/alpine-runu.yaml | sed "s/8.8.8.8/$DST_ADDR/" \ + | kubectl apply -f - + +kubectl get nodes -o wide -A +sleep 20 +set -x +kubectl get pods -o wide -A +kubectl describe deployment/alpine-runu +kubectl logs deployment/alpine-runu |& tee /tmp/log.txt +grep "seq=1" /tmp/log.txt + +fold_end k8s.test.4 ""