GithubHelp home page GithubHelp logo

petclinic-kubernetes's Introduction

petclinic on K8s/MySQL

  1. Setup an env varible to target the images:
export REPOSITORY_PREFIX=ahmedgabercod
  1. Create the spring-petclinic namespace:
kubectl apply -f k8s/init-namespace/
  1. Create the Kubernetes services that will be used by our deployments:
kubectl apply -f k8s/init-services
  1. Setup the MySQL backend store using Helm:
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo update
helm install vets-db-mysql bitnami/mysql --namespace spring-petclinic --version 9.1.4 --set auth.database=service_instance_db
helm install visits-db-mysql bitnami/mysql --namespace spring-petclinic  --version 9.1.4 --set auth.database=service_instance_db
helm install customers-db-mysql bitnami/mysql --namespace spring-petclinic  --version 9.1.4 --set auth.database=service_instance_db
  1. Our deployment YAMLs have a placeholder called REPOSITORY_PREFIX so we'll be able to deploy the images from Docker Hub:
./scripts/deployToKubernetes.sh
  1. Verify the pods are deployed:
kubectl get pods -n spring-petclinic
  1. Get the IP address of the node and access the gateway using $NODE_IP:32000 from a web browser:
echo $(kubectl get nodes -o jsonpath='{.items[*].status.addresses[?(@.type=="InternalIP")].address}':32000)

petclinic-kubernetes's People

Contributors

ahmedgabers avatar gamunu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.