* Sync a few files from fission-all to fission-core chart * Change values in fission-all chart We keep the following components by default disabled now, which were enabled by default earlier. 1. nats - Fission Nats integration 2. influxdb - Influxdb and logger component 3. prometheus - Prometheus disabled by default 4. canaryDeployment - Disabled by default This change reduces the need for a fission-core chart and we can configure values of fission-all so that it can provide the behaviour of fission-all as well as fission-core. * Remove fission-core chart * Add README in the fission-all chart * Rename clusterrolebinding fission-crd to fission-cr-admin * Add icon and sources in helm chart Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>
93 lines
3.1 KiB
YAML
93 lines
3.1 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: storagesvc
|
|
labels:
|
|
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
|
svc: storagesvc
|
|
application: fission-storage
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
svc: storagesvc
|
|
application: fission-storage
|
|
template:
|
|
metadata:
|
|
labels:
|
|
svc: storagesvc
|
|
application: fission-storage
|
|
spec:
|
|
containers:
|
|
- name: storagesvc
|
|
image: {{ include "fission-bundleImage" . | quote }}
|
|
imagePullPolicy: {{ .Values.pullPolicy }}
|
|
command: ["/fission-bundle"]
|
|
{{- if and (.Values.persistence.enabled) (eq (.Values.persistence.storageType | default "local") "s3") }}
|
|
args: ["--storageServicePort", "8000", "--storageType", "s3"]
|
|
{{- else }}
|
|
args: ["--storageServicePort", "8000", "--storageType", "local"]
|
|
{{- end }}
|
|
env:
|
|
- name: PRUNE_INTERVAL
|
|
value: "{{.Values.pruneInterval}}"
|
|
- name: DEBUG_ENV
|
|
value: {{ .Values.debugEnv | quote }}
|
|
- name: PPROF_ENABLED
|
|
value: {{ .Values.pprof.enabled | quote }}
|
|
{{- if and (.Values.persistence.enabled) (eq (.Values.persistence.storageType | default "local") "s3") }}
|
|
- name: STORAGE_S3_ENDPOINT
|
|
value: {{ .Values.persistence.s3.endPoint }}
|
|
- name: STORAGE_S3_BUCKET_NAME
|
|
value: {{ .Values.persistence.s3.bucketName }}
|
|
- name: STORAGE_S3_SUB_DIR
|
|
value: {{ .Values.persistence.s3.subDir }}
|
|
- name: STORAGE_S3_ACCESS_KEY_ID
|
|
value: {{ .Values.persistence.s3.accessKeyId }}
|
|
- name: STORAGE_S3_SECRET_ACCESS_KEY
|
|
value: {{ .Values.persistence.s3.secretAccessKey }}
|
|
- name: STORAGE_S3_REGION
|
|
value: {{ .Values.persistence.s3.region }}
|
|
{{- end }}
|
|
{{- include "opentracing.envs" . | indent 8 }}
|
|
{{- include "opentelemtry.envs" . | indent 8 }}
|
|
{{- if ne (.Values.persistence.storageType | default "local") "s3" }}
|
|
volumeMounts:
|
|
- name: fission-storage
|
|
mountPath: /fission
|
|
{{- end }}
|
|
readinessProbe:
|
|
httpGet:
|
|
path: "/healthz"
|
|
port: 8000
|
|
initialDelaySeconds: 1
|
|
periodSeconds: 1
|
|
failureThreshold: 30
|
|
livenessProbe:
|
|
httpGet:
|
|
path: "/healthz"
|
|
port: 8000
|
|
initialDelaySeconds: 35
|
|
periodSeconds: 5
|
|
ports:
|
|
- containerPort: 8000
|
|
name: http
|
|
{{- if .Values.pprof.enabled }}
|
|
- containerPort: 6060
|
|
name: pprof
|
|
{{- end }}
|
|
serviceAccountName: fission-svc
|
|
{{- if and (.Values.persistence.enabled) (ne (.Values.persistence.storageType | default "local") "s3") }}
|
|
volumes:
|
|
- name: fission-storage
|
|
persistentVolumeClaim:
|
|
claimName: {{ .Values.persistence.existingClaim | default "fission-storage-pvc" }}
|
|
{{- else }}
|
|
volumes:
|
|
- name: fission-storage
|
|
emptyDir: {}
|
|
{{- end }}
|
|
{{- if .Values.extraCoreComponentPodConfig }}
|
|
{{ toYaml .Values.extraCoreComponentPodConfig | indent 6 -}}
|
|
{{- end }}
|