-
Install VirtualBox Refer to: https://www.virtualbox.org/wiki/Downloads
-
Install Docker MacOS:
brew install docker
-
Install Kubectl MacOS:
brew install kubectl
-
Install Minikube MacOS:
brew cask install minikube
-
Install Helm MacOS:
brew install kubernetes-helm
-
Initialise MiniKube
minikube start
-
Initialise Helm
helm init
<-- this only needs to be done once -
Deploy Ingress
minikube addon enable ingress
-
Configure PostgreSQL Edit
postgresUser
&postgresPassword
as desired in the following file./deploy/helm/central-directory-helm-postgresql-values.yaml
-
Deploy PosgreSQL
helm install --name central-directory -f ./deploy/helm/central-directory-helm-postgresql-values.yaml stable/postgresql
-
Configure credentials in the Central-directory-secret Edit
db.uri
with the details from step 10 above in the following file./deploy/k8s/central-directory-secret.yaml
.Ensure the values are base64 encoded.
-
Deploy Central-directory
kubectl create -f ./deploy/k8s
Or alternatively you can stipulate a namespace for deployment
kubectl -n dev create -f ./deploy/k8s
-
Add the following to your hosts file
<IP> central-directory.local
Where <IP>
can be attained using the following command minikube ip
- Open K8s Dashboard
minikube dashboard