apiVersion: apps/v1
kind: Deployment
metadata:
  namespace: default
  name: test2
  labels:
    app: audit-pod
spec:
  replicas: 3
  selector:
    matchLabels:
      app: audit-pod
  template:
    metadata:
      labels:
        app: audit-pod
    spec :
      securityContext :
        runAsUser : 999
      containers :
        -
          name : test-container
          env :
            -
              name : random
              value : "Hello from the environment"
          image : hashicorp/http-echo:0.2.3
          securityContext :
            allowPrivilegeEscalation : true
            privileged: true
        -
          name : test-container2
          env :
            -
              name : azure_batch_key
              value : "Hello from the environment"
          image : hashicorp/http-echo:0.2.3
          command : [ "sudo cat" ]
          args : [ "HOSTNAME", "KUBERNETES_PORT" ]