- Install Docker
- Enable Kubernetes in Docker > Preferences
-
Create kubectl secrets
kubectl create secret generic jwt-secret --from-literal=JWT_KEY=-- any string right nowkubectl create secret generic stripe-secret --from-literal=STRIPE_KEY=-- from stripe developer dashboard
-
Install ingress-nginx in
ticketing/withkubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.5.1/deploy/static/provider/cloud/deploy.yaml -
Apply kubernetes in
ticketing/infra/k8swithkubectl apply -f . -
Apply kubernetes in
ticketing/infra/k8s-devwithkubectl apply -f .
- Install packages in all services (TODO: write a script to handle this)
npm i- /auth
- /client
- /expiration
- /orders
- /payments
- /tickets
-
update hosts file to forward localhost to ticketing.dev
code /etc/hosts- add
127.0.0.1 ticketing.devat end of file
- add
- save file as sudo user
skaffold dev