Giter Site home page Giter Site logo

traefik-v2-kubernetes's Introduction

Traefik v2.2.8 HA production ready

Deploy 3 replicas traefik. Cert-manager to get and automatically renew lets`encrypt certificates. And the test nginx application with ingress and redirect 301 http->https.

Requirenments:

  • Helm v3
  • Kubernetes Cluster (e.g. GKE)

Deploy traefik

  1. $ kubectl create namespace traefik
  2. $ helm repo add traefik https://containous.github.io/traefik-helm-chart
  3. $ helm repo update
  4. $ helm install -n traefik traefik traefik/traefik -f traefik/traefik-values.yaml

Deploy cert-manager

  1. kubectl create namespace cert-manager
  2. $ helm repo add jetstack https://charts.jetstack.io
  3. $ helm repo update
$ helm install \
  cert-manager jetstack/cert-manager \
  --namespace cert-manager \
  --version v0.16.0 \
  --set installCRDs=true

Deploy app nginx

  1. Change in file ingress.yml field routes -> match - write your dns name
  2. $ kubectl create namespace app
  3. $ kubectl apply -f app-nginx/

Create tls cert

  1. Change in file Certificate.yml field dnsNames - write your dns name
  2. Change in file ClusterIssuer.yml field email - write your email
  3. $ kubectl apply -f certs/

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.