mirror of
https://github.com/serai-dex/serai.git
synced 2024-12-25 13:09:30 +00:00
f9310a9968
* add file * builds + caching fixed * bitcoin orchestration * remove default entrypoint * eth image and cleanup * working monero * remove signature file * cleanup on aisle eth * cleanup on aisle btc * eth working * remove docker ignore * remove bitcoin image readme * fix serai builds * serai clusters * added readme for docker * formatting * share the image * newlines at EOF * add multi profile example * coin order * coin order * profile order * fix grammar * fix whitespace * reduce trusted signature set, require at least 3 signatures. * remove echo * update comment to ref trusted keys * comment fix * use 16 keys, check for laanwj, name compose * don't use bash * monero fingerprints & eth fixes * eth fixes * remove extra eth keys * kubernetes deployment implemented with helm charts * deleted helmignores & added new lines at the end of the file * deleted duplications & delete unnecessary comments & deactivated service accounts * deleted generators files * added a new line to monero/values.yaml * deleted support for old kubernetes version - ingress.yaml * added new like to serai/values.yaml * serai's port name changed * serai's port name changed * release name limit was changed to 253 * README.md updated * fixed Makefile * deleted platform dependant instructions * deleted appVersion from .yamls * added -i parameter for deleting process * added \ for Makefile Co-authored-by: TheArchitect108 <75815740+TheArchitect108@users.noreply.github.com> Co-authored-by: TheArchitect <TheArchitect108@protonmail.com>
89 lines
2.8 KiB
YAML
89 lines
2.8 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ include "ethereum.fullname" . }}
|
|
labels:
|
|
{{- include "ethereum.labels" . | nindent 4 }}
|
|
spec:
|
|
{{- if not .Values.autoscaling.enabled }}
|
|
replicas: {{ .Values.replicaCount }}
|
|
{{- end }}
|
|
selector:
|
|
matchLabels:
|
|
{{- include "ethereum.selectorLabels" . | nindent 6 }}
|
|
template:
|
|
metadata:
|
|
{{- with .Values.podAnnotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
labels:
|
|
{{- include "ethereum.selectorLabels" . | nindent 8 }}
|
|
spec:
|
|
{{- with .Values.imagePullSecrets }}
|
|
imagePullSecrets:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
serviceAccountName: {{ include "ethereum.serviceAccountName" . }}
|
|
securityContext:
|
|
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
|
containers:
|
|
- name: {{ .Chart.Name }}
|
|
securityContext:
|
|
{{- toYaml .Values.securityContext | nindent 12 }}
|
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
{{- if hasKey .Values.image "ports" }}
|
|
ports:
|
|
{{- range .Values.image.ports }}
|
|
- name: {{ .name }}
|
|
containerPort: {{ .containerPort }}
|
|
protocol: {{ .protocol }}
|
|
{{- end }}
|
|
resources:
|
|
{{- toYaml .Values.resources | nindent 12 }}
|
|
{{- end }}
|
|
|
|
{{- if hasKey .Values.image "command" }}
|
|
command:
|
|
{{- toYaml .Values.image.command | nindent 12 }}
|
|
{{- end }}
|
|
|
|
{{- if hasKey .Values.image "args" }}
|
|
args:
|
|
{{- toYaml .Values.image.args | nindent 12 }}
|
|
{{- end }}
|
|
|
|
{{- if hasKey .Values.image "envVariables" }}
|
|
env:
|
|
{{- toYaml .Values.image.envVariables | nindent 12 }}
|
|
{{- end }}
|
|
|
|
{{- if hasKey .Values.image "volumeMounts" }}
|
|
volumeMounts:
|
|
{{- range .Values.image.volumeMounts }}
|
|
- mountPath: {{ .mountPath }}
|
|
name: {{ $.Release.Name}}-{{ .name }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- with .Values.nodeSelector }}
|
|
nodeSelector:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- with .Values.affinity }}
|
|
affinity:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- with .Values.tolerations }}
|
|
tolerations:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- if hasKey .Values "volumes" }}
|
|
volumes:
|
|
{{- range .Values.volumes }}
|
|
- configMap:
|
|
defaultMode: {{ .configMap.defaultMode }}
|
|
name: {{ $.Release.Name}}-{{ .configMap.name }}
|
|
name: {{ $.Release.Name}}-{{ .name }}
|
|
{{- end }}
|
|
{{- end }}
|