Skip to content

Commit

Permalink
feat(kube-nas): test nginx-ingress with self-signed cert #2008
Browse files Browse the repository at this point in the history
  • Loading branch information
tyriis committed Oct 16, 2023
1 parent a3ad285 commit 08bfd8c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: self-signed
spec:
selfSigned: {}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: cert-manager
resources:
- cluster-issuer-self-signed.yaml
- secret.sops.yaml
- cluster-issuer-staging.yaml
- cluster-issuer-production.yaml
13 changes: 3 additions & 10 deletions kubernetes/kube-nas/apps/default/echo-server/app/helm-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,19 +66,12 @@ spec:
ingress:
main:
enabled: true
className: traefik
className: nginx
annotations:
cert-manager.io/cluster-issuer: letsencrypt-production
cert-manager.io/cluster-issuer: self-signed
kubernetes.io/tls-acme: "true"
traefik.ingress.kubernetes.io/router.middlewares: traefik-ingress-sso@kubernetescrd
traefik.ingress.kubernetes.io/router.entrypoints: websecure
traefik.ingress.kubernetes.io/affinity: "true"
traefik.ingress.kubernetes.io/router.tls: "true"
external-dns.alpha.kubernetes.io/target: "${SECRET_CLOUDFLARE_TUNNEL_ID}.cfargotunnel.com"
hajimari.io/icon: video-input-antenna
hajimari.io/enable: "true"
hosts:
- host: &host "{{ .Release.Name }}.${SECRET_DOMAIN}"
- host: &host "{{ .Release.Name }}.tyriis.dev"
paths:
- path: /
pathType: Prefix
Expand Down

0 comments on commit 08bfd8c

Please sign in to comment.