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