-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdeployment.yaml
More file actions
67 lines (67 loc) · 1.46 KB
/
deployment.yaml
File metadata and controls
67 lines (67 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
apiVersion: v1
kind: ConfigMap
metadata:
name: oape-server-config
data:
CLAUDE_CODE_USE_VERTEX: "1"
CLOUD_ML_REGION: "us-east5"
ANTHROPIC_VERTEX_PROJECT_ID: "[gcp-project-id]"
ANTHROPIC_MODEL: "claude-opus-4-6"
---
apiVersion: v1
kind: Secret
metadata:
name: gcloud-adc-secret
type: Opaque
stringData:
# Replace with ~/.config/gcloud/application_default_credentials.json
# that can authenticate with GCP project.
application_default_credentials.json: '{}'
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: oape-server
labels:
app: oape-server
spec:
replicas: 1
selector:
matchLabels:
app: oape-server
template:
metadata:
labels:
app: oape-server
spec:
containers:
- name: oape-server
image: ghcr.io/shiftweek/oape-ai-e2e:latest
ports:
- containerPort: 8000
envFrom:
- configMapRef:
name: oape-server-config
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /secrets/gcloud/application_default_credentials.json
volumeMounts:
- name: gcloud-adc
mountPath: /secrets/gcloud
readOnly: true
volumes:
- name: gcloud-adc
secret:
secretName: gcloud-adc-secret
---
apiVersion: v1
kind: Service
metadata:
name: oape-server
spec:
selector:
app: oape-server
ports:
- port: 8000
targetPort: 8000
type: ClusterIP