This script will enable you to run your application locally in kubernetes so that your environment replicates production.
Run
theinstall.sh
script
$ ./install.sh
-
This script will automate the following:
- Installing prerequisites.
- Setup minikube and addons.
- Installing operators.
-
A description of each stage is detailed below.
-
Prerequisites
In order to ensure versions are consistant across devices we use a tool called asdf to install and manage application versions for us, similar to
rvm
ornvm
.brew
: Install from herevirtualbox
: can be installed withbrew install --cask virtualbox
asdf
: can be installed withbrew install asdf
minikube
plugin:asdf plugin-add minikube
skaffold
plugin:asdf plugin-add skaffold
kubectl
plugin:asdf plugin-add kubectl
-
Setup minikube and addons
Minikube is a tool to run a kubernetes cluster on your local machine allowing you to simulate networking as it would exist in NP and prod. We also enable 2 addons for minikube which allow us to use ingress resources, and add a DNS resolver to allow using the ingresses locally.