Giter VIP home page Giter VIP logo

skaffold-tutorial's Introduction

Skaffold tutorial

About this project

This project is cloned from Spring PetClinic and its purpose is to showcase how Skaffold works.

Requirements

  • skaffold CLI installed
  • Docker daemon installed
  • Kubernetes cluster access and kubectl set up to use it (minikube or docker-desktop will do)

Getting started

First, choose your building type. I've made examples for Dockerfile and Jib. There are others too, so go ahead and read more about them here if you are interested.


Dockerfile

To build the application using Dockerfile, first rename the corresponding Skaffold configuration to skaffold.yaml:

cp skaffold.yaml skaffold.yaml.old; cp skaffold.yaml.dockerfile skaffold.yaml

Jib

To build the application using Jib, first rename the corresponding Skaffold configuration to skaffold.yaml:

cp skaffold.yaml skaffold.yaml.old; cp skaffold.yaml.jib skaffold.yaml

Next, run skaffold dev and watch the application get built and deployed to Kubernetes. Once it's ready, the output will be automatically redirected to our terminal.

Note: If it's your first time building it, it may take a while, as Maven has to download all the dependencies. In my experience, it usually takes around 10-15 minutes.

To watch changes get deployed live, open another terminal and run this:

echo '<!-- -->' >> src/main/resources/templates/vets/vetList.html

You should be able to access the application at localhost:8080.

Documentation

You can access the official Skaffold documentation here.

skaffold-tutorial's People

Contributors

aaguilera avatar arey avatar boly38 avatar boykoalex avatar cruftex avatar crydust avatar cyrille-leclerc avatar dastier avatar freemansoft avatar gordonad avatar liouxiao avatar lukasz-szewc avatar mklose avatar mustafau avatar oltruong avatar oscr avatar patrickcrocker avatar rfigueroa avatar rstoyanchev avatar saturnism avatar snicoll avatar spring-operator avatar srenkens avatar tduchateau avatar tejasm avatar trepel avatar trisberg avatar urkolekuona avatar verydapeng avatar vladfau avatar

Watchers

 avatar  avatar  avatar

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.