Revert "fix: remove Ingress and TLS configurations for Watch Party and Portfolio services"
Some checks failed
validate / lint (push) Failing after 8s

This reverts commit 3657519b17c16888fbde0946ba5c65c855330d2b.
This commit is contained in:
Nik Afiq 2026-08-07 16:28:23 +09:00
parent e15911305f
commit bf91e72429
3 changed files with 108 additions and 5 deletions

View File

@ -0,0 +1,32 @@
# Apply: kubectl apply -f manifests/gitea/gitea-public-ingress.yaml
# Delete: kubectl delete -f manifests/gitea/gitea-public-ingress.yaml
# Description: Let's Encrypt TLS certificate and public IngressRoute for Gitea at gitea.nik4nao.com.
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: gitea-nik4nao-tls
namespace: gitea
spec:
secretName: gitea-nik4nao-tls
issuerRef:
name: letsencrypt-prod
kind: ClusterIssuer
dnsNames:
- gitea.nik4nao.com
---
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: gitea-public
namespace: gitea
spec:
entryPoints:
- websecure
routes:
- match: Host(`gitea.nik4nao.com`)
kind: Rule
services:
- name: gitea-http
port: 3000
tls:
secretName: gitea-nik4nao-tls

View File

@ -1,7 +1,6 @@
# Apply: kubectl apply -f manifests/network/watch-party-ingress.yaml
# Delete: kubectl delete -f manifests/network/watch-party-ingress.yaml
# Description: External Endpoints and Service for Watch Party on Mac Mini. No public
# route — taken off the internet (was Ingress + Let's Encrypt cert at watch-party.nik4nao.com).
# Description: External Endpoints, Service, and Ingress for Watch Party on Mac Mini at watch-party.nik4nao.com.
apiVersion: v1
kind: Endpoints
metadata:
@ -22,3 +21,30 @@ spec:
ports:
- port: 3000
targetPort: 3000
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: watch-party
namespace: default
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: websecure
traefik.ingress.kubernetes.io/router.tls: "true"
cert-manager.io/cluster-issuer: letsencrypt-prod
spec:
ingressClassName: traefik
tls:
- secretName: watch-party-tls
hosts:
- watch-party.nik4nao.com
rules:
- host: watch-party.nik4nao.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: watch-party-mac-mini
port:
number: 3000

View File

@ -1,7 +1,6 @@
# Apply: kubectl apply -f manifests/portfolio/portfolio.yaml
# Delete: kubectl delete -f manifests/portfolio/portfolio.yaml
# Description: Portfolio website deployment and service. No public route — taken off
# the internet (was IngressRoute + Let's Encrypt cert at nik4nao.com).
# Description: Portfolio website deployment, service, TLS certificate, and public IngressRoute at nik4nao.com.
---
apiVersion: v1
kind: Namespace
@ -50,3 +49,49 @@ spec:
ports:
- port: 80
targetPort: 80
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: portfolio-tls
namespace: portfolio
spec:
secretName: portfolio-tls
issuerRef:
name: letsencrypt-prod
kind: ClusterIssuer
dnsNames:
- nik4nao.com
---
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: portfolio
namespace: portfolio
spec:
entryPoints:
- websecure
routes:
- match: Host(`nik4nao.com`)
kind: Rule
middlewares:
- name: portfolio-ratelimit
services:
- name: portfolio
port: 80
tls:
secretName: portfolio-tls
---
apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: portfolio-ratelimit
namespace: portfolio
spec:
rateLimit:
average: 50
burst: 100
period: 1m
sourceCriterion:
ipStrategy:
depth: 1