apiVersion: apps/v1
kind: Deployment
metadata:
  name: team-planner-frontend
spec:
  replicas: 1
  selector:
    matchLabels:
      app: team-planner-frontend
  template:
    metadata:
      labels:
        app: team-planner-frontend
    spec:
      imagePullSecrets:
      - name: harbor-creds
      containers:
      - name: team-planner-frontend
        image: __FRONTEND_IMAGE__
        ports:
        - containerPort: 80
        resources:
          requests:
            memory: "64Mi"
            cpu: "100m"
          limits:
            memory: "128Mi"
            cpu: "200m"
        livenessProbe:
          httpGet:
            path: /health
            port: 80
          initialDelaySeconds: 10
          periodSeconds: 10
        readinessProbe:
          httpGet:
            path: /health
            port: 80
          initialDelaySeconds: 5
          periodSeconds: 5
