Fix Traefik deployment
This commit is contained in:
@@ -1,20 +1,42 @@
|
|||||||
(ns k8s.add-ons.gateway.traefik)
|
(ns k8s.add-ons.gateway.traefik)
|
||||||
|
|
||||||
(def config
|
(def config
|
||||||
{:stack [:vault:prepare [:k8s :secret :chart :gateway :certificates]]
|
{:stack [:vault:prepare [:k8s :secret :chart :gateway-class :gateway :certificates]]
|
||||||
:app-namespace "traefik"
|
:app-namespace "traefik"
|
||||||
:app-name "traefik"
|
:app-name "traefik"
|
||||||
:is-prod? true
|
:is-prod? true
|
||||||
:vault-load-yaml false
|
:vault-load-yaml false
|
||||||
:k8s:chart-opts {:fetchOpts {:repo 'repo}
|
:k8s:chart-opts {:skipCrds true
|
||||||
|
:repositoryOpts {:repo 'repo}
|
||||||
:chart 'chart
|
:chart 'chart
|
||||||
|
:transformations [(fn [args _opts] (let [kind (get-in args [:resource :kind])]
|
||||||
|
(if (= kind "CustomResourceDefinition")
|
||||||
|
nil
|
||||||
|
args)))]
|
||||||
:version "37.3.0"
|
:version "37.3.0"
|
||||||
:namespace "traefik"
|
:namespace "traefik"
|
||||||
:values {:providers {:kubernetesGateway {:enabled true}}
|
:values {:providers {:kubernetesGateway {:enabled true}}
|
||||||
:gatewayClass {:enabled true
|
:gatewayClass {:enabled false}
|
||||||
:name "traefik"}}}
|
:gateway {:enabled false}
|
||||||
|
:ports {:web {:port 8000
|
||||||
|
:expose {:default true}
|
||||||
|
:exposedPort 80
|
||||||
|
:protocol "TCP"}
|
||||||
|
|
||||||
|
:websecure {:port 8443
|
||||||
|
:expose {:default true}
|
||||||
|
:exposedPort 443
|
||||||
|
:protocol "TCP"
|
||||||
|
:transport {:respondingTimeouts
|
||||||
|
{:readTimeout "600s"
|
||||||
|
:writeTimeout "600s"
|
||||||
|
:idleTimeout "600s"}}}}}}
|
||||||
:k8s:gateway-opts
|
:k8s:gateway-opts
|
||||||
{:metadata {:name "main-gateway"
|
{:metadata {:name "main-gateway"
|
||||||
:namespace "traefik"}
|
:namespace "traefik"}
|
||||||
:spec {:gatewayClassName "traefik"
|
:spec {:gatewayClassName "traefik"
|
||||||
:listeners '(make-listeners domains)}}})
|
:listeners '(make-listeners domains)}}
|
||||||
|
|
||||||
|
:k8s:gateway-class-opts
|
||||||
|
{:spec {:controllerName "traefik.io/gateway-controller"}}
|
||||||
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user