apiVersion: apps/v1 kind: Deployment metadata: name: maestri-remote-relay namespace: maestri-remote labels: app: maestri-remote spec: replicas: 1 minReadySeconds: 3 strategy: type: RollingUpdate rollingUpdate: maxSurge: 1 maxUnavailable: 0 selector: matchLabels: app: maestri-remote template: metadata: labels: app: maestri-remote spec: terminationGracePeriodSeconds: 30 imagePullSecrets: - name: dockerhub-key containers: - name: relay image: winicomw/maestri-remote-relay:latest imagePullPolicy: Always ports: - containerPort: 3000 name: http protocol: TCP envFrom: - secretRef: name: litellm-config - secretRef: name: maestri-remote-auth lifecycle: preStop: exec: command: ["/bin/sh", "-c", "sleep 5"] readinessProbe: httpGet: path: /api/health port: 3000 scheme: HTTP initialDelaySeconds: 2 periodSeconds: 2 timeoutSeconds: 2 successThreshold: 1 failureThreshold: 2 livenessProbe: httpGet: path: /api/health port: 3000 scheme: HTTP initialDelaySeconds: 10 periodSeconds: 10 timeoutSeconds: 2 successThreshold: 1 failureThreshold: 3 resources: limits: cpu: 500m memory: 512Mi requests: cpu: 50m memory: 64Mi