a-cloud-all/k8s/04-gateway/service.yaml

15 lines
212 B
YAML

apiVersion: v1
kind: Service
metadata:
name: ruoyi-gateway
namespace: ruoyi
spec:
type: NodePort
ports:
- port: 8080
targetPort: 8080
nodePort: 30080
name: http
selector:
app: gateway