apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: frontend
  name: frontend
spec:
  replicas: 1
  selector:
    matchLabels:
      app: frontend
  template:
    metadata:
      labels:
        app: frontend
    spec:
      containers:
        - env:
            - name: BACKEND_PORT
              value: '5000'
            - name: BACKEND_HOSTNAME
              value: backend
          image: localhost:32000/frontend:latest
          name: frontend
          ports:
            - containerPort: 3000
      restartPolicy: Always
