This commit is contained in:
Simen Røstvik 2022-11-30 15:53:03 +01:00
parent 22c3686953
commit cc353cebbe

View File

@ -18,6 +18,9 @@ spec:
prometheus: prometheus:
enabled: false enabled: false
extraArgs:
- --enable-certificate-owner-ref=true
repoURL: https://charts.jetstack.io repoURL: https://charts.jetstack.io
targetRevision: 1.10.1 targetRevision: 1.10.1
@ -39,6 +42,8 @@ spec:
name: cloudflare-issuer-account-key name: cloudflare-issuer-account-key
solvers: solvers:
- dns01: - dns01:
ingress:
class: traefik
cloudflare: cloudflare:
apiTokenSecretRef: apiTokenSecretRef:
name: cloudflare-api-token-secret name: cloudflare-api-token-secret
@ -47,7 +52,6 @@ spec:
dnsNames: dnsNames:
- 'roxedus.com' - 'roxedus.com'
- '*.roxedus.com' - '*.roxedus.com'
- http01:
--- ---
apiVersion: cert-manager.io/v1 apiVersion: cert-manager.io/v1
kind: Certificate kind: Certificate
@ -57,11 +61,32 @@ metadata:
spec: spec:
# Secret names are always required. # Secret names are always required.
secretName: example-com-tls secretName: example-com-tls
commonName: test.roxedus.com
dnsNames: dnsNames:
- test.roxedus.com - test.roxedus.com
issuerRef: issuerRef:
name: roxedus.com-cloudflare name: roxedus.com-cloudflare
# We can reference ClusterIssuers by changing the kind here. # We can reference ClusterIssuers by changing the kind here.
# The default value is Issuer (i.e. a locally namespaced Issuer) # The default value is Issuer (i.e. a locally namespaced Issuer)
kind: ClusterIssuer kind: ClusterIssuer
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
certmanager.k8s.io/acme-challenge-type: dns01
certmanager.k8s.io/cluster-issuer: test-roxedus-com
name: ingress-rule
namespace: default
spec:
rules:
- host: hostname
http:
paths:
- backend:
serviceName: backend-service
servicePort: 8080
tls:
- hosts:
- test.roxedus.com
secretName: test-roxedus-com