- Docker
- Kubernetes
- NPM
- Skaffold
- Setup the environment keys:
kubectl create secret generic jwt-secret --from-literal=JWT_KEY=<SECRET_KEY>
kubectl create secret generic stripeTs-secret --from-literal=STRIPE_KEY=<STRIPE_PRIVATE_KEY>
- First time running ingress-nginx? (https://kubernetes.github.io/ingress-nginx/deploy/)
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/static/provider/cloud/deploy.yaml
-
We use the
posts.com
domain name to point to the Kubernetes cluster.Go to:
Windows: C:\Windows\System32\drivers\etc\hosts Mac/Linux: /etc/hosts
Paste
127.0.0.1 ticketing.dev
at the bottom of thehosts
file.
- When you run
skaffold dev
for the first time it's possible thatingress-nginx-admission
throws an error. Closeskaffold dev
and executekubectl delete -A ValidatingWebhookConfiguration ingress-nginx-admission
. Rerunskaffold dev
Run this project using skaffold dev
(may need to run 2 times)
Just type CTRL+C
to terminate Skaffold.
Check if Skaffold deleted all the pods, services and deployments by running kubectl get all
.
If this is not the case, run kubectl delete all --all