Minikube

通过实例快速掌握k8s(Kubernetes)核心概念

心已入冬 提交于 2019-11-30 18:00:45
容器技术是微服务技术的核心技术之一,并随着微服务的流行而迅速成为主流。Docker是容器技术的先驱和奠基者,它出现之后迅速占领市场,几乎成了容器的代名词。但它在开始的时候并没有很好地解决容器的集群问题。 Kubernetes 抓住了这个机遇,以容器编排者(Container Orchestration)的身份出现,对容器集群进行管理和调度,现在已经打败了Docker成为了容器技术事实上的标准。当然K8s内部还是需要Docker的,但它的功能范围被大大压缩了,只是负责底层的容器引擎和镜像(Docker Image)管理,成为了容器体系中不可缺少, 但没有存在感的一部分。而绝大部分的对外接口都是由k8s来负责。 K8s核心对象: 相对于简单易学的Docker来说,k8s系统庞杂而且概念众多,同一个功能有很多不同方法来完成,让你无所适从,学习起来要困难的多。对于普通码农来讲不需要建立完整的生产环境,只需要搭建一个本地开发环境,这时你只需要了解k8s的核心概念就够了,这样可以大大缩短学习时间。k8s的一切都是对象(Object),它的核心概念一共只有4个,Pod,部署(Deployment),服务(Service)和节点(Node)。另外再加上一个容器镜像(Docker Image),这个是Docker引擎的核心。掌握了这五个核心概念,就对容器技术有了基本了解,打下了扎实的基础。

How to upgrade minikube?

爷,独闯天下 提交于 2019-11-30 10:37:51
问题 I had installed minikube a few months ago and wanted to upgrade as newer versions are available. I am unable to find out how to upgrade minikube . I see a feature request for an upgrade command here - https://github.com/kubernetes/minikube/issues/1171 I tried to then uninstall minikube and hit another brickwall again. I don't see a command to uninstall minikube . The information that came closest to this was not very helpful - https://github.com/kubernetes/minikube/issues/1043 I guess we need

how do i get the minikube nodes in a local cluster

和自甴很熟 提交于 2019-11-30 04:13:12
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. 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 $ kubeadm token create --print-join-command Create a new VM in VirtualBox. I've used Vagrant to create

从零开始入门 K8s| 阿里技术专家详解 K8s 核心概念

你。 提交于 2019-11-30 03:09:45
作者| 阿里巴巴资深技术专家、CNCF 9个 TCO 之一 李响 一、什么是 Kubernetes Kubernetes,从官方网站上可以看到,它是一个工业级的容器编排平台。Kubernetes 这个单词是希腊语,它的中文翻译是“舵手”或者“飞行员”。在一些常见的资料中也会看到“ks”这个词,也就是“K8s”,它是通过将 8 个字母“ubernete ”替换为“8”而导致的一个缩写。 Kubernetes 为什么要用“舵手”来命名呢?大家可以看一下这张图: 这是一艘载着一堆集装箱的轮船,轮船在大海上运着集装箱奔波,把集装箱送到它们该去的地方。我们之前其实介绍过一个概念叫做 container,container 这个英文单词也有另外的一个意思就是“集装箱”。Kubernetes 也就借着这个寓意,希望成为运送集装箱的一个轮船,来帮助我们管理这些集装箱,也就是管理这些容器。 这个就是为什么会选用 Kubernetes 这个词来代表这个项目的原因。更具体一点地来说:Kubernetes 是一个自动化的容器编排平台,它负责应用的部署、应用的弹性以及应用的管理,这些都是基于容器的。 二、Kubernetes 有如下几个核心的功能: 服务的发现与负载的均衡; 容器的自动装箱,我们也会把它叫做 scheduling,就是“调度”,把一个容器放到一个集群的某一个机器上,Kubernetes

minikube dashboard returns 503 error on macOS

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-30 03:00:44
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 cluster-info dump'. Then I set the context of minikube kubectl config use-context minikube But when I run

containerd 与安全沙箱的 Kubernetes 初体验

前提是你 提交于 2019-11-29 23:15:44
作者 | 易立 阿里云资深技术专家 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 相比,具有更少的资源占用和更快的启动速度。 图片来源:

How to upgrade minikube?

邮差的信 提交于 2019-11-29 21:15:46
I had installed minikube a few months ago and wanted to upgrade as newer versions are available. I am unable to find out how to upgrade minikube . I see a feature request for an upgrade command here - https://github.com/kubernetes/minikube/issues/1171 I tried to then uninstall minikube and hit another brickwall again. I don't see a command to uninstall minikube . The information that came closest to this was not very helpful - https://github.com/kubernetes/minikube/issues/1043 I guess we need ways to upgrade these (at least once every 6 months or so). Raquel Campuzano Before reinstall minikube

Kubernetes pod unable to connect to rabbit mq instance running locally

我的未来我决定 提交于 2019-11-29 17:09:59
I am moving my application from docker to kubernetes \ helm - and so far I have been successful except for setting up incoming \ outgoing connections. One particular issue I am facing is that I am unable to connect to the rabbitmq instance running locally on my machine on another docker container. app-deployment.yaml: apiVersion: extensions/v1beta1 kind: Deployment metadata: name: jks labels: app: myapp spec: replicas: 1 template: metadata: labels: app: myapp spec: imagePullSecrets: - name: ivsecret containers: - env: - name: JOBQUEUE value: jks_jobqueue - name: PORT value: "80" image: repo

Minikube never start - Error restarting cluster

帅比萌擦擦* 提交于 2019-11-29 15:30:31
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: sudo kubeadm alpha phase certs all --config /var/lib/kubeadm.yaml && sudo /usr/bin/kubeadm alpha