Giter Club home page Giter Club logo

spring-petclinic-data-jdbc's Introduction

Spring PetClinic + Gradle + K8s

디렉토리 및 파일 설명

/manifests : K8s 레시피 - MySQL, PetClinic, Nginx-ingress
build.sh : 빌드 스크립트(check-env.sh 스크립트 실행을 위해 mysqladmin이 필요하다)
deploy.sh : 도커이미지 디플로이

배포 방법

MySQL -> PetClinic -> Nginx-ingress 순서로 배포를 진행한다.

kubectl apply -f mysql-0-pv.yaml
kubectl apply -f mysql-1-deployment.yaml

배포후 mysql 팟이 생성되면 계정 ACL 설정과 스키마 생성을 진행한다.

kubectl exec -it <mysql_podname> -- /bin/bash
mysql -uroot -p

패스워드는 프로퍼티 파일을 참고..

CREATE DATABASE petclinic;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'10.42.0.%' IDENTIFIED BY 'petclinic' WITH GRANT OPTION;
IP 대역은 K8s 클러스터 IP범위를 참고하여 설정한다.
FLUSH PRIVILEGES;

kubectl apply -f petclinic-0-deployment.yaml
wro4j 플러그인을 Gradle에 설정하는 대신 static/resources에 petclinic.css 파일로 대체 하였다.

kubectl apply -f nginx-ingress-0-deployment.yaml
싱글 노드라면 해당 노드의 IP에 80포트로 PetClinic에 접근 가능하다.

spring-petclinic-data-jdbc's People

Contributors

aaguilera avatar adityaketkar avatar aidenchiavatti avatar arey avatar bram-atmire avatar cbeams avatar colinbut avatar craigsdennis avatar cruftex avatar crydust avatar cyrille-leclerc avatar freemansoft avatar gordonad avatar helloworld123122344134 avatar henri-tremblay avatar htynkn avatar jericbryledy avatar liouxiao avatar maciejwalkowiak avatar meltsufin avatar oltruong avatar oscr avatar rstoyanchev avatar saturnism avatar snicoll avatar tduchateau avatar tejasm avatar trepel avatar verydapeng avatar yish8213 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.