All Projects → superbrothers → minikube-ingress-dns

superbrothers / minikube-ingress-dns

Licence: MIT License
Configure and restart dnsmasq automatically for k8s Ingress LB on minikube.

Programming Languages

shell
77523 projects
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to minikube-ingress-dns

helm3-charts
Helm3 charts for Nexus IQ
Stars: ✭ 84 (+162.5%)
Mutual labels:  minikube
geode-kubernetes
Running Apache Geode Kubernetes
Stars: ✭ 12 (-62.5%)
Mutual labels:  minikube
tezos-k8s
Deploy a Tezos Blockchain on Kubernetes
Stars: ✭ 43 (+34.38%)
Mutual labels:  minikube
oidckube
Wrapper for minikube that provisions and integrates it with Keycloak
Stars: ✭ 40 (+25%)
Mutual labels:  minikube
KubeGrid
KubeGrid - Kubernetes way of orchestrating Docker-Selenium Grid
Stars: ✭ 35 (+9.38%)
Mutual labels:  minikube
k8s0
Another minimal kubernetes with ansible
Stars: ✭ 23 (-28.12%)
Mutual labels:  minikube
distributed-cache-on-k8s-poc
[PoC] Distributed Cache with Akka Cluster Sharding and Akka HTTP on Kubernetes
Stars: ✭ 15 (-53.12%)
Mutual labels:  minikube
docker-hands-on-guide
Hands on guide for docker, k8s cluster lightweight virtualization.
Stars: ✭ 25 (-21.87%)
Mutual labels:  minikube
terraform-aws-minikube
Terraform module for single node Kubernetes instance bootstrapped using kubeadm
Stars: ✭ 58 (+81.25%)
Mutual labels:  minikube
kubernetes-workshop
Kubernetes Workshop
Stars: ✭ 20 (-37.5%)
Mutual labels:  minikube
drone-in-minikube
Run Drone inside minikube
Stars: ✭ 19 (-40.62%)
Mutual labels:  minikube
celery-kubernetes-example
Small Flask app with scalable, asynchronous backend workers deployed on Kubernetes.
Stars: ✭ 79 (+146.88%)
Mutual labels:  minikube
gokube
gokube is a tool that makes it easy developing day-to-day with Kubernetes on your laptop.
Stars: ✭ 22 (-31.25%)
Mutual labels:  minikube
kubernetes-100days
Notes from 100 days with Kubernetes
Stars: ✭ 32 (+0%)
Mutual labels:  minikube
kubernetes-elastic-agents
Kubernetes Elastic agent plugin for GoCD
Stars: ✭ 35 (+9.38%)
Mutual labels:  minikube
nextjs-graphql-auth
Authentication system using NextJS, GraphQL, Apollo Client, Apollo Server, MongoDB, Nginx, Docker, Docker-Compose and Kubernetes
Stars: ✭ 27 (-15.62%)
Mutual labels:  minikube
ci-minikube
run minikube on ci
Stars: ✭ 28 (-12.5%)
Mutual labels:  minikube
pixie
Instant Kubernetes-Native Application Observability
Stars: ✭ 3,238 (+10018.75%)
Mutual labels:  minikube
minikube-operator
An operator for Minikube - Kubernetes on Kubernetes
Stars: ✭ 26 (-18.75%)
Mutual labels:  minikube
minions
Minions for minikube - a demo of kubernetes features
Stars: ✭ 16 (-50%)
Mutual labels:  minikube

minikube-ingress-dns

This repository contains the script files in order to configure and restart dnsmasq automatically for Kubernetes Ingress LB on minikube after running minikube start. For more details, see this article (In Japanese).

Installation

You can install minikube-ingress-dns with homebrew as follows:

$ brew tap superbrothers/minikube-ingress-dns git://github.com/superbrothers/minikube-ingress-dns.git
$ brew install minikube-ingress-dns

Otherwise you just clone this repository to install:

$ git clone https://github.com/superbrothers/minikube-ingress-dns.git /path/to/minikube-ingress-dns

Requirement

To work minikube-ingress-dns requires dnsmasq. If you use macOS, you can install dnsmasq by using Homebrew.

$ brew install dnsmasq

If you use Ubuntu desktop, you don't need to install dnsmasq due to it is already installed.

Usage

Choose the script file for your environment.

# macOS
alias minikube=/path/to/minikube-ingress-dns/minikube-ingress-dns-macos

# Ubuntu 16.04 LTS
alias minikube=/path/to/minikube-ingress-dns/minikube-ingress-dns-ubuntu16

# Ubuntu 14.04 LTS
alias minikube=/path/to/minikube-ingress-dns/minikube-ingress-dns-ubuntu14

The default base domain for Ingress LB is minikube.local. For example, if you create an ingress object like the following, you can access http://nginx.minikube.local/ directly with curl, browser or something.

$ minikube start
$ minikube addons enable ingress
$ kubectl create deployment nginx --image=nginx
$ kubectl expose deploy nginx --port=80 --target-port=80
$ cat <<EOL | kubectl apply -f -
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: nginx.minikube.local
spec:
  rules:
  - host: nginx.minikube.local
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: nginx
            port:
              number: 80
EOL
$ curl http://nginx.minikube.local/

If you'd like to change the base domain from minikube.local, set the new domain name to the MINIKUBE_INGRESS_DNS_DOMAIN environment variable.

export MINIKUBE_INGRESS_DNS_DOMAIN="minikube.local"

License

These scripts are released under the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].