Skip to content

Commit

Permalink
fix traefik values.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vcscsvcscs committed Mar 3, 2024
1 parent d30764d commit 9f83240
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 11 deletions.
2 changes: 1 addition & 1 deletion oci-managed/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ module "nlb" {

compartment_ocid = var.compartment_ocid
cluster_ocid = module.oke.cluster_ocid
values_file = "traefik-values.yaml"
values_file = "traefik-values.yml"

depends_on = [ module.oke ]
}
2 changes: 1 addition & 1 deletion oci-managed/nlb/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ variable "replica_count" {
variable "values_file" {
description = "The name of the traefik helmchart values file to use"
type = string
default = "values.yaml"
default = "traefik-values.yml"
}
2 changes: 1 addition & 1 deletion oci-managed/oke/data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ data "oci_containerengine_cluster_kube_config" "cluster_kube_config" {
resource "local_file" "oke_kubeconfig" {
content = data.oci_containerengine_cluster_kube_config.cluster_kube_config.content
filename = "${path.module}/kubeconfig"
}
}
2 changes: 1 addition & 1 deletion oci-managed/oke/output.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ output "cluster_ocid" {

output "public_endpoint" {
value = one(oci_containerengine_cluster.k8s_cluster.endpoints)
}
}
19 changes: 12 additions & 7 deletions oci-managed/traefik-values.yml
Original file line number Diff line number Diff line change
Expand Up @@ -870,25 +870,30 @@ persistence:

# -- Certificates resolvers configuration
certResolvers: {}
# letsencrypt:
#letsencrypt:
# # for challenge options cf. https://doc.traefik.io/traefik/https/acme/
# email: [email protected]
# dnsChallenge:
# email: [email protected]
# dnsChallenge:
# # also add the provider's required configuration under env
# # or expand then from secrets/configmaps with envfrom
# # cf. https://doc.traefik.io/traefik/https/acme/#providers
# provider: cloudflare
# provider: cloudflare
# # add futher options for the dns challenge as needed
# # cf. https://doc.traefik.io/traefik/https/acme/#dnschallenge
# delayBeforeCheck: 30
# resolvers:
# - 1.1.1.1
# - 8.8.8.8
# tlsChallenge: true
# httpChallenge:
# tlsChallenge: true
# httpChallenge:
# entryPoint: "web"
# # It has to match the path with a persistent volume
# storage: /data/acme.json
# storage: /data/acme.json
# env:
# - name: CLOUDFLARE_EMAIL
# value: ""
# - name: CLOUDFLARE_API_KEY
# value: ""

# -- If hostNetwork is true, runs traefik in the host network namespace
# To prevent unschedulabel pods due to port collisions, if hostNetwork=true
Expand Down

0 comments on commit 9f83240

Please sign in to comment.