Skip to content

linux-china/knative-spring-boot-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Knative Spring Boot Demo

Knative Spring Boot Application with Container Deployment.

How to build with Google Kubernetes Engine

The application use JIB to build Docker images, please refer https://github.com/GoogleContainerTools/jib

  • Build Docker image and push to gcr.io
mvn -P gke -DskipTests clean package

How to visit

You should get KNative ingress gateway IP, then execute http call by domain name convention.

export KNATIVE_GATEWAY=$(kubectl get svc knative-ingressgateway -n istio-system -o 'jsonpath={.status.loadBalancer.ingress[0].ip}')
curl -H "Host: knative-spring-boot-demo.default.example.com" http://$KNATIVE_GATEWAY

About

Knative with Spring Boot

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages