{{- if and .Values.enabled .Values.ui.enabled }} apiVersion: apps/v1 kind: Deployment metadata: name: {{ include "temporal.fullname" . }}-ui namespace: {{ include "temporal.namespace" . }} labels: {{- include "temporal.labels" . | nindent 4 }} app.kubernetes.io/component: ui spec: replicas: {{ .Values.ui.replicaCount }} selector: matchLabels: {{- include "temporal.selectorLabels" . | nindent 6 }} app.kubernetes.io/component: ui template: metadata: labels: {{- include "temporal.selectorLabels" . | nindent 8 }} app.kubernetes.io/component: ui spec: enableServiceLinks: false containers: - name: temporal-ui image: "{{ .Values.ui.image.repository }}:{{ .Values.ui.image.tag }}" imagePullPolicy: {{ .Values.ui.image.pullPolicy }} env: - name: TEMPORAL_ADDRESS value: "{{ .Values.service.name }}:{{ .Values.service.port }}" - name: TEMPORAL_UI_PORT value: "{{ .Values.ui.service.port }}" ports: - name: http containerPort: {{ .Values.ui.service.port }} protocol: TCP readinessProbe: tcpSocket: port: http initialDelaySeconds: 5 periodSeconds: 10 livenessProbe: tcpSocket: port: http initialDelaySeconds: 10 periodSeconds: 20 resources: {{- toYaml .Values.ui.resources | nindent 12 }} --- apiVersion: v1 kind: Service metadata: name: {{ include "temporal.fullname" . }}-ui namespace: {{ include "temporal.namespace" . }} labels: {{- include "temporal.labels" . | nindent 4 }} app.kubernetes.io/component: ui spec: type: ClusterIP selector: {{- include "temporal.selectorLabels" . | nindent 4 }} app.kubernetes.io/component: ui ports: - name: http port: {{ .Values.ui.service.port }} targetPort: http protocol: TCP {{- end }}