GithubHelp home page GithubHelp logo

tke-cluster-applications's Introduction

tke-cluster-applications

Need Helm 3+.

Be care for comments that starts with // ! in values.yaml

Traefik - 2.5

Requirements:

  • A default PersistentVolume >= 10G

Changes:

  • Exposed host 80 and 443 ports.
  • Service use ClusterIP (Avoid expensive default LB).
  • TLS with persistence.

Quick started:

# Please clone this repo to local first

helm upgrade traefik ./traefik --install # if install before upgrade

helm uninstall traefik # uninstall

# ! Change `certificatesResolvers.default.acme.caserver` when production

References:

Routing usage: Expose your service by IngressRoute

Expose web service my-nginx-app:80 to https://my-nginx-app.com with auto cert and https-redirect.

# expose service to http://my-nginx-app.com
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: my-nginx-app
spec:
  entryPoints:
    - web
  routes:
    - match: Host(`my-nginx-app.com`)
      kind: Rule
      # a service reference
      services:
        - name: my-nginx-app
          port: 80
      # redirect to https by custom middleware
      middlewares:
        - name: my-nginx-app-https-redirect-middleware
---
# custom middleware for redirect to https
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
  name: my-nginx-app-https-redirect-middleware
spec:
  redirectScheme:
    scheme: https
    permanent: true
---
# expose service to https://my-nginx-app.com
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: my-nginx-app-tls
spec:
  entryPoints:
    - websecure
  routes:
    - match: Host(`my-nginx-app.com`)
      kind: Rule
      # a service reference
      services:
        - name: my-nginx-app
          port: 80
  tls:
    certResolver: default # Use default. Auto cert from Let's Encrypt

tke-cluster-applications's People

Contributors

aysnine avatar

Stargazers

Roman avatar

Watchers

James Cloos 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.