k8s容器如何开通nodeport供本地调用?
---apiVersion: v1kind: Servicemetadata:name: namenamespace: namespacespec:type: NodePortports:- port: 8901targetPort: 8901nodePort: 30901selector:service: se...
·
---
apiVersion: v1
kind: Service
metadata:
name: name
namespace: namespace
spec:
type: NodePort
ports:
- port: 8901
targetPort: 8901
nodePort: 30901
selector:
service: service-name
更多推荐
已为社区贡献1条内容
所有评论(0)