Created
July 17, 2019 10:03
-
-
Save vfarcic/cb7c79f25e65bcca5f6e553a2aa8a47c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{- if .Values.knativeDeploy }} | |
apiVersion: serving.knative.dev/v1alpha1 | |
kind: Service | |
metadata: | |
{{- if .Values.service.name }} | |
name: {{ .Values.service.name }} | |
{{- else }} | |
name: {{ template "fullname" . }} | |
{{- end }} | |
labels: | |
chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" | |
spec: | |
runLatest: | |
configuration: | |
revisionTemplate: | |
spec: | |
container: | |
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" | |
imagePullPolicy: {{ .Values.image.pullPolicy }} | |
env: | |
- name: DB | |
value: {{ template "fullname" . }}-db | |
livenessProbe: | |
httpGet: | |
path: {{ .Values.probePath }} | |
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }} | |
periodSeconds: {{ .Values.livenessProbe.periodSeconds }} | |
successThreshold: {{ .Values.livenessProbe.successThreshold }} | |
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }} | |
readinessProbe: | |
httpGet: | |
path: {{ .Values.probePath }} | |
periodSeconds: {{ .Values.readinessProbe.periodSeconds }} | |
successThreshold: {{ .Values.readinessProbe.successThreshold }} | |
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }} | |
resources: | |
{{ toYaml .Values.resources | indent 14 }} | |
{{- end }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment