Ingres is now my buddy

This commit is contained in:
Simen Røstvik 2022-12-07 14:27:01 +01:00
parent 60df47f5c6
commit 6b4155baa6
No known key found for this signature in database
2 changed files with 21 additions and 40 deletions

View File

@ -56,23 +56,32 @@ spec:
- port: 8080 - port: 8080
targetPort: 8080 targetPort: 8080
--- ---
apiVersion: traefik.containo.us/v1alpha1 apiVersion: networking.k8s.io/v1
kind: IngressRoute kind: Ingress
metadata: metadata:
annotations:
# add an annotation indicating the issuer to use.
cert-manager.io/acme-challenge-type: dns01
cert-manager.io/cluster-issuer: roxedus.com-cloudflare
name: searxng name: searxng
namespace: default namespace: default
spec: spec:
entryPoints: ingressClassName: traefik
- websecure rules:
routes: - host: searxng.roxedus.com
- kind: Rule http:
match: Host("searxng.roxedus.com") paths:
priority: 10 - pathType: Prefix
services: path: /
- name: searxng backend:
port: 8080 service:
name: searxng
port:
number: 8080
tls: tls:
certResolver: cloudflare - hosts:
- searxng.roxedus.com
secretName: searxng-roxedus-com-cert
--- ---
apiVersion: v1 apiVersion: v1
kind: ConfigMap kind: ConfigMap

View File

@ -52,31 +52,3 @@ spec:
# dnsNames: # dnsNames:
# - 'roxedus.com' # - 'roxedus.com'
# - '*.roxedus.com' # - '*.roxedus.com'
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
# add an annotation indicating the issuer to use.
cert-manager.io/acme-challenge-type: dns01
cert-manager.io/cluster-issuer: roxedus.com-cloudflare
traefik.ingress.kubernetes.io/router.middlewares: authentik-ak-outpost-localcluster@kubernetescrd
name: testingress
namespace: default
spec:
ingressClassName: traefik
rules:
- host: test.roxedus.com
http:
paths:
- pathType: Prefix
path: /
backend:
service:
name: searxng
port:
number: 8080
tls: # < placing a host in the TLS config will determine what ends up in the cert's subjectAltNames
- hosts:
- test.roxedus.com
secretName: test-roxedus-com-cert # < cert-manager will store the created certificate in this secret.