custom settings
This commit is contained in:
3
Dockerfile
Normal file
3
Dockerfile
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
FROM traefik:v1.7
|
||||||
|
|
||||||
|
COPY traefik.toml /etc/traefik/traefik.toml
|
||||||
6
docker-compose.yaml
Normal file
6
docker-compose.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
version: '3'
|
||||||
|
|
||||||
|
services:
|
||||||
|
traefik:
|
||||||
|
build: .
|
||||||
|
image: hub.ducoterra.net/ducoterra/traefik:v1.7
|
||||||
@@ -19,7 +19,7 @@ spec:
|
|||||||
serviceAccountName: traefik-ingress-controller
|
serviceAccountName: traefik-ingress-controller
|
||||||
terminationGracePeriodSeconds: 60
|
terminationGracePeriodSeconds: 60
|
||||||
containers:
|
containers:
|
||||||
- image: traefik:v1.7
|
- image: hub.ducoterra.net/ducoterra/traefik:v1.7
|
||||||
name: traefik-external-lb
|
name: traefik-external-lb
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
@@ -33,4 +33,3 @@ spec:
|
|||||||
- --defaultentrypoints=http,https
|
- --defaultentrypoints=http,https
|
||||||
- --entrypoints=Name:https Address::443 TLS
|
- --entrypoints=Name:https Address::443 TLS
|
||||||
- --entrypoints=Name:http Address::80
|
- --entrypoints=Name:http Address::80
|
||||||
- --providers.kubernetescrd.ingressclass=external
|
|
||||||
94
traefik.toml
Normal file
94
traefik.toml
Normal file
@@ -0,0 +1,94 @@
|
|||||||
|
################################################################
|
||||||
|
# Kubernetes Ingress Provider
|
||||||
|
################################################################
|
||||||
|
|
||||||
|
# Enable Kubernetes Ingress Provider.
|
||||||
|
[kubernetes]
|
||||||
|
|
||||||
|
# Kubernetes server endpoint.
|
||||||
|
#
|
||||||
|
# Optional for in-cluster configuration, required otherwise.
|
||||||
|
# Default: empty
|
||||||
|
#
|
||||||
|
# endpoint = "http://localhost:8080"
|
||||||
|
|
||||||
|
# Bearer token used for the Kubernetes client configuration.
|
||||||
|
#
|
||||||
|
# Optional
|
||||||
|
# Default: empty
|
||||||
|
#
|
||||||
|
# token = "my token"
|
||||||
|
|
||||||
|
# Path to the certificate authority file.
|
||||||
|
# Used for the Kubernetes client configuration.
|
||||||
|
#
|
||||||
|
# Optional
|
||||||
|
# Default: empty
|
||||||
|
#
|
||||||
|
# certAuthFilePath = "/my/ca.crt"
|
||||||
|
|
||||||
|
# Array of namespaces to watch.
|
||||||
|
#
|
||||||
|
# Optional
|
||||||
|
# Default: all namespaces (empty array).
|
||||||
|
#
|
||||||
|
# namespaces = ["default", "production"]
|
||||||
|
|
||||||
|
# Ingress label selector to filter Ingress objects that should be processed.
|
||||||
|
#
|
||||||
|
# Optional
|
||||||
|
# Default: empty (process all Ingresses)
|
||||||
|
#
|
||||||
|
labelselector = "external"
|
||||||
|
|
||||||
|
# Value of `kubernetes.io/ingress.class` annotation that identifies Ingress objects to be processed.
|
||||||
|
# If the parameter is non-empty, only Ingresses containing an annotation with the same value are processed.
|
||||||
|
# Otherwise, Ingresses missing the annotation, having an empty value, or the value `traefik` are processed.
|
||||||
|
#
|
||||||
|
# Optional
|
||||||
|
# Default: empty
|
||||||
|
#
|
||||||
|
ingressClass = "traefik-external"
|
||||||
|
|
||||||
|
# Disable PassHost Headers.
|
||||||
|
#
|
||||||
|
# Optional
|
||||||
|
# Default: false
|
||||||
|
#
|
||||||
|
# disablePassHostHeaders = true
|
||||||
|
|
||||||
|
# Enable PassTLSCert Headers.
|
||||||
|
#
|
||||||
|
# Optional
|
||||||
|
# Default: false
|
||||||
|
#
|
||||||
|
# enablePassTLSCert = true
|
||||||
|
|
||||||
|
# Throttle how frequently we refresh our configuration from Ingresses when there
|
||||||
|
# are frequent changes.
|
||||||
|
#
|
||||||
|
# Optional
|
||||||
|
# Default: 0 (no throttling)
|
||||||
|
#
|
||||||
|
# throttleDuration = 10s
|
||||||
|
|
||||||
|
# Override default configuration template.
|
||||||
|
#
|
||||||
|
# Optional
|
||||||
|
# Default: <built-in template>
|
||||||
|
#
|
||||||
|
# filename = "kubernetes.tmpl"
|
||||||
|
|
||||||
|
# Enable IngressEndpoint configuration.
|
||||||
|
# This will allow Traefik to update the status section of ingress objects, if desired.
|
||||||
|
#
|
||||||
|
# Optional
|
||||||
|
#
|
||||||
|
# [kubernetes.ingressEndpoint]
|
||||||
|
#
|
||||||
|
# At least one must be configured.
|
||||||
|
# `publishedservice` will override the `hostname` and `ip` settings if configured.
|
||||||
|
#
|
||||||
|
# hostname = "localhost"
|
||||||
|
# ip = "127.0.0.1"
|
||||||
|
# publishedService = "namespace/servicename"
|
||||||
Reference in New Issue
Block a user