a-cloud-all/k8s/05-nginx/service.yaml

15 lines
204 B
YAML
Raw Permalink Normal View History

apiVersion: v1
kind: Service
metadata:
name: ruoyi-nginx
namespace: ruoyi
spec:
type: NodePort
ports:
- port: 80
targetPort: 80
nodePort: 30081
name: http
selector:
app: nginx