Kubernetes Example With Multiple Services (React, Express, Worker)
- Kubernetes
- minikube >= 1.3.1
- kubectl >= 1.15.0
1.0.0
Download zip file and extract it latest pre-built release. Or clone the repository and cd into it.
This project uses a number of open source projects to work properly:
- Kubernetes - Production-Grade Container Orchestration
Install kubectl and minikube for your OS.
hyperv
$ minikube start --vm-driver hyperv --hyperv-virtual-switch "<Minikube Name>"
virtualbox
minikube start –vm-driver=virtualbox -p <name>
Once running minikube
cd multi-k8s
minikube status
kubectl cluster-info
Generate your secrets
kubectl create secret generic pgpassword --from-literal PG_PASSWORD=yourpass
kubectl apply -f k8s
To verify pods/deployments/persistent volumes/persistent volume claims/services status
cd multi-k8s
kubectl get deployments
kubectl get services
kubectl get storageclass
kubectl get pv
kubectl get pvc
To verify minikube ip/dashboard
cd multi-k8s/k8s
minikube ip
minikube dashboard
- Add code comments