This repository was archived by the owner on Jan 27, 2026. It is now read-only.
forked from helm/charts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstatefulset.yaml
More file actions
66 lines (66 loc) · 1.98 KB
/
statefulset.yaml
File metadata and controls
66 lines (66 loc) · 1.98 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
apiVersion: apps/v1beta1
kind: StatefulSet
metadata:
name: {{ template "fullname" . }}
labels:
app: {{ template "name" . }}
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
serviceName: {{ template "fullname" . }}
replicas: {{ .Values.replicaCount }}
template:
metadata:
labels:
app: {{ template "name" . }}
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }}
containers:
- name: {{ template "fullname" . }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- containerPort: 3000
name: aero-clients
- containerPort: 3002
name: aero-mesh
- containerPort: 3003
name: aero-info
readinessProbe:
tcpSocket:
port: 3000
initialDelaySeconds: 15
timeoutSeconds: 1
volumeMounts:
- name: config-volume
mountPath: /etc/aerospike
{{- range $pv := .Values.persistentVolume }}
- name: {{ $pv.name | quote }}
mountPath: {{ $pv.mountPath | quote }}
{{- end }}
resources:
{{ toYaml .Values.resources | indent 10 }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- if .Values.affinity }}
affinity:
{{ toYaml .Values.affinity | indent 8 }}
{{- end }}
volumes:
- name: config-volume
configMap:
name: {{ template "fullname" . }}
items:
- key: aerospike.conf
path: aerospike.conf
volumeClaimTemplates:
{{- range $pv := .Values.persistentVolume }}
- metadata:
name: {{ $pv.name | quote }}
spec:
{{ toYaml $pv.template | indent 6 }}
{{- end }}