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