Imperio Linode Services is service meant to proc desired deployments based on incoming requests.
Localhost tests
- Make sure nodemon is intalled by
npm install -g nodemon
- Make sure local libraries are fetched
npm i
- Use
npm run-script serve
to start app. Follow package.json for exact command if needed. - In case of
File not found
like errors, this is 99% a config issue due to cloud envs difference.
Tests via Skaffold.
-
Run docker, and kubernetes cluster and have it configured in/ ~/.kube/config. Rancher desktop is recommended as it runs both. Important note, is to have Traefik disabled here.
-
Change application.yml to match current infrastructure. Also need to manually add in linode token in linode.txt
-
Look for istio gateway external ip. Get it by using use kubectl get svc -n istio-system When IP is obtained, edit /etc/hosts and add/ < ip > x.imperio where x is name of services that are to be used, ie. for gateway/ 192.168.0.227 gateway.imperio
-
Hit
sh ./run-local.sh <linode_token>
command and wait for spring app to start in pod
npm run-script serve
-
Build docker image
-
Ensure correct kubeconfig and proper profile is chosen by using
kubectl config get-context
andkubectl config use-context <name>
-
Apply imperio-linode-services file via kubectl apply -f
Watching for changes...
stuck -> This is resolved by commenting or uncommenting (and letting it be like that) sync
object in skaffold.yaml