manifests/cgs/cgs3/ingress.yaml
songtianlun 33832c5761 feat: add deployment, service, and ingress for app3
- Create deployment configuration for app3 with 5 replicas.
- Add service to expose app3 on port 3002.
- Define ingress resource for handling external traffic to app3.
- Set up TLS and host configuration for secure traffic.

This commit introduces the necessary Kubernetes manifests for the new
app3 which allows for deployment, service exposure, and ingress
routing, thereby enabling it to be accessed securely over the
specified domain. The deployment includes node affinity rules to
restrict execution environments and enhances the overall service
availability.
2025-04-19 12:25:57 +08:00

27 lines
1.2 KiB
YAML

---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: app3
namespace: cgs
annotations:
cert-manager.io/cluster-issuer: "cf-cluster-issuer"
spec:
ingressClassName: nginx
tls:
- hosts:
- cgs3.skybyte.me
secretName: cgs3-skybyte-me-tls
rules:
- host: cgs3.skybyte.me
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: app3
port:
name: web