When the cluster is created for the first time, we need to:
mv secrets.sh.sample secrets.sh
sh secrets.sh
docker push eu.gcr.io/masajid-261221/masajid-frontend:latest
kubectl exec -it masajid-frontend-pod rails db:create db:migrate db:seed
kubectl exec -it masajid-frontend-pod rails content_places:import only=countries
We deploy using Kustomize.
To deploy locally use:
kustomize build local | kubectl apply -f -
To deploy to prod use:
kustomize build prod | kubectl apply -f -