Skip to content
Snippets Groups Projects
ping.yaml 417 B
Newer Older
CarlotaGalocha's avatar
CarlotaGalocha committed
apiVersion: v1
kind: Pod
lewisfelix's avatar
lewisfelix committed
metadata:
CarlotaGalocha's avatar
CarlotaGalocha committed
  name: ping
  labels:
CarlotaGalocha's avatar
CarlotaGalocha committed
  annotations:
    l2sm/networks: ping-network
lewisfelix's avatar
lewisfelix committed
spec:
CarlotaGalocha's avatar
CarlotaGalocha committed
  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