更改
This commit is contained in:
@@ -17,4 +17,23 @@ spec:
|
||||
cpu: "50m"
|
||||
limits:
|
||||
memory: "128Mi"
|
||||
cpu: "100m"
|
||||
cpu: "100m"
|
||||
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: network-test-pod-svc
|
||||
namespace: test-lessie
|
||||
labels:
|
||||
app: network-test
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: network-test
|
||||
ports:
|
||||
- name: http
|
||||
port: 6100 # ClusterIP 内部端口
|
||||
targetPort: 6100 # 容器端口
|
||||
# nodePort: 30610 # 节点对外端口(30000-32767)
|
||||
Reference in New Issue
Block a user