---
apiVersion: v1
kind: Pod
metadata:
  name: ubuntu2004
  namespace: demo
  labels:
    app: ubuntu2004
spec:
  containers:
  - name: ubuntu
    image: ubuntu:20.04
    command: ["/bin/sleep", "3650d"]
    imagePullPolicy: IfNotPresent
    securityContext:
      runAsUser: 0
      runAsGroup: 0
      privileged: true
    lifecycle:
      postStart:
        exec:
          command: ["/bin/sh","-c","apt update; apt install iputils-ping net-tools iproute2"]
  restartPolicy: Always
