Sign up
Login
New
Trending
Archive
English
English
Sign up
Login
New Paste
Add Image
apiVersion: helm.cattle.io/v1 kind: HelmChartConfig metadata: name: traefik namespace: kube-system spec: valuesContent: |- # Redirection at the entrypoint level (static config). HTTP to HTTPS ports: web: redirections: entryPoint: to: websecure scheme: https permanent: true # Enable Traefik's dashboard over HTTPS api: dashboard: true insecure: false # Disable IngressRoute for the dashboard as we'll use Gateway API HTTPRoute ingressRoute: dashboard: enabled: false # Enable Gateway API and disable Ingress providers: kubernetesGateway: enabled: true kubernetesIngress: enabled: false kubernetesCRD: enabled: true # Configure Gateway API gateway: enabled: true name: traefik-gateway listeners: web: port: 8000 protocol: HTTP namespacePolicy: from: All websecure: port: 8443 protocol: HTTPS namespacePolicy: from: All mode: Terminate certificateRefs: - kind: Secret name: local-selfsigned-tls group: "" # Define custom middleware objects and the new HTTPRoute extraObjects: # 1. Middleware for Basic Authentication - apiVersion: traefik.io/v1alpha1 kind: Middleware metadata: name: dashboard-auth namespace: kube-system spec: basicAuth: secret: dashboard-auth # 2. Middleware to redirect root to /dashboard/ - apiVersion: traefik.io/v1alpha1 kind: Middleware metadata: name: dashboard-redirect namespace: kube-system spec: redirectRegex: regex: "^https://traefik.k3s.local/?$" replacement: "https://traefik.k3s.local/dashboard/" # 3. HTTPRoute to expose the dashboard via Gateway API - apiVersion: gateway.networking.k8s.io/v1 kind: HTTPRoute metadata: name: traefik-dashboard namespace: kube-system spec: # References the Gateway that will handle this traffic parentRefs: - name: traefik-gateway namespace: kube-system sectionName: websecure # Bind to the HTTPS listener # The domain name used to access the dashboard hostnames: - "traefik.k3s.local" rules: - filters: # Use ExtensionRef to reference Traefik Middlewares # This replaces the older annotation-based approach - type: ExtensionRef extensionRef: group: traefik.io kind: Middleware name: dashboard-auth - type: ExtensionRef extensionRef: group: traefik.io kind: Middleware name: dashboard-redirect backendRefs: - name: api@internal group: traefik.io kind: TraefikService port: 8080
Settings
Title :
[Optional]
Paste Folder :
[Optional]
Select
Syntax :
[Optional]
Select
Markup
CSS
JavaScript
Bash
C
C#
C++
Java
JSON
Lua
Plaintext
C-like
ABAP
ActionScript
Ada
Apache Configuration
APL
AppleScript
Arduino
ARFF
AsciiDoc
6502 Assembly
ASP.NET (C#)
AutoHotKey
AutoIt
Basic
Batch
Bison
Brainfuck
Bro
CoffeeScript
Clojure
Crystal
Content-Security-Policy
CSS Extras
D
Dart
Diff
Django/Jinja2
Docker
Eiffel
Elixir
Elm
ERB
Erlang
F#
Flow
Fortran
GEDCOM
Gherkin
Git
GLSL
GameMaker Language
Go
GraphQL
Groovy
Haml
Handlebars
Haskell
Haxe
HTTP
HTTP Public-Key-Pins
HTTP Strict-Transport-Security
IchigoJam
Icon
Inform 7
INI
IO
J
Jolie
Julia
Keyman
Kotlin
LaTeX
Less
Liquid
Lisp
LiveScript
LOLCODE
Makefile
Markdown
Markup templating
MATLAB
MEL
Mizar
Monkey
N4JS
NASM
nginx
Nim
Nix
NSIS
Objective-C
OCaml
OpenCL
Oz
PARI/GP
Parser
Pascal
Perl
PHP
PHP Extras
PL/SQL
PowerShell
Processing
Prolog
.properties
Protocol Buffers
Pug
Puppet
Pure
Python
Q (kdb+ database)
Qore
R
React JSX
React TSX
Ren'py
Reason
reST (reStructuredText)
Rip
Roboconf
Ruby
Rust
SAS
Sass (Sass)
Sass (Scss)
Scala
Scheme
Smalltalk
Smarty
SQL
Soy (Closure Template)
Stylus
Swift
TAP
Tcl
Textile
Template Toolkit 2
Twig
TypeScript
VB.Net
Velocity
Verilog
VHDL
vim
Visual Basic
WebAssembly
Wiki markup
Xeora
Xojo (REALbasic)
XQuery
YAML
HTML
Expiration :
[Optional]
Never
Self Destroy
10 Minutes
1 Hour
1 Day
1 Week
2 Weeks
1 Month
6 Months
1 Year
Status :
[Optional]
Public
Unlisted
Private (members only)
Password :
[Optional]
Description:
[Optional]
Tags:
[Optional]
Encrypt Paste
(
?
)
Create Paste
You are currently not logged in, this means you can not edit or delete anything you paste.
Sign Up
or
Login
Site Languages
×
English