Minikube

minikube expose service on specific port

大城市里の小女人 提交于 2019-12-11 06:55:32
问题 Is it possible to expose a service on a specific port using minikube ? kubectl expose deployment my-deployment --type=NodePort --port=80 does not throw an error but when calling minikube service my-deployment --url it results in something like: http://192.168.99.100:31512 and it is not available on port 80 but on port 31512 instead. 回答1: Valid ports for minikube of type nodePort by default are 30000-32767 according to https://kubernetes.io/docs/concepts/services-networking/service/#nodeport I

Traefik ingress does not work with cluster IP

蹲街弑〆低调 提交于 2019-12-11 05:45:55
问题 I am using minikube for developing an application on Kubernetes and I am using Traefik as the ingress controller. I am able to connect and use my application services when I use the url of the host which I defined in the ingress ("streambridge.local") and I set up in the linux hosts ("/etc/hosts"). But when I use the exact same ip address that I used for the dns I am not able to connect to any of the services and I receive "404 page not found". I have to mention that I am using the IP address

Deploying Spring Boot App on Kubernetes: App uses wrong port property from environment variable

走远了吗. 提交于 2019-12-11 05:37:39
问题 I am trying to deploy a "Hello world" Spring Boot app on Kubernetes (Minikube). The app is really simple, just one method, which is mapped on a GET resource. I even do not specify a port. I am now trying to deploy the app on Minikube, and making it available using a Service: kind: Service apiVersion: v1 metadata: name: server spec: selector: app: server ports: - protocol: TCP port: 8080 type: NodePort --- apiVersion: apps/v1 kind: Deployment metadata: name: server spec: selector: matchLabels:

How to trigger a container to start another container and terminate it when a REST query is passed to it?

大兔子大兔子 提交于 2019-12-11 04:15:23
问题 i have two separate containers having docker images where one is running the REST application and the other one is running the process for downloading satellite images. My aim is that when i click on the download button after passing the query with defined parameters in my main application, it should start the container for download and once downloaded, it should stop the container .Currently i am able to run the container for download independently by providing all the necessary environment

Kubernetes Minikube hostPath mount not reloading

半世苍凉 提交于 2019-12-11 04:03:21
问题 I have a Kubernetes cluster running locally via Minikube. I have a local folder on my Mac mounted via the hostPath volume config and accessible to the Docker container at the location: /code/bot I can create a service and load the webpage just fine. But when I change the code and reload the page, it does not update. I have to delete and re-create the deployment for the code to refresh. Is there any way to have mount be "live", so it refreshes automatically? 回答1: A remark: (compiled) Code

istio-pilot on minikube is always in pending state

左心房为你撑大大i 提交于 2019-12-11 01:58:56
问题 istio-pilot pod on minikube kubernetes cluster is always in Pending state. Increased CPU=4 and memory=8GB. Still the status of istio-pilot pod is Pending. Is specific change required to run istio on minikube other than the ones mentioned in documentation? 回答1: Resolved the issue . Im running minikube with Virtual box and running minikube with higher memory and CPU does not reflect until minikube is deleted and started with new parameters. Without this it was resulting in Insufficient memory.

How may I run minikube on a RHEL VM?

时间秒杀一切 提交于 2019-12-11 01:39:57
问题 Is there a way to run Kubernetes minikube on a RHEL VM (Hypervisor)? Or is there any other way to try out Kubernetes with a single VM? 回答1: To run minikube on a RHEL CentOS VM, you need to install docker and virtualbox, before installing minikube and kubectl. Since minikube runs in a VM also, you be using nested virtualization, so you need to ensure that virtualization is enabled in the BIOS of your RHEL CentOS VM. Once your VM is up and running, SSH in as root and run the following: #

Minikube with basic-auth fails to start

帅比萌擦擦* 提交于 2019-12-11 01:24:08
问题 I am trying to test basic authentication with latest minikube and it fails to start. First I start minikube with the following minikube --cpus 6 --memory 10000 --alsologtostderr start --kubernetes-version="v1.13.0" --vm-driver=virtualbox Once running I then use minikube ssh and create the file /var/lib/minikube/certs/mini/users.csv with the contents somepassword,johndoe,johndoe123,developers ie. $ ls -lat /var/lib/minikube/certs/mini/users.csv -rw-r--r-- 1 root root 43 Dec 9 21:31 /var/lib

kubectl : connection refused

帅比萌擦擦* 提交于 2019-12-11 00:44:20
问题 I am on the way of installing minkube 0.19.1 in Ubuntu 16.04 following the kubernetes documentation. As prerequisits I have installed kubectl and Oracle VirtualBox. When I check kubectl with kubectl version it gives following. Client Version: version.Info{Major:"1", Minor:"6", GitVersion:"v1.6.6", GitCommit:"7fa1c1756d8bc963f1a389f4a6937dc71f08ada2", GitTreeState:"clean", BuildDate:"2017-06-16T18:34:20Z", GoVersion:"go1.7.6", Compiler:"gc", Platform:"linux/amd64"} The connection to the server

Minikube networking

痴心易碎 提交于 2019-12-10 17:11:56
问题 I have a Linux build machine that I have installed minikube too. Within the minikube instance I have installed artifactory which I will be using for storing various build artifacts I now want to be able to do some work on my dev machine (which is an unrelated laptop on the same network as the Linux build machine) and push some built artifacts into artifactory. However I can't figure out how to get to artifactory. When I ssh to the Linux server and check the minikube service I can see that the