apiVersion: apps/v1 kind: Deployment metadata: name: collection-svc namespace: gooseek labels: app: collection-svc app.kubernetes.io/name: collection-svc app.kubernetes.io/part-of: gooseek spec: replicas: 2 selector: matchLabels: app: collection-svc template: metadata: labels: app: collection-svc spec: containers: - name: collection-svc image: gooseek/backend:latest env: - name: SERVICE value: "collection-svc" - name: PORT value: "3025" envFrom: - configMapRef: name: gooseek-config - secretRef: name: gooseek-secrets ports: - containerPort: 3025 name: http livenessProbe: httpGet: path: /health port: 3025 initialDelaySeconds: 10 periodSeconds: 15 readinessProbe: httpGet: path: /ready port: 3025 initialDelaySeconds: 5 periodSeconds: 10 resources: requests: cpu: 100m memory: 128Mi limits: cpu: 500m memory: 256Mi --- apiVersion: v1 kind: Service metadata: name: collection-svc namespace: gooseek spec: type: ClusterIP selector: app: collection-svc ports: - port: 3025 targetPort: 3025 name: http