27 lines
763 B
YAML
27 lines
763 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: netshoot
|
|
namespace: ai
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: netshoot
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: netshoot
|
|
spec:
|
|
containers:
|
|
- name: netshoot
|
|
image: nicolaka/netshoot:latest
|
|
imagePullPolicy: IfNotPresent
|
|
command: ["/bin/sh", "-c", "sleep infinity"]
|
|
securityContext:
|
|
capabilities:
|
|
add: ["NET_ADMIN", "NET_RAW"]
|
|
resources:
|
|
requests: { cpu: "50m", memory: "64Mi" }
|
|
limits: { cpu: "200m", memory: "256Mi" }
|