Minikube

How do I see a list of all minikube clusters running in Docker on my mac?

邮差的信 提交于 2021-02-20 08:34:51
问题 I run a Kubernetes cluster on my mac using the latest Docker community edition. I usually do: $ minikube start --vm-driver=hyperkit and it works well for me. Today, I ran that command multiple times in a script. Now, how do I know how many minikube VMs are running on a mac? How do I delete all but one of them? Can I see a list of all minikube vms running? $ minikube status shows: minikube: Running cluster: Running kubectl: Correctly Configured: pointing to minikube-vm at 192.168.64.3 Is

How do I see a list of all minikube clusters running in Docker on my mac?

巧了我就是萌 提交于 2021-02-20 08:32:22
问题 I run a Kubernetes cluster on my mac using the latest Docker community edition. I usually do: $ minikube start --vm-driver=hyperkit and it works well for me. Today, I ran that command multiple times in a script. Now, how do I know how many minikube VMs are running on a mac? How do I delete all but one of them? Can I see a list of all minikube vms running? $ minikube status shows: minikube: Running cluster: Running kubectl: Correctly Configured: pointing to minikube-vm at 192.168.64.3 Is

no matches for kind “Deployment” in version “apps/v1”

我是研究僧i 提交于 2021-02-19 08:22:29
问题 I have minikube v0.26.0 version and kubectl v1.10.1 version and localKube v1.8.0 i get the following error when i try to deploy the kubeless ui $ kubectl create -f https://raw.githubusercontent.com/kubeless/kubeless-ui/master/k8s.yaml ERROR: unable to recognize "https://raw.githubusercontent.com/kubeless/kubeless-ui/master/k8s.yaml": no matches for kind "Deployment" in version "apps/v1" 回答1: after a long R & D minikube start --logtostderr --v=0 --bootstrapper=localkube --vm-driver virtualbox

How to use proxy in Minikube on Ubuntu VM?

落花浮王杯 提交于 2021-02-19 05:32:41
问题 On an Ubuntu VM (running on Windows) I would like to install Minikube. My PC in running behind a corporate proxy. Using Proxifier I manage to access Internet and run Docker on Ubuntu. Unfortunately it looks like Minikube can't reach the internet... minikube start Starting local Kubernetes v1.9.4 cluster... Starting VM... Downloading Minikube ISO The ISO can't be downloaded but it runs into a TLS handshake timeout... 回答1: You mentioned you could establish proxy using Proxifier. So, you could

How to use proxy in Minikube on Ubuntu VM?

巧了我就是萌 提交于 2021-02-19 05:32:37
问题 On an Ubuntu VM (running on Windows) I would like to install Minikube. My PC in running behind a corporate proxy. Using Proxifier I manage to access Internet and run Docker on Ubuntu. Unfortunately it looks like Minikube can't reach the internet... minikube start Starting local Kubernetes v1.9.4 cluster... Starting VM... Downloading Minikube ISO The ISO can't be downloaded but it runs into a TLS handshake timeout... 回答1: You mentioned you could establish proxy using Proxifier. So, you could

Determine what resource was not found from “Error from server (NotFound): the server could not find the requested resource”

淺唱寂寞╮ 提交于 2021-02-18 10:36:06
问题 I'm running kubectl create -f notRelevantToThisQuestion.yml The response I get is: Error from server (NotFound): the server could not find the requested resource Is there any way to determine which resource was requested that was not found? kubectl get ns returns NAME STATUS AGE default Active 243d kube-public Active 243d kube-system Active 243d This is not a cron job. Client version 1.9 Server version 1.6 This is very similar to https://devops.stackexchange.com/questions/2956/how-do-i-get

Run Kubernetes api server in minikube in verbose mode

我怕爱的太早我们不能终老 提交于 2021-02-11 14:37:50
问题 Is it possible to run the kubernetes api-server in minikube with maximum log verbosity? $ minikube start --v 4 didn't work for me. When I exec into the api-server container and do ps, the api-server commandline didn't have --v=4 in it. So, minikube is not passing the --v = 4 down to the api-server. Thanks. 回答1: there is an error in the parameters, try this instead minikube start --v=7 来源: https://stackoverflow.com/questions/55929593/run-kubernetes-api-server-in-minikube-in-verbose-mode

Kubernetes job to delete a single pod every minute

╄→尐↘猪︶ㄣ 提交于 2021-02-11 06:43:38
问题 I'd like to create a Job to kill the following pod every single minute or any time when is created. My testing pod is: apiVersion: v1 kind: Pod metadata: name: myapp-pod labels: app: myapp spec: containers: - name: myapp-container image: busybox command: ['sh', '-c', 'echo Hello && sleep 3600'] Is it possible to do that? 回答1: Yes, you can delete the pods with kubectl within the cluster. First, you need to create a set of RBAC(Role-based access control) object. Here is the sample. apiVersion:

How to route test traffic through kubernetes cluster (minikube)?

生来就可爱ヽ(ⅴ<●) 提交于 2021-02-11 04:33:10
问题 I have a minikube cluster with two pods (with ubuntu containers). What I need to do is route test traffic from one port to another through this minikube cluster. This traffic should be sent through these two pods like in the picture. I am a beginner in this Kubernetes stuff so I really don't know how to do this and which way to go... Please, help me or give me some hints. I am working on ubuntu server ver. 18.04. enter image description here 回答1: I agree with an answer provided by @Harsh

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

一个人想着一个人 提交于 2021-02-10 18:15:36
问题 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