- Minikube installed & working.
- Document Assumption : Operator in using MacOs without VPN
- Terraform & Helm installed
ProTip: (1# brew install helm) ProTip:(2# brew install terraform)
- minikube tunnel (in a seperate terminal)
- git clone https://github.com/nitinjain999/snow.git
- cd snow/infra/terraform
- terraform init (config path is choosen to config_path = "~/.kube/config", if this is different from default please change it providers.tf)
- terraform apply -auto-approve
➜ kubectl get pods -n snow
NAME | READY | STATUS | RESTARTS | AGE |
---|---|---|---|---|
myapp-7cf759f49-rcd9h | 1/1 | Running | 0 | 11m |
mysql-0 | 1/1 | Running | 0 | 11m |
| ||||
|
-
On Browser open http://127.0.0.1 ( In terminal "minikube tunnel" , it will prompt for user password )
-
Insert Data
curl -H "Content-Type: application/x-www-form-urlencoded" -X POST http://127.0.0.1:80/storedata -d id=1 -d name=Nitin
8) Fetch Data curl 127.0.0.1:80/getdata/1 or open on browser 127.0.0.1:80/getdata/1