---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: regular-pod-test
  namespace: default
spec:
  selector:
    matchLabels:
      app: regular-pod-test
  template:
    metadata:
      labels:
        app: regular-pod-test
    spec:
      containers:
      - name: ec2-metadata-test-proxy
        image: ec2-metadata-test-proxy:customtest
        imagePullPolicy: IfNotPresent
        env:
        - name: NODE_NAME
          valueFrom:
            fieldRef:
              fieldPath: spec.nodeName
        - name: POD_NAME
          valueFrom:
            fieldRef:
              fieldPath: metadata.name
        - name: NAMESPACE
          valueFrom:
            fieldRef:
              fieldPath: metadata.namespace
        - name: SPOT_POD_IP
          valueFrom:
            fieldRef:
              fieldPath: status.podIP
