# projects-svc — Spaces, Collections
apiVersion: apps/v1
kind: Deployment
metadata:
  name: projects-svc
  namespace: gooseek
spec:
  replicas: 2
  selector:
    matchLabels:
      app: projects-svc
  template:
    metadata:
      labels:
        app: projects-svc
    spec:
      containers:
        - name: projects-svc
          image: gooseek/projects-svc:latest
          ports:
            - containerPort: 3006
          env:
            - name: AUTH_SERVICE_URL
              value: "http://auth-svc.gooseek-auth:3014"
          livenessProbe:
            httpGet:
              path: /health
              port: 3006
            initialDelaySeconds: 5
            periodSeconds: 10
          readinessProbe:
            httpGet:
              path: /ready
              port: 3006
            initialDelaySeconds: 3
            periodSeconds: 5
          resources:
            requests:
              cpu: 50m
              memory: 128Mi
            limits:
              cpu: 500m
              memory: 512Mi
---
apiVersion: v1
kind: Service
metadata:
  name: projects-svc
  namespace: gooseek
spec:
  selector:
    app: projects-svc
  ports:
    - port: 3006
      targetPort: 3006
