setup.sh 1017 B

12345678910111213141516171819202122232425
  1. #!/bin/sh
  2. set -o errexit
  3. # pre-requisite: please make sure you have a cluster ready.
  4. # you can use either one of the ../infrastructure/ shell scripts to create a local Kind cluster.
  5. # point this to where you extracted the gateway installer for k8s
  6. installer_dir='/Users/haythamm/presentations/scg-4k8s/installer-1.0.0'
  7. # to tag and push to registry. localhost:5000 is for a local registry installed with Kind
  8. ${installer_dir}/scripts/relocate-images.sh localhost:5000
  9. # install the gateway operator & CRD and other K8s components
  10. ${installer_dir}/scripts/install-spring-cloud-gateway.sh
  11. # assumed you have the images ready and you want to push
  12. #docker push localhost:5000/frontend-service
  13. #docker push localhost:5000/backend-service
  14. # install gateway, routs, mappings, services and ingress
  15. kubectl apply -f ./install-gateway.yml
  16. kubectl apply -f ./install-gateway-routes-config.yml
  17. kubectl apply -f ./install-gateway-mappings.yml
  18. kubectl apply -f ./install-services.yml
  19. kubectl apply -f ./install-ingress-2.yml