Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Devoxx Morocco 2018 - JHipster Microservices wi...

Devoxx Morocco 2018 - JHipster Microservices with Spring boot 2 and Kubernetes

Learn how to build microservice architectures with JHipster using following options
Classing JHipster Registry based architecture
Using Istio service mesh with Kubernetes

Deepu K Sasidharan

November 27, 2018
Tweet

More Decks by Deepu K Sasidharan

Other Decks in Programming

Transcript

  1. https://jhipster.tech #DevoxxMa @java_hipster $ gcloud projects create jhipster-demo $ gcloud

    config set project jhipster-demo $ gcloud container clusters create hello-hipster \ --cluster-version 1.10 \ --num-nodes 4 \ --machine-type n1-standard-2 $ gcloud container clusters get-credentials hello-hipster
  2. https://jhipster.tech #DevoxxMa @java_hipster $ cd kubernetes $ ./kubectl-apply.sh $ watch

    kubectl get pods -n jhipster $ kubectl get services -n jhipster
  3. https://jhipster.tech #DevoxxMa @java_hipster $ kubectl expose service jhipster-registry --type=LoadBalancer \

    --name=exposed-registry -n jhipster $ kubectl get service exposed-registry -n jhipster
  4. https://jhipster.tech #DevoxxMa @java_hipster $ cd ~/ $ export ISTIO_VERSION=1.0.2 $

    curl -L https://git.io/getLatestIstio | sh - $ ln -sf istio-$ISTIO_VERSION istio $ export PATH=~/istio/bin:$PATH $ kubectl apply -f ~/istio/install/kubernetes/helm/istio/templates/crds.yaml $ kubectl apply -f ~/istio/install/kubernetes/istio-demo.yaml \ --as=admin --as-group=system:masters $ kubectl get svc istio-ingressgateway -n istio-system
  5. https://jhipster.tech #DevoxxMa @java_hipster $ export INGRESS_IP=$(kubectl -n istio-system get svc

    istio-ingressgateway \ -o jsonpath='{.status.loadBalancer.ingress[0].ip}') $ google-chrome store.$INGRESS_IP.nip.io
  6. https://jhipster.tech #DevoxxMa @java_hipster $ kubectl -n istio-system port-forward $(kubectl -n

    istio-system get pod \ -l app=grafana -o jsonpath='{.items[0].metadata.name}') 3000:3000 $ google-chrome http://localhost:3000 $ kubectl -n istio-system port-forward $(kubectl -n istio-system get pod -l \ app=prometheus -o jsonpath='{.items[0].metadata.name}') 9090:9090 $ google-chrome http://localhost:9090
  7. https://jhipster.tech #DevoxxMa @java_hipster $ kubectl -n istio-system port-forward $(kubectl -n

    istio-system get pod -l \ app=jaeger -o jsonpath='{.items[0].metadata.name}') 16686:16686 $ google-chrome http://localhost:16686 $ kubectl -n istio-system port-forward $(kubectl -n istio-system get pod -l \ app=servicegraph -o jsonpath='{.items[0].metadata.name}') 8088:8088 $ google-chrome http://localhost:8088/force/forcegraph.html