mirror of
https://github.com/bvanroll/example-node-project.git
synced 2025-08-29 11:52:43 +00:00
42 lines
1.5 KiB
YAML
Executable File
42 lines
1.5 KiB
YAML
Executable File
{{- 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:
|
|
{{- range $pkey, $pval := .Values.env }}
|
|
- name: {{ $pkey }}
|
|
value: {{ quote $pval }}
|
|
{{- end }}
|
|
livenessProbe:
|
|
httpGet:
|
|
path: {{ .Values.probePath }}
|
|
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
|
|
periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
|
|
successThreshold: {{ .Values.livenessProbe.successThreshold }}
|
|
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
|
|
readinessProbe:
|
|
failureThreshold: {{ .Values.readinessProbe.failureThreshold }}
|
|
httpGet:
|
|
path: {{ .Values.probePath }}
|
|
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
|
|
successThreshold: {{ .Values.readinessProbe.successThreshold }}
|
|
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
|
|
resources:
|
|
{{ toYaml .Values.resources | indent 14 }}
|
|
{{- end }}
|