gitops-sample/service.yaml
suyiiyii f637bfb800
feat: 添加 Ingress 和 Service 配置文件
- 新增 ingress.yaml 文件,定义 Ingress 资源以实现网络访问控制
- 新增 service.yaml 文件,创建 Service 以暴露应用程序端口
2024-11-15 00:18:19 +08:00

11 lines
166 B
YAML

apiVersion: v1
kind: Service
metadata:
name: gatewayyy-service
spec:
selector:
app: gatewayyy
ports:
- protocol: TCP
port: 80
targetPort: 80