Repository navigation
Expand file tree
/
Copy pathdeployment.yaml
More file actions
94 lines (94 loc) · 2.78 KB
/
Copy pathdeployment.yaml
File metadata and controls
94 lines (94 loc) · 2.78 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
apiVersion: apps/v1
kind: Deployment
metadata:
name: agentic-interface
labels:
app: agentic-interface
spec:
# One replica: a question's answer is only read by the process that asked it.
replicas: 1
selector:
matchLabels:
app: agentic-interface
template:
metadata:
labels:
app: agentic-interface
spec:
# The fixed UID of the image (docker/agentic-interface/Dockerfile).
securityContext:
runAsNonRoot: true
runAsUser: 1000
runAsGroup: 1000
seccompProfile:
type: RuntimeDefault
containers:
- name: agentic-interface
image: geddes2-registry.rcac.purdue.edu/ghcr-proxy-cache/purdueaf/agentic-interface:0.9.2
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities:
drop: ["ALL"]
ports:
- containerPort: 8888
env:
- name: AF_PUBLIC_URL
value: "https://${jupyterhub_host:=cms.geddes.rcac.purdue.edu}"
- name: NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
resources:
requests:
cpu: "100m"
memory: "128Mi"
limits:
cpu: "500m"
memory: "256Mi"
livenessProbe:
tcpSocket:
port: 8888
initialDelaySeconds: 10
periodSeconds: 30
readinessProbe:
httpGet:
path: /health
port: 8888
initialDelaySeconds: 5
periodSeconds: 10
volumeMounts:
# Writable /tmp under readOnlyRootFilesystem; HOME points here too.
- name: tmp
mountPath: /tmp
- name: dashboards
mountPath: /dashboards
readOnly: true
- name: docs
mountPath: /docs
readOnly: true
volumes:
- name: tmp
emptyDir:
sizeLimit: 64Mi
# From the core root; get_facility_metrics reads it on each call.
- name: dashboards
configMap:
name: grafana-public-dashboards
optional: true
items:
- key: default.json
path: default.json
# docs/docs, from flux/experimental; read_af_doc reads it on each call.
- name: docs
configMap:
name: user-docs
optional: true
serviceAccountName: agentic-interface
nodeSelector:
${af_node_label:=cms-af-prod}: ${af_node_label_value:="true"}
tolerations:
- key: "hub.jupyter.org/dedicated"
operator: "Equal"
value: "cms-af"
effect: "NoSchedule"