move toml to configmap

This commit is contained in:
ducoterra
2020-04-18 19:41:35 -04:00
parent a0c8174804
commit 27f15668ee
5 changed files with 29 additions and 107 deletions

20
k8s/configmap.yaml Normal file
View File

@@ -0,0 +1,20 @@
kind: ConfigMap
apiVersion: v1
metadata:
name: traefik-external
namespace: kube-system
data:
traefik.toml: |
# traefik.toml
[kubernetes]
labelselector = "external"
ingressClass = "traefik-external"
defaultEntryPoints = ["http","https"]
[entryPoints]
[entryPoints.http]
address = ":9080"
[entryPoints.http.redirect]
entryPoint = "https"
[entryPoints.https]
address = ":9443"
[entryPoints.https.tls]