apiVersion: apps/v1
kind: Deployment
metadata:
  name: frontend-deployment
spec:
  replicas: 1
  selector:
    matchLabels:
      component: frontend
  template:
    metadata:
      labels:
        component: frontend
    spec:
      containers:
        - name: frontend
          image: researchlabai/myapp-frontend
          ports:
            - containerPort: 8080
          env:
            - name: NGINX_PORT
              value: "8080"
            - name: PROXY_TARGET
              value: http://backend:5000