-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathvalues.yaml
More file actions
193 lines (169 loc) · 4.4 KB
/
values.yaml
File metadata and controls
193 lines (169 loc) · 4.4 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
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
# Default values for controller.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
replicaCount: 1
name: controller
sandboxNamespace: aenv-sandbox
# Namespace configuration
namespace:
# Set to true to automatically create the namespace(s)
create: true
# Optional labels to add to the namespace
labels: {}
# Optional annotations to add to the namespace
annotations: {}
storageAddr: ""
leaderElect: false
serviceAccountName: aenv-serviceaccount
image: docker.io/library/controller:latest
# Command to run in the container (optional)
# If not specified, uses the image's default ENTRYPOINT
# Example: ["/usr/local/bin/controller"]
command: ["/usr/bin/controller"]
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
podAnnotations: {}
podSecurityContext: {}
# fsGroup: 2000
securityContext: {}
service:
type: LoadBalancer
port: 8080
# ServiceAccount configuration
serviceAccount:
# Specifies whether a service account should be created
create: true
# Annotations to add to the service account
annotations: {}
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name: "aenv-serviceaccount"
# RBAC configuration
rbac:
# Specifies whether RBAC resources should be created
create: true
# Additional namespaces where pod management permissions are needed
# By default, permissions are granted in sandboxNamespace
additionalNamespaces: []
# Example:
# additionalNamespaces:
# - win-env-namespace
# - other-namespace
resources:
limits:
cpu: "2"
memory: "4G"
ephemeral-storage: 10Gi
requests:
cpu: "0"
memory: "0"
ephemeral-storage: 10Gi
autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 4
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80
nodeSelector: {}
tolerations: {}
affinity: {}
# Pod 模板配置
# 所有模板存储在一个 ConfigMap 中,通过 Volume 挂载到 /etc/aenv/pod-templates/
# 文件名格式: {templateType}.yaml
podTemplates:
# Single Container 模板(默认)
singleContainer: |
apiVersion: v1
kind: Pod
metadata:
name: placeholder
namespace: {{ .Values.sandboxNamespace }}
labels:
app.kubernetes.io/name: aenv-sandbox
template-type: singleContainer
spec:
automountServiceAccountToken: false
containers:
- name: main
image: weather:v0.1.0
imagePullPolicy: IfNotPresent
resources:
limits:
cpu: "2"
memory: "4Gi"
ephemeral-storage: "10Gi"
requests:
cpu: "1"
memory: "2Gi"
ephemeral-storage: "5Gi"
livenessProbe:
failureThreshold: 30
initialDelaySeconds: 3
periodSeconds: 10
successThreshold: 1
httpGet:
path: /health
port: 8081
scheme: HTTP
timeoutSeconds: 60
env:
- name: AENV_TYPE
value: "singleContainer"
restartPolicy: Never
# Dual Container 模板
dualContainer: |
apiVersion: v1
kind: Pod
metadata:
name: placeholder
namespace: {{ .Values.sandboxNamespace }}
labels:
app.kubernetes.io/name: aenv-sandbox
template-type: dualContainer
spec:
automountServiceAccountToken: false
containers:
- name: main
image: aenv-base:latest
imagePullPolicy: IfNotPresent
resources:
limits:
cpu: "2"
memory: "4Gi"
ephemeral-storage: "10Gi"
requests:
cpu: "1"
memory: "2Gi"
ephemeral-storage: "5Gi"
volumeMounts:
- mountPath: /run/containerd
name: fifo
- mountPath: /shared
name: shared-data
- name: second
image: aenv-sidecar:latest
command:
- /bin/sh
- -c
- --
- sleep infinity
imagePullPolicy: IfNotPresent
resources:
limits:
cpu: "1"
memory: "1Gi"
requests:
cpu: "0.5"
memory: "512Mi"
volumeMounts:
- mountPath: /shared
name: shared-data
volumes:
- name: fifo
hostPath:
path: /var/run/containerd
type: ""
- name: shared-data
emptyDir: {}
restartPolicy: Never