traefik-helmchartconfig.yaml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. apiVersion: helm.cattle.io/v1
  2. kind: HelmChartConfig
  3. metadata:
  4. name: traefik
  5. namespace: kube-system
  6. spec:
  7. valuesContent: |-
  8. ports:
  9. web:
  10. exposedPort: 9001
  11. websecure:
  12. exposedPort: 9000
  13. additionalArguments:
  14. # Auto cert renewal via cloudflare
  15. - "--certificatesresolvers.letsencrypt.acme.email=joshbicking@comcast.net"
  16. - "--certificatesresolvers.letsencrypt.acme.storage=/data/acme.json"
  17. - "--certificatesresolvers.letsencrypt.acme.dnschallenge.provider=cloudflare"
  18. - "--certificatesresolvers.letsencrypt.acme.dnschallenge.resolvers=1.1.1.1:53,8.8.8.8:53"
  19. - "--entrypoints.websecure.http.tls.certResolver=letsencrypt"
  20. - "--entrypoints.websecure.http.tls.domains[0].main=s3.bnuuy.org"
  21. # debug, uncomment for testing
  22. # - "--log.level=DEBUG"
  23. # - "--certificatesresolvers.letsencrypt.acme.caServer=https://acme-staging-v02.api.letsencrypt.org/directory"
  24. env:
  25. - name: CLOUDFLARE_EMAIL
  26. valueFrom:
  27. secretKeyRef:
  28. name: cloudflare-secrets
  29. key: email
  30. optional: false
  31. - name: CLOUDFLARE_API_KEY
  32. valueFrom:
  33. secretKeyRef:
  34. name: cloudflare-secrets
  35. key: api-key
  36. optional: false
  37. persistence:
  38. enabled: true
  39. storageClass: local-path
  40. # Fix for acme.json file being changed to 660 from 600
  41. podSecurityContext:
  42. fsGroup: null
  43. service:
  44. spec:
  45. externalTrafficPolicy: Local
  46. hostNetwork: true