{{- if .Values.freeleapsAuthenticationApiServer.enabled -}} apiVersion: apps/v1 kind: Deployment metadata: name: {{ .Release.Name }}-api-server labels: {{- include "app.labels" . | nindent 4 }} component: api-server spec: replicas: {{ .Values.freeleapsAuthenticationApiServer.replicas }} selector: matchLabels: {{- include "app.selectorLabels" . | nindent 6 }} component: api-server template: metadata: labels: {{- include "app.selectorLabels" . | nindent 8 }} component: api-server spec: serviceAccountName: {{ include "app.serviceAccountName" . }} containers: - name: api-server image: "{{ .Values.freeleapsAuthenticationApiServer.image.registry | default .Values.global.registry }}/{{ .Values.freeleapsAuthenticationApiServer.image.repository | default .Values.global.repository }}/{{ .Values.freeleapsAuthenticationApiServer.image.name }}:{{ .Values.freeleapsAuthenticationApiServer.image.tag }}" imagePullPolicy: {{ .Values.freeleapsAuthenticationApiServer.image.imagePullPolicy }} ports: {{- toYaml .Values.freeleapsAuthenticationApiServer.ports | nindent 12 }} resources: {{- toYaml .Values.freeleapsAuthenticationApiServer.resources | nindent 12 }} env: {{- toYaml .Values.freeleapsAuthenticationApiServer.env | nindent 12 }} {{- with .Values.freeleapsAuthenticationApiServer.livenessProbe }} livenessProbe: {{- toYaml . | nindent 12 }} {{- end }} {{- with .Values.freeleapsAuthenticationApiServer.readinessProbe }} readinessProbe: {{- toYaml . | nindent 12 }} {{- end }} --- apiVersion: v1 kind: Service metadata: name: freeleaps-authentication-api-server labels: {{- include "app.labels" . | nindent 4 }} component: api-server spec: type: {{ .Values.service.type }} ports: - port: 8888 targetPort: http protocol: TCP name: api-server selector: {{- include "app.selectorLabels" . | nindent 4 }} component: api-server {{- end }}