Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

DIY Java & Kubernetes

295 views

Published on

Slides from my talk at jPrime.io about Java Microservices and Kubernetes

Published in: Software
  • Be the first to comment

  • Be the first to like this

DIY Java & Kubernetes

  1. 1. DIY Java & Kubernetes Pance Cavkovski, Netcetera / JUG MK, jPrime 2016
  2. 2. whoamisenior software engineer @ Netcetera jug.mk Leader codefu.mk admin hardware & IoT enthusiast http://pance.mk/ and @hsilomedus
  3. 3. Disclaimer Not affiliated with Google, Pivotal or Docker Not an expert talk, my findings and experiments Many thanks to: – Ray Tsang (@saturnism) – Arjen Wassink (@ArjenWassink)
  4. 4. Spring Boot
  5. 5. Spring boot Simplifies start and configuration of Spring apps Pre-configured deps., embedded app-server, jar packing “Cloud native” Java Check out: http://start.spring.io/
  6. 6. Docker + Spring Boot
  7. 7. Docker + Spring Boot 1. Have Spring Boot app and Docker installed 2. (reuse) Dockerfile 3. Spotify docker maven plugin (mvn docker:build) 4. Run/Push
  8. 8. Demo! Spring Boot, Dockerfile, spotify maven plugin, run/push
  9. 9. Kubernetes
  10. 10. Kubernetes Greek: helmsman, pilot Open source container cluster manager (orhcestrator) Based on Google's Borg Cloud Native Computing Foundation
  11. 11. Kubernetes, usage Commodity hardware, docker clusters, GCP Demos: - 4 node GCP / GCE cluster - gcloud sdk - private GCE hub
  12. 12. Operations kubectl Plugins / Web UI Google Cloud Console Kubernetes, basics Immutable infrastructure Key concepts - Pods - Labels - (Replication) Controllers - Services
  13. 13. Demo! Image build / push Visualization proxy (gcp-live-k8s-visualizer) Controller, pods Scaling Service Rolling update Cleanup
  14. 14. Microservices
  15. 15. Microservices Image credit to @alvaro_sachez
  16. 16. Demo! Split app (ui, service, DB) Session replication Services and discovery (mysql, redis, service, ui) .yaml descriptors Pod operations and failures Cleanup
  17. 17. Homemade cluster 5xRasPi2 + HypriotOS Containerized Kubernetes 3D printed stack (available at thingiverse) Cheap, but slower and ARM
  18. 18. Q / A ? http://pance.mk/ https://twitter.com/hsilomedus https://github.com/hsilomedus

×