1234567891011121314151617181920212223242526272829303132333435363738 |
- {{- if hasKey . "common" }}
- {{- $_ := unset .common "nameSuffix" }}
- {{- end }}
- apiVersion: {{ template "common.capabilities.deployment.apiVersion" . }}
- kind: Deployment
- metadata:
- name: {{ template "common.names.fullname" . }}
- labels: {{ include "common.labels" . | nindent 4 }}
- spec:
- strategy:
- type: {{ .Values.updateStrategy }}
- selector:
- matchLabels: {{ include "common.labels.selectorLabels" . | nindent 6 }}
- template:
- metadata:
- name: {{ template "common.names.fullname" . }}
- labels: {{ include "common.labels.selectorLabels" . | nindent 8 }}
- spec:
- # FIXME: Let's please remove hostnetwork when upstream hostport issue is sorted out with kube-router
- hostNetwork: true
- containers:
- - name: {{ .Chart.Name }}
- {{- include "resourceLimits" . | nindent 10 }}
- tty: true
- {{ include "common.containers.imageConfig" .Values.image | nindent 10 }}
- volumeMounts: {{ include "common.storage.configureAppVolumeMountsInContainer" .Values | nindent 12 }}
- {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }}
- - name: extrappvolume-{{ $index }}
- mountPath: {{ $hostPathConfiguration.mountPath }}
- {{ end }}
- {{ include "common.containers.configurePorts" .Values | nindent 10 }}
- {{ include "allEnvironmentVariables" (dict "defaultEnv" (dict "TZ" .Values.timezone "worker_address" .Values.nodeIP "worker_api_port" .Values.apiPort "controller_api_port" .Values.apiPort "farmer_port" .Values.farmerPort "blockchains" "chia" "plots_dir" .Values.appVolumeMounts.plots.mountPath "mode" "fullnode") "environmentVariables" .Values.environmentVariables) | nindent 10 }}
- volumes: {{ include "common.storage.configureAppVolumes" .Values | nindent 8 }}
- {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }}
- - name: extrappvolume-{{ $index }}
- hostPath:
- path: {{ $hostPathConfiguration.hostPath }}
- {{ end }}
|