This repository has been archived on 2024-02-11. You can view files and clone it, but cannot push or open issues or pull requests.
valinor/kubernetes/apps/fediverse/mastodon/app/ingress.yaml

31 lines
702 B
YAML

---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: mastodon-ingress
namespace: fediverse
annotations:
nginx.org/websocket-services: "mastodon-streaming"
spec:
ingressClassName: "nginx"
tls:
- hosts:
- &host valinor.social
rules:
- host: *host
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: mastodon-web
port:
number: 3000
- path: /api/v1/streaming
pathType: Prefix
backend:
service:
name: mastodon-streaming
port:
number: 4000