Currently default pod termination logs go to /dev/termination-log. With CI we need to change customize path somewhere to /var/log for exporting logs with the kind export logs command. Setting FallbackToLogsOnError as termination policy for skaffold. Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>
58 lines
1.9 KiB
YAML
58 lines
1.9 KiB
YAML
{{- if .Values.azureStorageQueue.enabled }}
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: mqtrigger-azure-storage-queue
|
|
labels:
|
|
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
|
svc: mqtrigger
|
|
messagequeue: azure-storage-queue
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
svc: mqtrigger
|
|
messagequeue: azure-storage-queue
|
|
template:
|
|
metadata:
|
|
labels:
|
|
svc: mqtrigger
|
|
messagequeue: azure-storage-queue
|
|
spec:
|
|
containers:
|
|
- name: mqtrigger
|
|
{{- if eq .Values.imageTag "" }}
|
|
image: "{{ .Values.image }}"
|
|
{{- else }}
|
|
image: "{{ .Values.image }}:{{ .Values.imageTag }}"
|
|
{{- end }}
|
|
imagePullPolicy: {{ .Values.pullPolicy }}
|
|
command: ["/fission-bundle"]
|
|
args: ["--mqt", "--routerUrl", "http://router.{{ .Release.Namespace }}"]
|
|
env:
|
|
- name: MESSAGE_QUEUE_TYPE
|
|
value: azure-storage-queue
|
|
- name: AZURE_STORAGE_ACCOUNT_NAME
|
|
value: {{ required "An Azure storage account name is required." .Values.azureStorageQueue.accountName }}
|
|
- name: AZURE_STORAGE_ACCOUNT_KEY
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: azure-storage-account-key
|
|
key: key
|
|
- name: DEBUG_ENV
|
|
value: {{ .Values.debugEnv | quote }}
|
|
- name: PPROF_ENABLED
|
|
value: {{ .Values.pprof.enabled | quote }}
|
|
{{- include "opentracing.envs" . | indent 8 }}
|
|
{{- include "opentelemtry.envs" . | indent 8 }}
|
|
{{- if .Values.terminationMessagePath }}
|
|
terminationMessagePath: {{ .Values.terminationMessagePath }}
|
|
{{- end }}
|
|
{{- if .Values.terminationMessagePolicy }}
|
|
terminationMessagePolicy: {{ .Values.terminationMessagePolicy }}
|
|
{{- end }}
|
|
serviceAccountName: fission-svc
|
|
{{- if .Values.extraCoreComponentPodConfig }}
|
|
{{ toYaml .Values.extraCoreComponentPodConfig | indent 6 -}}
|
|
{{- end }}
|
|
{{- end }} |