---
    apiVersion: apps/v1
    kind: Deployment
    metadata:
      name: ui
      labels:
        app: reddit
        component: ui
    spec:
      replicas: 1
      selector:
        matchLabels:
          app: reddit
          component: ui
      template:
        metadata:
          name: ui
          labels:
            app: reddit
            component: ui
        spec:
          containers:
          - image: tsigurosd/ui:latest
            name: ui
            env:
            - name: ENV
              valueFrom:
                fieldRef:
                  fieldPath: metadata.namespace
