Giter Site home page Giter Site logo

springboot-minikube-fabric8's Introduction

Spring Boot + minikube + fabric8

Build Status

Install minikube locally

https://kubernetes.io/es/docs/tasks/tools/install-minikube/

Windows10

If you are using chocolatey. Install minikube with following command

choco install docker-desktop
choco install minikube
minikube start

OSX

brew install minikube
minikube start

## Kubernates tutorials https://kubernetes.io/es/docs/tutorials/kubernetes-basics/create-cluster/cluster-interactive/

Store custom built docker images within Minikube’s virtual environment

eval $(minikube docker-env)

##How to create docker image of the application

#mvn fabric8:build

##create the kubernets and openshift deplyment scripts

mvn fabric8:resource

##deploy application

mvn fabric8:deploy

##check pods

kubectl get pods
kubectl get svc

##check application url

minikube ip
kubectl get svc
CLUSTER= $(minikube ip)
curl $CLUSTER:31764/api/hello/Vivek

##Debug: remote debugging:

mvn fabric8:debug

Go to intellij: add remote debug config and start debug add debug point

##Hot reload:

mvn fabric8:watch

change the code and then trigger reload by:

mvn package 

##Trouble shooting IF you see ImagePullBackOff or ErrImagePull error while performing kubectl get pods. you need to store custom built docker images within Minikube’s virtual environment

eval $(minikube docker-env)

##Reference:

springboot-minikube-fabric8's People

Contributors

jabrena avatar vivekwpatil avatar

Watchers

 avatar

Forkers

jabrena

springboot-minikube-fabric8's Issues

Issue deploying the microservice

I follow the documentation but I receive the following error:

$ kubectl get pods -w
NAME                                           READY   STATUS         RESTARTS   AGE
springboot-minikube-fabric8-7ffbbcbb99-sdv2h   0/1     ErrImagePull   0          11m
springboot-minikube-fabric8-7ffbbcbb99-sdv2h   0/1     ImagePullBackOff   0          11m
springboot-minikube-fabric8-7ffbbcbb99-sdv2h   0/1     ErrImagePull       0          16m
springboot-minikube-fabric8-7ffbbcbb99-sdv2h   0/1     ImagePullBackOff   0          16m
springboot-minikube-fabric8-7ffbbcbb99-sdv2h   0/1     ErrImagePull       0          21m
springboot-minikube-fabric8-7ffbbcbb99-sdv2h   0/1     ImagePullBackOff   0          21m

In local, I built the image:

$ docker images
REPOSITORY                                TAG                 IMAGE ID            CREATED             SIZE
engineering/springboot-minikube-fabric8   latest              275327a417d1        17 hours ago        476MB
fabric8/java-centos-openjdk8-jdk          1.5                 f68885b8dce1        9 months ago        457MB

Any idea to solve it?

Juan Antonio

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.