forked from ytsaurus/ytsaurus-k8s-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcluster_v1_remoteexecnodes.yaml
121 lines (106 loc) · 2.77 KB
/
cluster_v1_remoteexecnodes.yaml
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
apiVersion: cluster.ytsaurus.tech/v1
kind: RemoteExecNodes
metadata:
name: remote-exec-nodes
spec:
remoteClusterSpec:
name: remote-ytsaurus
# FIXME: Move cluster options into RemoteYtsaurus.
coreImage: ghcr.io/ytsaurus/ytsaurus:dev-23.2-relwithdebinfo
jobImage: mirror.gcr.io/library/python:3.12-slim
# configOverrides:
# name: ytsaurus-config-overrides
useIpv4: true
# useIpv6: true
# hostNetwork: true
name: remote
instanceCount: 1
loggers: &loggers
- name: debug
compression: zstd
minLogLevel: debug
writerType: file
rotationPolicy: &rotationPolicy
maxTotalSizeToKeep: 1073741824 # 1GiB
rotationPeriodMilliseconds: 900000 # 15Min
maxSegmentCountToKeep: 1000
categoriesFilter:
type: exclude
values: [ "Bus", "Concurrency" ]
- name: info
minLogLevel: info
writerType: file
rotationPolicy: *rotationPolicy
- name: info-stderr
minLogLevel: info
writerType: stderr
jobProxyLoggers:
- name: debug
compression: zstd
minLogLevel: debug
writerType: file
useTimestampSuffix: true
rotationPolicy: &rotationPolicyJobs
maxTotalSizeToKeep: 104857600 # 100Mi
rotationPeriodMilliseconds: 900000 # 15Min
categoriesFilter:
type: exclude
values: [ "Bus", "Concurrency" ]
- name: info
minLogLevel: info
writerType: file
rotationPolicy: *rotationPolicyJobs
- name: error
minLogLevel: error
writerType: stderr
resources:
# Allocate resources for exec node container
requests:
cpu: 1
memory: 1Gi
limits:
cpu: 10
memory: 10Gi
locations:
- locationType: Logs
path: /yt/exec-node-logs
- locationType: ChunkCache
path: /yt/node-data/chunk-cache
- locationType: Slots
path: /yt/node-data/slots
- locationType: ImageCache
path: /yt/node-data/image-cache
volumeMounts:
- name: exec-node-logs
mountPath: /yt/exec-node-logs
- name: node-data
mountPath: /yt/node-data
# mountPropagation: Bidirectional # Enable for tmpfs in jobs
volumeClaimTemplates:
- metadata:
name: node-data
spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 20Gi
- metadata:
name: exec-node-logs
spec: &logsVolumeSpec
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 10Gi
# privileged: true # Enable for tmpfs in jobs
jobResources:
# Allocate resources for jobs container
requests:
cpu: 4
memory: 4Gi
limits:
cpu: 10
memory: 10Gi
jobEnvironment:
# Add CRI containerd sidecar
cri:
apiRetryTimeoutSeconds: 180