manifests/cgs/cgs3/service.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

13 lines
166 B
YAML

apiVersion: v1
kind: Service
metadata:
name: app3
namespace: cgs
spec:
selector:
app: cgs3
ports:
- name: web
port: 3002
targetPort: 3002