Brief Index: Who are we: 0:50 You have Choises: 2:57 Spring boot and Containers: 5:24 What about Kubernetes: 7:10 What is Spring Cloud Kubernetes: 9:27 What you're about to see: 15:14 Demo time!: 15:56 Eureka running: 18:50 Using the Gateway to make a request: 19:51 Chaos Monkey for Spring Boot: 21:03 Running on Kubernetes (Explanation): 23:50 Dekorate (Easy way to generate YML file for Kubernates): 28:20 Applying (deploying )the generated Kubernetes YML for each microservices: Fashion: 33:07 Toys, HotDeals and Gateway: 38:30 2nd Part. Alex's turn: 42:59 Kubeapps: 44:01 Alex's branch checkout: 46:38 Connection to the Datasource: 49:38 Overriding the DB configuration into the ToysServices execution: 50:46 Creating a new Toy using the ToysServices from the Cloud: 1:01:03 Finally: Do I need Spring Cloud Kubernetes: 1:02:55
Great job and thanks. Dockerizing a Spring boot project might worth to be in the show, not literally doing it and waiting for the network magic. Also thanks for introducing Dekorator! 👍😊
Good presentation on Spring Cloud. I am curious about the command line tool you used during presentation (left and right), please can you provide the details on how to install them. Thanks
Great demo guys.. One thing I wanted to confirm, spring-cloud-kubernetes-discovery will work with Feign clients as well out of the box? I have application running on UAT with eureka and internally they communicate via HTTP Rest using Feign clients. Now I want to remove Eureka way and want to do service discovery in kubernetes. So I was hoping with spring-cloud-kubernetes dependencies everything would work out of the box. But I am facing weird exceptions. Can you give me idea on high level if it works out of the box and can point me to some examples?
Exception - Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.techpleiad.aiproduct.web.TestController': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-netflix-ribbon?
When i run command: kubectl create --filename backend/java/target/classes/META-INF/dekorate/kubernetes.yml I get such an error: Unable to connect to the server: dial tcp 127.0.0.1:32768: connectex: No connection could be made because the target machine actively refused it. What is this adress? Can anybody please help me to resolve this?
- Did you run docker-kubernetes? - Did you set "serviceType: NodePort" (minute 30:09) in the backend's "application-kubernetes.properties"? - Where are you pointing to? to the cloud or localhost? - Why do you have 32768 configured? Mostly, when a connection refused happens two of the multiple cases is because you targeted a wrong port or the app have not ran yet. (I repeat, there are many reasons)
Brief Index:
Who are we: 0:50
You have Choises: 2:57
Spring boot and Containers: 5:24
What about Kubernetes: 7:10
What is Spring Cloud Kubernetes: 9:27
What you're about to see: 15:14
Demo time!: 15:56
Eureka running: 18:50
Using the Gateway to make a request: 19:51
Chaos Monkey for Spring Boot: 21:03
Running on Kubernetes (Explanation): 23:50
Dekorate (Easy way to generate YML file for Kubernates): 28:20
Applying (deploying )the generated Kubernetes YML for each microservices:
Fashion: 33:07
Toys, HotDeals and Gateway: 38:30
2nd Part.
Alex's turn: 42:59
Kubeapps: 44:01
Alex's branch checkout: 46:38
Connection to the Datasource: 49:38
Overriding the DB configuration into the ToysServices execution: 50:46
Creating a new Toy using the ToysServices from the Cloud: 1:01:03
Finally:
Do I need Spring Cloud Kubernetes: 1:02:55
Great job and thanks. Dockerizing a Spring boot project might worth to be in the show, not literally doing it and waiting for the network magic. Also thanks for introducing Dekorator! 👍😊
Good presentation on Spring Cloud. I am curious about the command line tool you used during presentation (left and right), please can you provide the details on how to install them. Thanks
Great demo guys.. One thing I wanted to confirm, spring-cloud-kubernetes-discovery will work with Feign clients as well out of the box? I have application running on UAT with eureka and internally they communicate via HTTP Rest using Feign clients. Now I want to remove Eureka way and want to do service discovery in kubernetes. So I was hoping with spring-cloud-kubernetes dependencies everything would work out of the box. But I am facing weird exceptions. Can you give me idea on high level if it works out of the box and can point me to some examples?
Exception - Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.techpleiad.aiproduct.web.TestController': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-netflix-ribbon?
When i run command: kubectl create --filename backend/java/target/classes/META-INF/dekorate/kubernetes.yml
I get such an error:
Unable to connect to the server: dial tcp 127.0.0.1:32768: connectex: No connection could be made because the target machine actively refused it.
What is this adress? Can anybody please help me to resolve this?
- Did you run docker-kubernetes?
- Did you set "serviceType: NodePort" (minute 30:09) in the backend's "application-kubernetes.properties"?
- Where are you pointing to? to the cloud or localhost?
- Why do you have 32768 configured?
Mostly, when a connection refused happens two of the multiple cases is because you targeted a wrong port or the app have not ran yet. (I repeat, there are many reasons)