Giter Site home page Giter Site logo

rschev / skaffold-helm-tutorial Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kapernikov/skaffold-helm-tutorial

0.0 0.0 0.0 13.18 MB

Hands on tutorial to learn docker, kubernetes, helm and skaffold. Ideal as a next step in your learning experience after getting some theory

License: Apache License 2.0

JavaScript 16.76% HTML 23.47% Vue 19.12% Python 10.51% Shell 0.58% TypeScript 29.55%

skaffold-helm-tutorial's Introduction

skaffold-helm-tutorial

This tutorial gives you hands on docker, kubernetes, helm and skaffold experience. This is done using a very simple application: vue on the frontend and fastapi python on the backend. The only functionality is to get the time!

How to work with this tutorial

You can set up a hetzner cloud environment if you don't want to work on a local machine. You can do this using the pulumi stack here.

As an alternative, you can work locally. Make sure you have a recent linux distribution with docker installed (eg ubuntu 20.04 with the docker.io package). In order to follow this tutorial in a comfortable way, adhere to:

  • At least 8GB of ram (16 will be even more comfortable, especially if you want to run a heavy IDE)
  • At least 40GB of disk space. When disk space is getting low, kubernetes taints your nodes and your pods won't run anymore!
  • Don't use a hard disk, use a SSD or kubernetes will be horribly slow. Preferably a nvme ssd, not a SATA one.

If you decided to work remotely, you probably want to use Visual studio code remote SSH extension

To get started with the tutorial, clone this repository locally:

git clone https://github.com/Kapernikov/skaffold-helm-tutorial

Then, work in this directory skaffold-helm-tutorial for all the rest of the tutorial.

Prerequisites

This tutorial assumes some knowledge beforehand. You will have trouble following if you don't have the following:

  • A basic understanding of docker. (You must have built a docker image and have written a Dockerfile already). There are lots of tutorials on docker.
  • Some knowledge on linux shell (bash) scripting. Linux shell is used everywhere to glue all kind of stuff together. Go here for a tutorial on using the linux terminal, and here for a tutorial on writing shell scripts (however, you won't need all of the advanced stuff mentioned in that tutorial, so a couple of chapters will do fine).

Software requirements

This tutorial assumes the use of linux. You can also use a virtual machine on windows or WSL2 (avoid WSL1, it won't work). For WSL2, you need to take into account some caveats. See specific instructions here.

This tutorial requires docker! So you need to install docker on your linux machine. On ubuntu, it's as simple as

sudo apt install docker.io

This will install the bundled version of docker, which is not totally up to date. If you want to use newer features (like buildx) you need to install docker ce according to the official instructions.

In addition to this, some frequently used tools are also needed:

sudo apt install wget curl vim zip git

The tutorial: table of contents:

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.