Skip to content

Latest commit

 

History

History
191 lines (160 loc) · 8.72 KB

report.md

File metadata and controls

191 lines (160 loc) · 8.72 KB

execution date: Sat Nov 28 09:49:46 UTC 2020

microk8s snap version:

microk8s v1.19.3 1791 1.19/stable canonical* classic

ubuntu version:

Distributor ID: Ubuntu Description: Ubuntu 20.04.1 LTS Release: 20.04 Codename: focal

docker version:

Client: Docker Engine - Community Version: 19.03.13 API version: 1.40 Go version: go1.13.15 Git commit: 4484c46d9d Built: Wed Sep 16 17:02:52 2020 OS/Arch: linux/amd64 Experimental: false

kata-runtime version:

kata-runtime : 1.12.0-rc0 commit : <> OCI specs: 1.0.1-dev

kata-runtime check:

System is capable of running Kata Containers

check existing container runtimes on Ubuntu host:

-rwxr-xr-x 1 root root 9.7M Sep 9 15:40 /bin/runc -rwxr-xr-x 1 root root 31M Oct 22 16:51 /bin/kata-runtime

check active OCI runtime:

test use of kata-runtime with alpine:

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 7d90229b5af6 docker.io/library/alpine:latest sh 2 seconds ago Up Less than a second ago kata-alpine "Name": "kata-alpine", "Id": "7d90229b5af691afd78a472d10e7948b9d5a6d9756065cdf7be88463b3f9733b", "OCIRuntime": "kata-runtime",

install microk8s:

microk8s is running high-availability: no datastore master nodes: 127.0.0.1:19001 datastore standby nodes: none addons: enabled: ha-cluster # Configure high availability on the current node disabled: ambassador # Ambassador API Gateway and Ingress cilium # SDN, fast with full network policy dashboard # The Kubernetes dashboard dns # CoreDNS fluentd # Elasticsearch-Fluentd-Kibana logging and monitoring gpu # Automatic enablement of Nvidia CUDA helm # Helm 2 - the package manager for Kubernetes helm3 # Helm 3 - Kubernetes package manager host-access # Allow Pods connecting to Host services smoothly ingress # Ingress controller for external access istio # Core Istio service mesh services jaeger # Kubernetes Jaeger operator with its simple config knative # The Knative framework on Kubernetes. kubeflow # Kubeflow for easy ML deployments linkerd # Linkerd is a service mesh for Kubernetes and other frameworks metallb # Loadbalancer for your Kubernetes cluster metrics-server # K8s Metrics Server for API access to service metrics multus # Multus CNI enables attaching multiple network interfaces to pods prometheus # Prometheus operator for monitoring and logging rbac # Role-Based Access Control for authorisation registry # Private image registry exposed on localhost:32000 storage # Storage class; allocates storage from host directory

check container runtime on microk8s snap:

-rwxr-xr-x 1 root root 15M Nov 6 12:06 /snap/microk8s/current/bin/runc

TEST WITH RUNC

test microk8s with helloworld-go & autoscale-go:

service/helloworld-go created deployment.apps/helloworld-go-deployment created service/autoscale-go created deployment.apps/autoscale-go-deployment created NAME READY STATUS RESTARTS AGE nginx-test 0/1 ContainerCreating 0 1s helloworld-go-deployment-86f5466d4-dc5d6 0/1 ContainerCreating 0 0s helloworld-go-deployment-86f5466d4-5wfd9 0/1 ContainerCreating 0 0s autoscale-go-deployment-5894658957-4vl42 0/1 Pending 0 0s autoscale-go-deployment-5894658957-6747m 0/1 ContainerCreating 0 0s

waiting for ready pods...

NAME READY STATUS RESTARTS AGE nginx-test 1/1 Running 0 2m2s autoscale-go-deployment-5894658957-4vl42 1/1 Running 0 2m1s helloworld-go-deployment-86f5466d4-5wfd9 1/1 Running 0 2m1s helloworld-go-deployment-86f5466d4-dc5d6 1/1 Running 0 2m1s autoscale-go-deployment-5894658957-6747m 1/1 Running 0 2m1s NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE kubernetes ClusterIP 10.152.183.1 443/TCP 2m34s helloworld-go NodePort 10.152.183.42 80:31982/TCP 2m2s autoscale-go NodePort 10.152.183.245 80:31469/TCP 2m1s

