我打算在 kubernetes 中使用 traefik 作为我的入口控制器。我看到单独运行时,您可以自己定义入口点。我想知道我是否可以在 Kubernetes 中做同样的事情。基本上我想在 kubernetes 中定义一种这样的配置以及它会是谁。
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.http.redirect]
entryPoint = "https"
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
[[entryPoints.https.tls.certificates]]
CertFile = "integration/fixtures/https/first.com.cert"
KeyFile = "integration/fixtures/https/first.com.key"
[entryPoints.https]
address = ":444"
[entryPoints.https.tls]
[[entryPoints.https.tls.certificates]]
CertFile = "integration/fixtures/https/second.com.cert"
KeyFile = "integration/fixtures/https/second.com.key"
然后将不同的后端关联到我的不同入口点。