Open magsol opened 4 months ago
If you include an anonymized version here, I can post it as an alternate example for traefik.
Here's the anonymized version:
image:
name: traefik
ingressClass:
enabled: true
isDefaultClass: true
env:
- name: CF_API_EMAIL
valueFrom:
secretKeyRef:
name: cloudflare-api-credentials
key: email
- name: CF_API_KEY
valueFrom:
secretKeyRef:
name: cloudflare-api-credentials
key: api-key
- name: CF_DNS_API_TOKEN
valueFrom:
secretKeyRef:
name: cloudflare-api-credentials
key: api-token
ports:
websecure:
tls:
enabled: true
certResolver: "leresolver"
domains:
- main: "mydomain.com"
sans:
- "mastodon.mydomain.com"
- "*.mydomain.com"
service:
enabled: true
type: LoadBalancer
spec:
externalTrafficPolicy: Cluster
loadBalancerIP: "192.168.1.100" # the first IP in my metallb floating range
persistence:
enabled: true
name: traefik-data
accessMode: ReadWriteOnce
size: 256Mi
storageClass: "nfs-client"
path: /traefikdata
certResolvers:
leresolver:
# for challenge options cf. https://doc.traefik.io/traefik/https/acme/
email: my_email@email.com
dnsChallenge:
provider: cloudflare
delayBeforeCheck: 30
resolvers:
- 1.1.1.1
- 8.8.8.8
Hey @bplein, wanted to see if you've had a chance to look over things yet. I kinda figure the reverse proxy is where the magic needs to happen, since the other two are more or less identical to your setup. Let me know, thanks!
This is the trickiest one since I use traefik where you use nginx. I also use the traefik helm chart but my overrides are very different. Overrides summarized:
ingressClass
enabled and made the defaultports.websecure.tls
values set to point to my cert resolver and the external domain nameports.websecure.tls.domains
) where I would put internal non-addressable domain names for services?service.type
isLoadBalancer
service.spec.LoadBalancerIP
is the first IP (hard-coded) in the range I configured MetalLB withcertResolvers.leresolver.dnsChallenge
is configured with.provider: cloudflare
andresolvers:
pointing to cloudflare's DNS servers (1.1.1.1 and 8.8.8.8)Currently the only actual ingress I have defined is in the Mastodon helm chart.