Skip to content

CHECK ORGANISATION REPOS FOR REST. Deploy Linode instances via api.

Notifications You must be signed in to change notification settings

imperio-linode/linode-services

Repository files navigation

Imperio Linode Services

THIS IS HEAVILY UNDER WORK and will be for some time

Aim

Imperio Linode Services is service meant to proc desired deployments based on incoming requests.

Functional Testing

Localhost tests

  1. Make sure nodemon is intalled by npm install -g nodemon
  2. Make sure local libraries are fetched npm i
  3. Use npm run-script serve to start app. Follow package.json for exact command if needed.
  4. In case of File not found like errors, this is 99% a config issue due to cloud envs difference.

Tests via Skaffold.

  1. 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.

  2. Change application.yml to match current infrastructure. Also need to manually add in linode token in linode.txt

  3. 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

  4. Hit sh ./run-local.sh <linode_token> command and wait for spring app to start in pod

npm run-script serve

Cloud Deployment

  1. Build docker image

  2. Ensure correct kubeconfig and proper profile is chosen by using kubectl config get-context and kubectl config use-context <name>

  3. Apply imperio-linode-services file via kubectl apply -f

Known bugs

Watching for changes... stuck -> This is resolved by commenting or uncommenting (and letting it be like that) sync object in skaffold.yaml

About

CHECK ORGANISATION REPOS FOR REST. Deploy Linode instances via api.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published