mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 20:39:18 -08:00
[TRAEFIK] Attempt to make it actually apply
This commit is contained in:
parent
e98813533f
commit
b09e3e8f24
2 changed files with 4 additions and 32 deletions
|
|
@ -1,38 +1,8 @@
|
|||
/*---
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: cloudflare
|
||||
namespace: traefik
|
||||
type: Opaque
|
||||
stringData:
|
||||
api-token: XXX
|
||||
---
|
||||
apiVersion: cert-manager.io/v1
|
||||
kind: Issuer
|
||||
metadata:
|
||||
name: cloudflare
|
||||
namespace: traefik
|
||||
spec:
|
||||
acme:
|
||||
server: https://acme-v02.api.letsencrypt.org/directory
|
||||
email: email@example.com
|
||||
privateKeySecretRef:
|
||||
name: cloudflare-key
|
||||
solvers:
|
||||
- dns01:
|
||||
cloudflare:
|
||||
email: email@example.com
|
||||
apiTokenSecretRef:
|
||||
name: cloudflare
|
||||
key: api-token
|
||||
*/
|
||||
|
||||
variable "cloudflare_api_token" {
|
||||
type = string
|
||||
}
|
||||
|
||||
/*resource "kubernetes_secret" "cloudflare_api_token" {
|
||||
/*
|
||||
resource "kubernetes_secret" "cloudflare_api_token" {
|
||||
metadata {
|
||||
name = "cloudflare-api-token"
|
||||
namespace = "traefik"
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@ resource "helm_release" "traefik" {
|
|||
namespace = "traefik"
|
||||
|
||||
timeout = var.helm_timeout
|
||||
cleanup_on_fail = true
|
||||
force_update = true
|
||||
|
||||
values = [
|
||||
yamlencode({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue