apiVersion: apps/v1
kind: Deployment
metadata:
  name: hello-app-dp
  namespace: default
spec:
  replicas: 1
  selector:
    matchLabels:
      app: hello-app
  template:
    metadata:
      name: hello-app-pod
      labels:
        app: hello-app
    spec:
      containers:
      - name: hello-app-1
        image: alpine:3.16.2
        command:
        - sleep
        - "3600"
        ports:
        - name: http
          containerPort: 8080
        env:
        - name: POD_IP
          valueFrom:
            fieldRef:
              apiVersion: v1
              fieldPath: status.podIP
