Minikube

(Kubernetes + Minikube) can't get docker image from local registry

守給你的承諾、 提交于 2019-11-29 02:59:11
问题 I have setup docker on my machine and also minikube which have docker inside it, so probably i have two docker instances running on different VM I build an image and tag it then push it to local registry and it pushed successfully and i can pull it from registry too and also when i run curl to get tags list i got result, and here are what i did 1- docker build -t 127.0.0.1:5000/eliza/console:0.0.1 . 2- docker run -d -p 5000:5000 --name registry registry:2 3- docker tag a3703d02a199 127.0.0.1

Minikube install in Ubuntu vm_VT-X/AMD-v enabling to VM inside another VM

落爺英雄遲暮 提交于 2019-11-29 01:15:33
I'm tring to install minikube in Ubuntu vm (in virtual box). I have enabled VT-X/AMD-v for the vm. But i'm getting following error. # minikube start Starting local Kubernetes cluster... E0217 15:00:35.395801 3869 start.go:107] Error starting host: Error creating host: Error with pre-create check: "This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory". Retrying. E0217 15:00:35.396019 3869 start.go:113] Error starting host: Error creating host: Error with pre-create check: "This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory" =======

how do i get the minikube nodes in a local cluster

纵饮孤独 提交于 2019-11-29 01:00:05
问题 Im trying to set up a local cluster using VM and minikube, as Id been reading its only possible to use it for local purposes, but id like to join a secondary machine, and im searching a way to create the join and hash. 回答1: You can easily do it in case your minikube machine is using VirtualBox. Start the minikube: $ minikube start --vm-driver="virtualbox" Check the versions of kubeadm, kubelet and kubectl in minikube and print join command: $ kubectl version $ minikube ssh $ kubelet --version

minikube dashboard returns 503 error on macOS

本秂侑毒 提交于 2019-11-29 00:00:38
问题 I have recently installed minikube and VirtualBox on a new Mac using homebrew. I am following instructions from the official minikube tutorial. This is how I am starting the cluster - minikube start --vm-driver=hyperkit On running kubectl cluster-info I get this Kubernetes master is running at https://192.168.99.100:8443 CoreDNS is running at https://192.168.99.100:8443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy To further debug and diagnose cluster problems, use 'kubectl

containerd 与安全沙箱的 Kubernetes 初体验

主宰稳场 提交于 2019-11-28 22:34:01
作者 | 易立 阿里云资深技术专家 containerd 是一个开源的行业标准容器运行时,关注于简单、稳定和可移植,同时支持 Linux 和 Windows。 2016 年 12 月 14 日,Docker 公司宣布将 Docker Engine 的核心组件 containerd 捐赠到一个新的开源社区独立发展和运营。阿里云、AWS、 Google、IBM 和 Microsoft 作为初始成员,共同建设 containerd 社区; 2017 年 3 月,Docker 将 containerd 捐献给 CNCF(云原生计算基金会)。containerd 得到了快速的发展和广泛的支持; Docker 引擎已经将 containerd 作为容器生命周期管理的基础,Kubernetes 也在 2018 年 5 月,正式支持 containerd 作为容器运行时管理器; 2019 年 2 月,CNCF 宣布 containerd 毕业,成为生产可用的项目。 containerd 从 1.1 版本开始就已经内置了 Container Runtime Interface (CRI) 支持,进一步简化了对 Kubernetes 的支持。其架构图如下: 在 Kubernetes 场景下,containerd 与完整 Docker Engine 相比,具有更少的资源占用和更快的启动速度。 图片来源:

k8s上安装并初始化Helm。minikube

时光怂恿深爱的人放手 提交于 2019-11-28 12:32:49
helm简介 Helm 可以理解为 Kubernetes 的包管理工具,可以方便地发现、共享和使用为Kubernetes构建的应用。 Helm 采用客户端/服务器架构,有如下 组件 组成: Helm CLI 是 Helm 客户端,可以在本地执行 Tiller 是服务器端组件,在 Kubernetes 群集上运行,并管理 Kubernetes 应用程序的生命周期 Repository 是 Chart 仓库,Helm客户端通过HTTP协议来访问仓库中Chart的索引文件和压缩包。 1.Helm的三个基本概念 Chart:Helm应用(package),包括该应用的所有Kubernetes manifest模版,类似于YUM RPM或Apt dpkg文件 Repository:Helm package存储仓库 Release:chart的部署实例,每个chart可以部署一个或多个release 2.Helm工作原理 Helm把Kubernetes资源(比如deployments、services或 ingress等) 打包到一个chart中,而chart被保存到chart仓库。通过chart仓库可用来存储和分享chart。Helm使发布可配置,支持发布应用配置的版本管理,简化了Kubernetes部署应用的版本控制、打包、发布、删除、更新等操作。 Helm包括两个部分

Minikube never start - Error restarting cluster

自古美人都是妖i 提交于 2019-11-28 08:20:19
问题 I'm using Arch linux I had virtualbox 5.2.12 installed I had the minikube 0.27.0-1 installed I had the Kubernetes v1.10.0 installed When i try start the minkube with sudo minikube start i get this error Starting local Kubernetes v1.10.0 cluster... Starting VM... Getting VM IP address... Moving files into cluster... Setting up certs... Connecting to cluster... Setting up kubeconfig... Starting cluster components... E0527 12:58:18.929483 22672 start.go:281] Error restarting cluster: running cmd

Minikube expose MySQL running on localhost as service

不想你离开。 提交于 2019-11-27 20:08:46
I have minikube version v0.17.1 running on my machine. I want to simulate the environment I will have in AWS, where my MySQL instance will be outside of my Kubernetes cluster. Basically, how can I expose my local MySQL instance running on my machine to the Kubernetes cluster running via minikube? Crazykev Kubernetes allows you to create a service without selector, and cluster will not create related endpoint for this service, this feature is usually used to proxy a legacy component or an outside component. Create a service without selector apiVersion: v1 kind: Service metadata: name: my

Minikube install in Ubuntu vm_VT-X/AMD-v enabling to VM inside another VM

為{幸葍}努か 提交于 2019-11-27 15:42:27
问题 I'm tring to install minikube in Ubuntu vm (in virtual box). I have enabled VT-X/AMD-v for the vm. But i'm getting following error. # minikube start Starting local Kubernetes cluster... E0217 15:00:35.395801 3869 start.go:107] Error starting host: Error creating host: Error with pre-create check: "This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory". Retrying. E0217 15:00:35.396019 3869 start.go:113] Error starting host: Error creating host: Error with pre

Mount local directory into pod in minikube

老子叫甜甜 提交于 2019-11-27 15:40:48
问题 I am running minikube v0.24.1. In this minikube, I will create a Pod for my nginx application. And also I want to pass data from my local directory. That means I want to mount my local $HOME/go/src/github.com/nginx into my Pod How can I do this? apiVersion: v1 kind: Pod metadata: name: nginx spec: containers: - image: nginx:0.1 name: nginx volumeMounts: - mountPath: /data name: volume volumes: - name: volume hostPath: path: /data 回答1: You can't mount your local directory into your Pod