Minikube

Minikube hangs on the “Starting VM” step

穿精又带淫゛_ 提交于 2020-08-26 06:59:57
问题 Hi yet once again my beloved community. My v0.33.1 minikube hangs on the "Starting VM..." step. I am using Windows 10 and a HyperV vm underneath. I am running my cluster with the following command: minikube start --kubernetes-version="v1.10.11" --memory 4096 --vm-driver hyperv --hyperv-virtual-switch "HyperV Switch" and my Docker is: Version 2.0.0.3 (31259) Channel: stable Build: 8858db3 The VM underneath goes up but its CPU eventually falls down to 0% usage and it just stalls. Kubectl hangs

Kafka Producer deployed on Kubernetes not able to produce to Kafka cluster running on local machine

江枫思渺然 提交于 2020-08-25 08:47:35
问题 I have a Kafka cluster running on the local machine with default settings outside of my minikube setup. I have created a producer in one of my web services and deployed it on minikube. For producer to connect to Kafka I am using 10.0.2.2 IP which I am also using to connect Cassandra and DGraph outside of minikube for these it is working fine. However Kafka producer is not working and not even throwing an error saying Broker may not be available or any other errors while sending data. But I am

Kafka Producer deployed on Kubernetes not able to produce to Kafka cluster running on local machine

不羁岁月 提交于 2020-08-25 08:43:17
问题 I have a Kafka cluster running on the local machine with default settings outside of my minikube setup. I have created a producer in one of my web services and deployed it on minikube. For producer to connect to Kafka I am using 10.0.2.2 IP which I am also using to connect Cassandra and DGraph outside of minikube for these it is working fine. However Kafka producer is not working and not even throwing an error saying Broker may not be available or any other errors while sending data. But I am

Minikube - how to increase ephemeral storage

一曲冷凌霜 提交于 2020-08-23 11:31:35
问题 I am trying to set up a copy of our app on my development machine using minikube. But I get an error showing up in minikube dashboard: 0/1 nodes are available: 1 Insufficient ephemeral-storage Any ideas as to how I fix this? The relevant part of the yaml configuration file looks like so: resources: requests: memory: 500Mi cpu: 1 ephemeral-storage: 16Gi limits: memory: 4Gi cpu: 1 ephemeral-storage: 32Gi I have tried assigning extra disk space at startup with the following but the error

Minikube - how to increase ephemeral storage

℡╲_俬逩灬. 提交于 2020-08-23 11:30:11
问题 I am trying to set up a copy of our app on my development machine using minikube. But I get an error showing up in minikube dashboard: 0/1 nodes are available: 1 Insufficient ephemeral-storage Any ideas as to how I fix this? The relevant part of the yaml configuration file looks like so: resources: requests: memory: 500Mi cpu: 1 ephemeral-storage: 16Gi limits: memory: 4Gi cpu: 1 ephemeral-storage: 32Gi I have tried assigning extra disk space at startup with the following but the error

一文了解什么是MicroK8s、k3s、Katacoda?

我的未来我决定 提交于 2020-08-20 04:47:46
导语 本文中,我们将介绍以下3部分服务:MicroK8s、k3s、Katacoda。MicroK8和k3定位在轻量级的Kubernetes环境中,不仅有望用于学习,而且还将用于各种环境,例如容量有限的IoT环境。Katacoda是一个免费的综合学习站点,您可以在其中基于浏览器学习云原生技术,不仅可以运行Kubernetes,还可以提供免费的学习课程。 MicroK8s MicroK8s是一个轻量级的Kubernetes环境。与Minikube不同,它不需要VirtualBox,因此可以在虚拟服务器上运行。它是一个轻巧的单节点,并具有Istio,Knative和Kubeflow等全面功能,非常适合学习Kubernetes。 现在,让我们使用Micro K8。转到官方网站,然后单击“入门”按钮。 在这里,选择“ macOS”,然后单击“为macOS下载Multipass”按钮以下载安装程序。 从控制台启动multipass,然后输入multipass。然后使用snap安装microk8s。 $multipass launch --name microk8s-vm --mem4G --disk40GLaunched: microk8s-vm$multipass shell microk8s-vm Welcome to Ubuntu18.04.3LTS (GNU/Linux4.15.0

通过kubeadm安装kubernetes

不羁岁月 提交于 2020-08-12 23:59:56
本文主要讲解在centos7下kubentes安装 1 单机安装 1.1 通过minikube安装(官方minikube) 本小节主要讲解通过minikube工具安装一个本地单机kubenetes 1.1.1 minikube 安装 如果需要在虚拟机里边安装的话,需要首先安装虚拟机软件、如 VirtualBox KVM 等, 本文直接安装在计算机中,所以不依赖虚拟机,直接安装的话有些minikube的命令就不支持了,比如minikube docker-env等命令。 minikube安装很简单,只有一个可执行文件 执行如下命令 [root@k8s-1 ~]# curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 [root@k8s-1 ~]# chmod +x minikube [root@k8s-1 ~]# sudo cp minikube /usr/local/bin [root@k8s-1 ~]# rm minikube 查看是否安装成功 [root@k8s-1 ~]# minikube version minikube version: v1.0.1 minikube 常见命令: minikube version,查看minikube的版本

【K8s学习笔记】K8s是如何部署应用的?

流过昼夜 提交于 2020-08-11 02:42:03
本文内容 本文致力于介绍K8s一些基础概念与串联部署应用的主体流程,使用Minikube实操 基础架构概念回顾 温故而知新,上一节 【K8S学习笔记】初识K8S 及架构组件 我们学习了K8s的发展历史、基础架构概念及用途,本节讲的内容建立在其上,有必要把之前的架构小节提出来回顾下: K8s架构分为控制平台(位于的Master节点)与执行节点Node 控制平台包含: kube-apiserver(访问入口,接收命令) etcd(KV数据库,保存集群状态与数据) kube-scheduler(监控节点状态,调度容器部署) kube-controller-manager(监控集群状态,控制节点、副本、端点、账户与令牌) cloud-controller-manager(控制与云交互的节点、路由、服务、数据卷) 执行节点包含: kubelet(监控与实际操作容器) kube-proxy(每个节点上运行的网络代理,维护网络转发规则,实现了Service) 容器运行时环境CRI(支持多种实现K8s CRI的容器技术) 接下来需要引入 Pod 与 Service 的概念,这也是在上一篇文章中未给出的 Pod、Service与Label概念 Pod概念与结构 Pod 是 K8s最重要的基本概念,官网给出概念:Pod是Kubernates可调度的最小的、可部署的单元。怎么理解呢?最简单的理解是