ce7cb702218693d08ea6d83464d2457c9250027c
This commit is contained in:
commit
34c5f8963c
1 changed files with 145336 additions and 0 deletions
77
services/vertex-batch/k8s/deployment.yaml
Normal file
77
services/vertex-batch/k8s/deployment.yaml
Normal file
|
|
@ -0,0 +1,77 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: vertex-batch
|
||||
namespace: agentgateway-system
|
||||
spec:
|
||||
replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: vertex-batch
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: vertex-batch
|
||||
app.kubernetes.io/instance: vertex-batch
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 75
|
||||
automountServiceAccountToken: false
|
||||
imagePullSecrets:
|
||||
- name: quay-cluster-pull
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
runAsUser: 65532
|
||||
runAsGroup: 65532
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
containers:
|
||||
- name: batch
|
||||
image: registry.quorate.internal/quorate/vertex-batch@sha256:a1416b98cc57ae27dde41df27ad696c933d6bad6906f241bc698fc48cf4c7a35
|
||||
args:
|
||||
- -gateway-url=http://agentgateway-proxy.agentgateway-system.svc.cluster.local/v1/chat/completions
|
||||
- -project=ms2k-personal
|
||||
- -bucket=ms2k-personal-vertex-batch
|
||||
- -credentials=/credentials/credentials.json
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 8080
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /healthz
|
||||
port: http
|
||||
lifecycle:
|
||||
preStop:
|
||||
sleep:
|
||||
seconds: 5
|
||||
resources:
|
||||
requests:
|
||||
cpu: 10m
|
||||
memory: 32Mi
|
||||
limits:
|
||||
memory: 128Mi
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
readOnlyRootFilesystem: true
|
||||
capabilities:
|
||||
drop: [ALL]
|
||||
volumeMounts:
|
||||
- name: credentials
|
||||
mountPath: /credentials
|
||||
readOnly: true
|
||||
volumes:
|
||||
- name: credentials
|
||||
secret:
|
||||
secretName: agentgateway-vertex-ai
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: vertex-batch
|
||||
namespace: agentgateway-system
|
||||
spec:
|
||||
selector:
|
||||
app.kubernetes.io/name: vertex-batch
|
||||
ports:
|
||||
- name: http
|
||||
port: 8080
|
||||
targetPort: http
|
||||
Loading…
Reference in a new issue