12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- {{- if .Values.livy.install.enabled }}
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: {{ .Release.Name }}-livy
- labels:
- tier: aihub-spark
- component: livy
- release: {{ .Release.Name }}
- spec:
- selector:
- matchLabels:
- tier: aihub-spark
- component: livy
- release: {{ .Release.Name }}
- template:
- metadata:
- {{- with .Values.livy.podAnnotations }}
- annotations:
- {{- toYaml . | nindent 8 }}
- {{- end }}
- labels:
- tier: aihub-spark
- component: livy
- release: {{ .Release.Name }}
- date: "{{ now | unixEpoch }}"
- spec:
- {{- with .Values.livy.imagePullSecrets }}
- imagePullSecrets:
- {{- toYaml . | nindent 8 }}
- {{- end }}
- securityContext:
- {{- toYaml .Values.livy.podSecurityContext | nindent 8 }}
- containers:
- - name: {{ .Release.Name }}-livy
- securityContext:
- {{- toYaml .Values.securityContext | nindent 12 }}
- image: "{{ .Values.livy.image.repository }}:{{ .Values.livy.image.tag | default .Chart.AppVersion }}"
- imagePullPolicy: {{ .Values.livy.image.pullPolicy }}
- ports:
- - name: http
- containerPort: 8998
- protocol: TCP
- {{- range untilStep 31100 31110 1}}
- - name: livy-port-{{ . }}
- containerPort: {{ . }}
- protocol: TCP
- {{- end }}
- resources:
- {{- toYaml .Values.livy.resources | nindent 12 }}
- # livenessProbe:
- # httpGet:
- # path: /
- # port: http
- # readinessProbe:
- # httpGet:
- # path: /
- # port: http
- {{- with .Values.livy.nodeSelector }}
- nodeSelector:
- {{- toYaml . | nindent 8 }}
- {{- end }}
- {{- with .Values.livy.affinity }}
- affinity:
- {{- toYaml . | nindent 8 }}
- {{- end }}
- {{- with .Values.livy.tolerations }}
- tolerations:
- {{- toYaml . | nindent 8 }}
- {{- end }}
- {{- if .Values.livy.hostAliases }}
- hostAliases:
- {{ toYaml .Values.livy.hostAliases | indent 8 }}
- {{- end }}
- {{- end }}
|