apiVersion: apps/v1 kind: Deployment metadata: name: computer-svc namespace: gooseek labels: app: computer-svc spec: replicas: 1 selector: matchLabels: app: computer-svc template: metadata: labels: app: computer-svc spec: containers: - name: computer-svc image: gooseek/backend:latest command: ["/app/computer-svc"] ports: - containerPort: 3030 env: - name: COMPUTER_SVC_PORT value: "3030" - name: DATABASE_URL valueFrom: secretKeyRef: name: gooseek-secrets key: DATABASE_URL - name: REDIS_URL valueFrom: configMapKeyRef: name: gooseek-config key: REDIS_URL - name: OPENAI_API_KEY valueFrom: secretKeyRef: name: gooseek-secrets key: OPENAI_API_KEY - name: ANTHROPIC_API_KEY valueFrom: secretKeyRef: name: gooseek-secrets key: ANTHROPIC_API_KEY optional: true - name: GEMINI_API_KEY valueFrom: secretKeyRef: name: gooseek-secrets key: GEMINI_API_KEY optional: true - name: TELEGRAM_BOT_TOKEN valueFrom: secretKeyRef: name: gooseek-secrets key: TELEGRAM_BOT_TOKEN optional: true - name: SMTP_HOST valueFrom: secretKeyRef: name: gooseek-secrets key: SMTP_HOST optional: true - name: SMTP_USERNAME valueFrom: secretKeyRef: name: gooseek-secrets key: SMTP_USERNAME optional: true - name: SMTP_PASSWORD valueFrom: secretKeyRef: name: gooseek-secrets key: SMTP_PASSWORD optional: true - name: S3_ENDPOINT valueFrom: secretKeyRef: name: gooseek-secrets key: S3_ENDPOINT optional: true - name: S3_ACCESS_KEY valueFrom: secretKeyRef: name: gooseek-secrets key: S3_ACCESS_KEY optional: true - name: S3_SECRET_KEY valueFrom: secretKeyRef: name: gooseek-secrets key: S3_SECRET_KEY optional: true - name: SANDBOX_IMAGE value: "gooseek/sandbox:latest" resources: requests: memory: "256Mi" cpu: "100m" limits: memory: "1Gi" cpu: "1000m" livenessProbe: httpGet: path: /health port: 3030 initialDelaySeconds: 10 periodSeconds: 30 readinessProbe: httpGet: path: /health port: 3030 initialDelaySeconds: 5 periodSeconds: 10 volumeMounts: - name: docker-socket mountPath: /var/run/docker.sock volumes: - name: docker-socket hostPath: path: /var/run/docker.sock type: Socket --- apiVersion: v1 kind: Service metadata: name: computer-svc namespace: gooseek spec: selector: app: computer-svc ports: - port: 3030 targetPort: 3030 type: ClusterIP