-
Notifications
You must be signed in to change notification settings - Fork 447
/
xray-small.yaml
148 lines (135 loc) · 2.91 KB
/
xray-small.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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
##############################################################
# The small sizing
# This is the size recommended for running Xray for small teams
##############################################################
replicaCount: 1
databaseUpgradeReady: true
waitForDatabase: true
unifiedUpgradeAllowed: true
autoscaling:
enabled: true
minReplicas: 1
maxReplicas: 3
targetCPUUtilizationPercentage: 200
targetMemoryUtilizationPercentage: 800
xray:
podAntiAffinity:
## Valid values are "soft" or "hard"; any other value indicates no anti-affinity
type: "hard"
topologyKey: "kubernetes.io/hostname"
analysis:
resources:
requests:
cpu: "100m"
memory: 250Mi
limits:
# cpu: "4"
memory: 10Gi
indexer:
resources:
requests:
cpu: "300m"
memory: 550Mi
limits:
# cpu: "6"
memory: 8Gi
persist:
resources:
requests:
cpu: "100m"
memory: 250Mi
limits:
# cpu: "4"
memory: 8Gi
server:
resources:
requests:
cpu: "200m"
memory: 500Mi
limits:
# cpu: "4"
memory: 6Gi
router:
resources:
requests:
cpu: "60m"
memory: 100Mi
limits:
# cpu: "1"
memory: 1Gi
observability:
resources:
requests:
cpu: "10m"
memory: 25Mi
limits:
# cpu: "1"
memory: 250Mi
panoramic:
enabled: true
resources:
requests:
cpu: "100m"
memory: 250Mi
limits:
# cpu: "4"
memory: 8Gi
sbom:
enabled: false
resources:
requests:
cpu: "100m"
memory: 250Mi
limits:
# cpu: "4"
memory: 10Gi
# PostgreSQL
## Configuration values for the postgresql dependency
## ref: https://github.com/kubernetes/charts/blob/master/stable/postgresql/README.md
##
postgresql:
postgresqlExtendedConf:
listenAddresses: "*"
maxConnections: "200"
resources:
requests:
memory: 16Gi
cpu: "6"
limits:
memory: 16Gi
# cpu: "18"
primary:
affinity:
# Require PostgreSQL pod to run on a different node than Xray pods
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app
operator: In
values:
- xray
topologyKey: kubernetes.io/hostname
rabbitmq:
extraConfiguration: |-
vm_memory_high_watermark.absolute = 2G
{{- if not .Values.global.xray.rabbitmq.haQuorum.enabled }}
raft.wal_max_size_bytes = 1048576
{{- end }}
resources:
requests:
cpu: "50m"
memory: 300Mi
limits:
# cpu: "2"
memory: 3Gi
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app
operator: In
values:
- xray
topologyKey: kubernetes.io/hostname