Skip to content

Commit

Permalink
k8s: add custom traefik
Browse files Browse the repository at this point in the history
  • Loading branch information
l-lin committed Jul 29, 2024
1 parent 2311192 commit f9853b3
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 0 deletions.
7 changes: 7 additions & 0 deletions kubernetes/helm/traefik/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Traefik

```sh
helm repo add traefik https://traefik.github.io/charts
helm upgrade traefik traefik/traefik --install -f h-values.yml
```

23 changes: 23 additions & 0 deletions kubernetes/helm/traefik/h-values.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
image:
tag: v3.1.0-rc3
providers:
kubernetesGateway:
enabled: true
experimentalChannel: true

ports:
rtmp:
port: 1935
expose:
default: true
exposedPort: 1935
protocol: TCP
gateway:
listeners:
websecure: null
rtmp:
port: 1935
hostname:
protocol: TCP

32 changes: 32 additions & 0 deletions kubernetes/k3d/custom-traefik.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
#
# Local Kubernetes cluster without Traefik, since I want to configure it myself, especially for exposing the RTMP port.
# src: https://k3d.io/v5.6.3/usage/configfile/
#

apiVersion: k3d.io/v1alpha5
kind: Simple
servers: 1
agents: 0
image: docker.io/rancher/k3s:v1.30.1-k3s1
# ingress
ports:
- port: 80:80
nodeFilters:
- server:0
- port: 1935:1935
nodeFilters:
- server:0
# will use host docker registry
registries:
create:
name: registry.localhost
host: "0.0.0.0"
hostPort: "5000"
options:
k3s:
extraArgs:
- arg: "--disable=traefik"
nodeFilters:
- server:0

0 comments on commit f9853b3

Please sign in to comment.