Giter Site home page Giter Site logo

eemin / traefik-workshop Goto Github PK

View Code? Open in Web Editor NEW

This project forked from traefik-workshops/traefik-workshop

0.0 0.0 0.0 31 KB

Getting started with Traefik on Kubernetes. A few exercises that help you to start the journey with Traefik Proxy.

Home Page: https://traefik.io

traefik-workshop's Introduction

Getting started with Traefik on Kubernetes

Traefik Workshop #1

The recording of this workshop is already available at Traefik's You Tube channel. Here is the link.

Prerequisities

You need to have Kubernetes cluster that you can connect to, Helm3 installed and a domain that points to the external IP address of the cluster.

A quick deployment of Kubernetes cluster

K3D is a lightweight wrapper to run multi-node cluster. It will spin up K3S under in docker. Currently, it comes with Traefik v1, that's why we need to set arguments to disable Traefik while provision cluster for the workshop purposes.

One can use the following command to setup a cluster:

k3d cluster create workshop \
--k3s-server-arg "--disable=traefik"  \
-p "80:80@loadbalancer" \
-p "443:443@loadbalancer" \
--agents 2

It will create the cluster with two worker nodes and expose the port 80 and 443. It is enough to go through the exercises below.

Installing Helm

Helm is the package manager for Kubernetes. Here is the link to the official Helm docs to guide how to install Helm3+ in your local environment.

Installing Traefik through package manger will run a preconfigured Traefik instance. It is one of the recommended approaches. You can start exploring Traefik and focus on its features. There is still option to deploy it manually on your Kubernets cluster.

The agenda of the hands on workshops

  1. Installing Traefik Proxy
  2. Traefik Dashboard
  3. Deploying test application on Kubernetes
  4. Creating Kubernetes Ingress HTTP
  5. Adding extra configuration to values.yaml
  6. Deploying Traefik with the new configuration
  7. Creating Kubernetes Ingress HTTPS
  8. Creating Redirectscheme middleware
  9. Assigning Middleware to the Kubernetes Ingress HTTP
  10. Scaling up / down the application
  11. Creating Kubernets CRD (HTTP)
  12. Creating Kubernetes CRD (HTTPS)
  13. Creating Basic Auth Middleware with Kubernetes Secrets
  14. Kubernetes CRD for Dashboard
  15. Enabling metrics endpoint
    1. Installing Prometheus Stack

traefik-workshop's People

Contributors

jakubhajek 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.