This commit is contained in:
Simen Røstvik 2022-11-30 23:44:30 +01:00
parent a179ae82a6
commit d1e5f24166
No known key found for this signature in database

View File

@ -29,51 +29,51 @@ spec:
prune: true prune: true
selfHeal: true selfHeal: true
--- # ---
apiVersion: cert-manager.io/v1 # apiVersion: cert-manager.io/v1
kind: ClusterIssuer # kind: ClusterIssuer
metadata: # metadata:
name: roxedus.com-cloudflare # name: roxedus.com-cloudflare
namespace: cert-manager # namespace: cert-manager
spec: # spec:
acme: # acme:
server: https://acme-v02.api.letsencrypt.org/directory # server: https://acme-v02.api.letsencrypt.org/directory
privateKeySecretRef: # privateKeySecretRef:
name: cloudflare-issuer-account-key # name: cloudflare-issuer-account-key
solvers: # solvers:
- dns01: # - dns01:
cloudflare: # cloudflare:
apiTokenSecretRef: # apiTokenSecretRef:
name: cloudflare-api-token-secret # name: cloudflare-api-token-secret
key: CLOUDFLARE_API_KEY # key: CLOUDFLARE_API_KEY
selector: # selector:
dnsNames: # dnsNames:
- 'roxedus.com' # - 'roxedus.com'
- '*.roxedus.com' # - '*.roxedus.com'
--- # ---
apiVersion: networking.k8s.io/v1 # apiVersion: networking.k8s.io/v1
kind: Ingress # kind: Ingress
metadata: # metadata:
annotations: # annotations:
# add an annotation indicating the issuer to use. # # add an annotation indicating the issuer to use.
cert-manager.io/acme-challenge-type: dns01 # cert-manager.io/acme-challenge-type: dns01
cert-manager.io/cluster-issuer: roxedus.com-cloudflare # cert-manager.io/cluster-issuer: roxedus.com-cloudflare
name: myingress # name: myingress
namespace: default # namespace: default
spec: # spec:
ingressClassName: traefik # ingressClassName: traefik
rules: # rules:
- host: test.roxedus.com # - host: test.roxedus.com
http: # http:
paths: # paths:
- pathType: Prefix # - pathType: Prefix
path: / # path: /
backend: # backend:
service: # service:
name: searxng # name: searxng
port: # port:
number: 8080 # number: 8080
tls: # < placing a host in the TLS config will determine what ends up in the cert's subjectAltNames # tls: # < placing a host in the TLS config will determine what ends up in the cert's subjectAltNames
- hosts: # - hosts:
- test.roxedus.com # - test.roxedus.com
secretName: test-roxedus-com-cert # < cert-manager will store the created certificate in this secret. # secretName: test-roxedus-com-cert # < cert-manager will store the created certificate in this secret.