Skip to content
Snippets Groups Projects
Unverified Commit e6c373c1 authored by CarlotaGalocha's avatar CarlotaGalocha Committed by GitHub
Browse files

Update ping.yaml

Change to pod instead of deployment
parent 85f1870e
No related branches found
No related tags found
1 merge request!2repo: added new directory where utils scripts will be
apiVersion: apps/v1
kind: Deployment
apiVersion: v1
kind: Pod
metadata:
name: ping-l2sm
name: ping
labels:
app: test2
annotations:
k8s.v1.cni.cncf.io/networks: first-network
spec:
replicas: 1
selector:
matchLabels:
app: ping-pong
template:
metadata:
labels:
app: ping-pong
annotations:
k8s.v1.cni.cncf.io/networks: my-first-network
spec:
containers:
- name: ping
command: ["/bin/ash", "-c", "trap : TERM INT; sleep infinity & wait"]
image: alpine:latest
securityContext:
capabilities:
add: ["NET_ADMIN"]
# Use this parameter if you want to place the pod in a specific node
# nodeName:
containers:
- name: router
command: ["/bin/ash", "-c", "trap : TERM INT; sleep infinity & wait"]
image: alpine:latest
securityContext:
capabilities:
add: ["NET_ADMIN"]
# Use this parameter if you want to place the pod in a specific node
nodeName: l2sm1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment