2. ➔ Alexandre Roman
Platform Architect, Pivotal (Paris)
aroman@pivotal.io
github.com/alexandreroman
@Alexandre_Roman
About me
3. Why Spring Cloud Kubernetes?
Write portable apps using Spring Cloud
➔ Same source code for different environments
➔ No matter which environment you use, Spring Cloud provides the right platform abstraction
➔ Seamless integration between Kubernetes and Spring
➔ Spring Cloud Kubernetes is GA since February 2019
4. Spring Cloud nicely fits with Kubernetes
Native service discovery
➔ Leverage Spring Cloud Netflix,
without using an Eureka instance
➔ DiscoveryClient uses
Kubernetes DNS resolver and
cluster events
➔ Use @LoadBalanced and
@LoadBalancerClient for
client-side load balancing across
running pods
➔ Spring Cloud Circuitbreaker
support (Hystrix and Resilience4j)
Pod health indicator
➔ Pod health indicator contributes to
Health actuator:
/actuator/health
Kubernetes awareness
➔ When your app is running in
Kubernetes, profile kubernetes
is automatically enabled for
custom configuration
ConfigMap/Secret support
➔ Hot reload your app when you
update your configuration
➔ Inject external configuration
properties using ConfigMap
➔ Map Spring config support with
ConfigMap: @Values,
@ConfigurationProperties
➔ Load Secret values into your
beans
8. Thank you for attending this session
Let’s keep in touch!
github.com/alexandreroman
@Alexandre_Roman
Want more?
Prometheus and Micrometer
github.com/alexandreroman/k8s-prometheus-micrometer-demo
Spring Boot Helm Starter
github.com/alexandreroman/spring-boot-helm-starter
Build Docker images with no Dockerfile
github.com/alexandreroman/k8s-with-no-dockerfile-no-yaml-files