Minikube

How to route traffic from pysical server's port to minikube cluster?

一世执手 提交于 2021-02-10 18:11:56
问题 I want to sent traffic from one port through kubernetes cluster (using minikube) to another physical port. I don't know how to route traffic from physical port to cluster and from cluster to the second physical port. I'm exposing cluster via ingress (and I tested service solution also), i have one service to send external tarffic to pod and another to sent traffic from first pod to second pod. But I really don't know how to send this traffic from port to cluster and how to sent from cluster

Docker images disappearing over time

两盒软妹~` 提交于 2021-02-10 14:21:00
问题 I loaded some docker images running docker load --input <file> I can then see these images when executing docker image ls After a while images start disappearing. Every few minutes there are less and less images listed. I did not run any of images yet. What could be the cause of this issue? EDIT: This issue arises with docker inside minikube VM. 回答1: Since you've mentioned that Docker daemon runs inside minikube VM, I assume that you might hit K8s Garbage collection mechanism, which keeps

Docker images disappearing over time

a 夏天 提交于 2021-02-10 14:20:01
问题 I loaded some docker images running docker load --input <file> I can then see these images when executing docker image ls After a while images start disappearing. Every few minutes there are less and less images listed. I did not run any of images yet. What could be the cause of this issue? EDIT: This issue arises with docker inside minikube VM. 回答1: Since you've mentioned that Docker daemon runs inside minikube VM, I assume that you might hit K8s Garbage collection mechanism, which keeps

How can I install / use tcpdump on minikube?

冷暖自知 提交于 2021-02-10 06:44:26
问题 I'm trying to investigate a network issue and would like to install tcpdump / tshark. What package manager does minikube use? How can I install tcpdump? 回答1: It is not an easy task. Minikube VM is based on Buildroot distribution. Usually minikube uses docker to build a buildroot image, but you can clone buildroot repo and configure it to include tcpdump package using specific targets (make iso-minikube, make iso-menuconfig). Then you need to build a minikube image and run minikube using that

How can I install / use tcpdump on minikube?

…衆ロ難τιáo~ 提交于 2021-02-10 06:42:18
问题 I'm trying to investigate a network issue and would like to install tcpdump / tshark. What package manager does minikube use? How can I install tcpdump? 回答1: It is not an easy task. Minikube VM is based on Buildroot distribution. Usually minikube uses docker to build a buildroot image, but you can clone buildroot repo and configure it to include tcpdump package using specific targets (make iso-minikube, make iso-menuconfig). Then you need to build a minikube image and run minikube using that

如何管理越来越多的Operator?OLM给你答案

本小妞迷上赌 提交于 2021-02-09 20:27:45
作者 | 匡大虎、阚俊宝 导读: OLM(Operator Lifecycle Manager) 作为 Operator Framework 的一部分,可以帮助用户进行 Operator 的自动安装,升级及其生命周期的管理。同时 OLM 自身也是以 Operator 的形式进行安装部署,可以说它的工作方式是以 Operators 来管理 Operators,而它面向 Operator 提供了声明式 (declarative) 的自动化管理能力也完全符合 Kubernetes 交互的设计理念。本文我们将来了解一下 OLM 的基本架构和安装使用。 OLM 组件模型定义 OLM 的出现是为了帮助没有如大数据,云监控等领域知识的用户能够自助式地部署并管理像 etcd、大数据分析或监控服务等复杂的分布式应用。因此从它的设计目标来说,OLM 官方希望实现面向云原生应用提供以下几个方向上的通用管理能力,包括: 生命周期管理:管理 operator 自身以及监控资源模型的升级和生命周期; 服务发现:发现在集群中存在哪些 operator,这些 operators 管理了哪些资源模型以及又有哪些 operators 是可以被安装在集群中的; 打包能力:提供一种标准模式用于 operator 以及依赖组件的分发,安装和升级; 交互能力:在完成了上述能力的标准化后,还需要提供一种规范化的方式(如 CLI

Can't access minikube service using NodePort from host on Mac

℡╲_俬逩灬. 提交于 2021-02-09 09:00:27
问题 I'm trying to deploy a single web application to Minikube on my Mac, and then access it in the browser. I'm trying to use the simplest of setups, but it's not working, I just get a "connection refused" error and I can't figure out why. This is what I'm trying: $ minikube start --insecure-registry=docker.example.com:5000 😄 minikube v1.12.3 on Darwin 10.14.6 ✨ Using the docker driver based on existing profile 👍 Starting control plane node minikube in cluster minikube 🔄 Restarting existing

Can't access minikube service using NodePort from host on Mac

拥有回忆 提交于 2021-02-09 08:59:29
问题 I'm trying to deploy a single web application to Minikube on my Mac, and then access it in the browser. I'm trying to use the simplest of setups, but it's not working, I just get a "connection refused" error and I can't figure out why. This is what I'm trying: $ minikube start --insecure-registry=docker.example.com:5000 😄 minikube v1.12.3 on Darwin 10.14.6 ✨ Using the docker driver based on existing profile 👍 Starting control plane node minikube in cluster minikube 🔄 Restarting existing

Run command on Minikube startup

你说的曾经没有我的故事 提交于 2021-02-08 08:23:32
问题 I'm using Minikube for working with Kubernetes on my local machine, and would like to run a command on the VM just after startup (preferably before the Pods start). I can run it manually with minikube ssh , but that's a bit of a pain to do after every restart, and is difficult to wrap in a script. Is there an easy way to do this? The command in my case is this, so that paths on the VM match paths on my host machine: sudo mount --bind /hosthome/<user> /home/<user> 回答1: Maybe flags which can

Running Kubernetes locally on M1 Mac

倖福魔咒の 提交于 2021-02-07 19:37:33
问题 I'm looking to see if it's currently possible to run Kubernetes locally on a 2020 M1 MacBook air. The environment I need is relatively simple, just for going through some tutorials. As an example, this operator-sdk guide https://sdk.operatorframework.io/docs/building-operators/golang/tutorial/. So far I've tried microk8s and minikube , as they're tools I've used before on other machines. For both of these, I've installed them using brew after opening the terminal app "with Rosetta 2" (i.e