This repository was archived by the owner on Jun 9, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 123
Expand file tree
/
Copy pathembeddings.Deployment.yaml
More file actions
56 lines (56 loc) · 1.44 KB
/
embeddings.Deployment.yaml
File metadata and controls
56 lines (56 loc) · 1.44 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
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
description: Handles embeddings searches
name: embeddings
labels:
deploy: sourcegraph
sourcegraph-resource-requires: no-cluster-admin
app.kubernetes.io/component: embeddings
spec:
minReadySeconds: 10
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: embeddings
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
type: RollingUpdate
template:
metadata:
labels:
deploy: sourcegraph
app: embeddings
spec:
containers:
- name: embeddings
image: index.docker.io/sourcegraph/embeddings:5.6.3798@sha256:417e43ec439db72d51379819cdedc28bbfa2979fc1916321b82d3436ee8882c5
env:
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: OTEL_AGENT_HOST
valueFrom:
fieldRef:
fieldPath: status.hostIP
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: http://$(OTEL_AGENT_HOST):4317
envFrom:
- configMapRef:
name: embeddings-backend
ports:
- containerPort: 9991
name: http
protocol: TCP
resources:
limits:
cpu: "8"
memory: 64G
requests:
cpu: "4"
memory: 32G