This commit is contained in:
dxin
2025-11-07 11:25:23 +08:00
parent f1ba36dc3b
commit 1f6cf2a78a
21 changed files with 871 additions and 9 deletions

View File

@@ -0,0 +1,39 @@
apiVersion: v1
kind: Pod
metadata:
name: network-test-pod
namespace: lessie-sit
labels:
app: network-test
spec:
containers:
- name: network-tools
image: nicolaka/netshoot:latest
command: ["/bin/sh"]
args: ["-c", "sleep 3600"] # 保持运行1小时
resources:
requests:
memory: "64Mi"
cpu: "50m"
limits:
memory: "128Mi"
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)