更改pod内容器名
This commit is contained in:
20
k8s_yaml/config/apex-user/network-test-pod.yaml
Normal file
20
k8s_yaml/config/apex-user/network-test-pod.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: network-test-pod
|
||||
namespace: apex-evaluation
|
||||
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"
|
||||
Reference in New Issue
Block a user