microk8s

MicroK8s与K3s的简单对比

被刻印的时光 ゝ 提交于 2020-03-04 15:21:04
MicroK8s与K3s都是基于Kubernetes的轻量级发行版,主要面向工作站、边缘计算、物联网等应用场景,但二者也有比较大的区别。 主要区别 MicroK8s主要将一些扩展件集成到系统中,而K3s却将很多扩展件独立出来。 虽然MicroK8s与K3s都能支持ARM体系的低功耗计算,但是MicroK8s主打使用方便性,也更适合开发团队使用,而K3s主打轻量化,更适合低功耗的小型化无人值守的自动化系统使用。 MicroK8s的集群管理内核与Kubernetes标准版的容器镜像是完全一样的,而K3s的内核进行了一些修改,部分模块可能由于兼容性问题无法运行。 K3s修改的部分 主要包括: 删除 过时的功能和非默认功能 Alpha功能 内置的云提供商插件 内置的存储驱动 Docker (可选) 新增 简化安装 除etcd外,还支持SQLite3数据存储 TLS管理 自动的Manifest和Helm Chart管理 containerd, CoreDNS, Flannel MicroK8s主要的变化 主要包括: 基于snap的安装工具。 kubectl的命名空间化,变为microk8s.kubectl。 各种扩展模块的版本适配,本地存储的直接支持。 各种addon动态加载模块,支持快速Enable/Disable。 内置的GPU支持。 更多参考 K3s官方文档 k3s/k3OS

KubeFlow-在Microk8s部署与应用

ε祈祈猫儿з 提交于 2020-02-26 02:04:55
Kubeflow( https://www.kubeflow.org/docs )支持 Microk8s 部署(目前仅支持1.15.9以下版本), Microk8s 是一个集成化的容器管理平台,与Kubernetes完全兼容,主要面向工作站、边缘计算和IoT等领域建立容器计算平台。 在官方版Kubernetes部署,参考 https://www.kubeflow.org/docs/started/k8s/kfctl-k8s-istio/ 。 KubeFlow进展研究(v0.7.1,2020年02月) Kubernetes集群的NVIDIA设备支持插件 Kubernetes-管理和调度GPUs资源 拉取镜像 原始的kubernetes镜像文件在gcr上,不能直接下载。我给镜像到了阿里云的杭州机房的容器仓库里,拉取还是比较快的。 echo "" echo "==========================================================" echo "Pull Kubernetes v1.15.9 Images from aliyuncs.com ......" echo "==========================================================" echo "" MY_REGISTRY=registry

How to fix “Failed to pull image” on microk8s

走远了吗. 提交于 2020-01-14 16:35:06
问题 Im trying to follow the get started docker's tutorials, but I get stuck when you have to work with kuberetes. I'm using microk8s to create the clusters. My Dockerfile: FROM node:6.11.5WORKDIR /usr/src/app COPY package.json . RUN npm install COPY . . CMD [ "npm", "start" ] My bb.yaml: apiVersion: apps/v1 kind: Deployment metadata: name: bb-demo namespace: default spec: replicas: 1 selector: matchLabels: bb: web template: metadata: labels: bb: web spec: containers: - name: bb-site image:

How to fix “Failed to pull image” on microk8s

99封情书 提交于 2020-01-14 16:34:12
问题 Im trying to follow the get started docker's tutorials, but I get stuck when you have to work with kuberetes. I'm using microk8s to create the clusters. My Dockerfile: FROM node:6.11.5WORKDIR /usr/src/app COPY package.json . RUN npm install COPY . . CMD [ "npm", "start" ] My bb.yaml: apiVersion: apps/v1 kind: Deployment metadata: name: bb-demo namespace: default spec: replicas: 1 selector: matchLabels: bb: web template: metadata: labels: bb: web spec: containers: - name: bb-site image:

microk8s pulling image, stuck in ContainerCreating state

∥☆過路亽.° 提交于 2020-01-04 02:59:08
问题 As described in the doc (based on). I am on Ubuntu as a host OS. docker --version Docker version 18.09.6, build 481bc77 microk8s 1.14/beta Enable local registry for microk2s : microk8s.enable registry Checking: watch microk8s.kubectl get all --all-namespaces container-registry pod/registry-577986746b-v8xqc 1/1 Running 0 36m Then: Edit: sudo vim /etc/docker/daemon.json Add this content: { "insecure-registries" : ["127.0.0.1:32000"] } Restart: sudo systemctl restart docker Double checking, see

How to configure kubernetes (microk8s) to use local docker images?

浪子不回头ぞ 提交于 2019-12-11 03:42:50
问题 I've build docker image locally: docker build -t backend -f backend.docker Now I want to create deployment with it: apiVersion: apps/v1 kind: Deployment metadata: name: backend-deployment spec: selector: matchLabels: tier: backend replicas: 2 template: metadata: labels: tier: backend spec: containers: - name: backend image: backend imagePullPolicy: IfNotPresent # This should be by default so ports: - containerPort: 80 kubectl apply -f file_provided_above.yaml works, but then I have following

Simple ingress from host with microk8s?

拜拜、爱过 提交于 2019-12-04 21:59:55
问题 I would like to do two things with MicroK8s: Route the host machine (Ubuntu 18.04) ports 80/443 to Microk8s Use something like the simple ingress defined in the kubernetes.io docs My end goal is to create a single node Kubernetes cluster that sits on the Ubuntu host, then using ingress to route different domains to their respective pods inside the service. I've been attempting to do this with Microk8s for the past couple of days but can't wrap my head around it. The best I've gotten so far is