calling helloworld-go...

Hello World: Kata Containers!

calling autoscale-go with request for biggest prime under 10 000 and 5 MB memory...

Allocated 5 Mb of memory. The largest prime less than 10000 is 9973. Slept for 100.18 milliseconds.

re-install microk8s incl kata-runtime:

microk8s v1.19.3 installed microk8s is running high-availability: no datastore master nodes: 127.0.0.1:19001 datastore standby nodes: none addons: enabled: ha-cluster # Configure high availability on the current node disabled: ambassador # Ambassador API Gateway and Ingress cilium # SDN, fast with full network policy dashboard # The Kubernetes dashboard dns # CoreDNS fluentd # Elasticsearch-Fluentd-Kibana logging and monitoring gpu # Automatic enablement of Nvidia CUDA helm # Helm 2 - the package manager for Kubernetes helm3 # Helm 3 - Kubernetes package manager host-access # Allow Pods connecting to Host services smoothly ingress # Ingress controller for external access istio # Core Istio service mesh services jaeger # Kubernetes Jaeger operator with its simple config knative # The Knative framework on Kubernetes. kubeflow # Kubeflow for easy ML deployments linkerd # Linkerd is a service mesh for Kubernetes and other frameworks metallb # Loadbalancer for your Kubernetes cluster metrics-server # K8s Metrics Server for API access to service metrics multus # Multus CNI enables attaching multiple network interfaces to pods prometheus # Prometheus operator for monitoring and logging rbac # Role-Based Access Control for authorisation registry # Private image registry exposed on localhost:32000 storage # Storage class; allocates storage from host directory

TEST WITH KATA-RUNTIME

test microk8s with helloworld-go & autoscale-go:

service/helloworld-go created deployment.apps/helloworld-go-deployment created service/autoscale-go created deployment.apps/autoscale-go-deployment created NAME READY STATUS RESTARTS AGE nginx-test 0/1 ContainerCreating 0 2s helloworld-go-deployment-86f5466d4-hzmv8 0/1 ContainerCreating 0 1s autoscale-go-deployment-5894658957-m5qff 0/1 ContainerCreating 0 0s helloworld-go-deployment-86f5466d4-vntqb 0/1 ContainerCreating 0 1s autoscale-go-deployment-5894658957-ckc2z 0/1 ContainerCreating 0 0s

waiting for ready pods...

NAME READY STATUS RESTARTS AGE nginx-test 1/1 Running 0 2m3s autoscale-go-deployment-5894658957-m5qff 1/1 Running 0 2m1s helloworld-go-deployment-86f5466d4-hzmv8 1/1 Running 0 2m2s helloworld-go-deployment-86f5466d4-vntqb 1/1 Running 0 2m2s autoscale-go-deployment-5894658957-ckc2z 1/1 Running 0 2m1s NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE kubernetes ClusterIP 10.152.183.1 443/TCP 2m26s helloworld-go NodePort 10.152.183.67 80:32503/TCP 2m2s autoscale-go NodePort 10.152.183.112 80:30065/TCP 2m1s

calling helloworld-go...

Hello World: Kata Containers!

calling autoscale-go with request for biggest prime under 10 000 and 5 MB memory...

Allocated 5 Mb of memory. The largest prime less than 10000 is 9973. Slept for 100.65 milliseconds.

check proper symlink from microk8s runc:

lrwxrwxrwx 1 root root 30 Nov 28 09:43 /snap/microk8s/current/bin/runc -> squashfs-root/bin/kata-runtime -rwxr-xr-x 1 root root 31560112 Oct 22 16:51 /bin/kata-runtime -rwxr-xr-x 1 root root 31560112 Nov 28 09:43 /snap/microk8s/current/bin/kata-runtime