-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathkustomization.yaml
More file actions
72 lines (69 loc) · 1.93 KB
/
kustomization.yaml
File metadata and controls
72 lines (69 loc) · 1.93 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
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../base
configMapGenerator:
- behavior: replace
files:
- sources.yaml=dev-sources.yaml
- dev-organization-models.yaml=dev-organization-models.yaml
- dev-validated-models.yaml=dev-validated-models.yaml
- dev-community-models.yaml=dev-community-models.yaml
- dev-organization-mcp-servers.yaml=dev-organization-mcp-servers.yaml
- dev-community-mcp-servers.yaml=dev-community-mcp-servers.yaml
name: model-catalog-sources
options:
disableNameSuffixHash: true
- behavior: create
files:
- dev-validated-perf-data.tar.gz
name: model-catalog-demo-perf-data
options:
disableNameSuffixHash: true
patches:
- target:
group: apps
version: v1
kind: Deployment
name: model-catalog-server
patch: |-
- op: add
path: /spec/template/spec/volumes/0
value:
name: demo-perf-data
configMap:
name: model-catalog-demo-perf-data
- op: add
path: /spec/template/spec/volumes/1
value:
name: perf-data
emptyDir: {}
- op: add
path: /spec/template/spec/containers/0/volumeMounts/0
value:
name: perf-data
mountPath: /perf-data
- op: add
path: /spec/template/spec/containers/0/args/0
value: "--performance-metrics=/perf-data"
- op: add
path: /spec/template/spec/initContainers
value:
- name: perf-data-init
image: busybox
command:
- /bin/sh
- -c
- tar zxf /demo-perf-data/dev-validated-perf-data.tar.gz -C /shared
volumeMounts:
- name: perf-data
mountPath: /shared
- name: demo-perf-data
mountPath: /demo-perf-data
securityContext:
runAsNonRoot: true
runAsUser: 65534
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL