Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/t18n/k8s-with-minikube
A local K8s cluster with Minikube and Hyperkit
https://github.com/t18n/k8s-with-minikube
docker hyperkit k8s k8s-cluster minikube nodejs postgresql react redis travis-ci
Last synced: about 2 months ago
JSON representation
A local K8s cluster with Minikube and Hyperkit
- Host: GitHub
- URL: https://github.com/t18n/k8s-with-minikube
- Owner: t18n
- Created: 2019-04-19T13:20:58.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T20:17:37.000Z (almost 2 years ago)
- Last Synced: 2023-04-28T08:24:55.074Z (over 1 year ago)
- Topics: docker, hyperkit, k8s, k8s-cluster, minikube, nodejs, postgresql, react, redis, travis-ci
- Language: JavaScript
- Size: 1.76 MB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Local K8s with Minikube and Hyperkit
This project is to quickly create a K8s cluster on local machine with Minikube.
Note: This instruction is on Mac OS
## App structure
- `client/`: A copy of [React Minimal Boilerplate](https://github.com/turbothinh/React-ES6-Minimal-Boilerplate)
- `server/`: Simple Node Restful API## Prerequisite
- Homebrew installed
- Hypervisor installed (Virtualbox, Hyperkit, etc.)## Get started
1. Install `kubectl` and `Hyperkit` with `Homebrew`
```brew install kubernetes-cli hyperkit && kubectl version```
2. Install [Minikube](https://github.com/kubernetes/minikube) with `Homebrew`
```brew cask install minikube```3. Set Minikube driver to `Hyperkit` (default is `Virtualbox`)
`minikube config set vm-driver hyperkit`4. Create a Minikube node and enable Ingress
```minikube start```5. Enable Ingress Add-on for Minikube
```minikube addons enable ingress```6. Clone this repo
```git clone [email protected]:turbothinh/K8s-with-Minikube.git && cd K8s-with-Minikube```7. Create objects in the cluster
```kubectl apply -f k8s```8. Enable Ingress-nginx service
```kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/mandatory.yaml```9. Check if everything is working correctly using Minikube dashboard
```minikube dashboard```11. Connect to the exposed services: `client` and `server`
* First get **Minikube IP** by running `minikube ip`
* Copy the IP and paste to browser to visit `client`
* Append `/api` to the IP on browser to visit `server`Walla!