* backend: k8s: - support crawls with multiple wacz files, don't assume crawl complete after first wacz uploaded - if crawl is running and has wacz file, still show as running - k8s: allow configuring node selector for main pods (eg. nodeType=main) and for crawlers (eg. nodeType=crawling) - profiles: support uploading to alternate storage specified via 'shared_profile_storage' value is set - misc fixes for profiles * backend: ensure docker run_profile api matches k8s k8s chart: don't delete pvc and pv in helm chart * dependency: bump authsign to 0.4.0 docker: disable public redis port * profiles: fix path, profile browser return value * fix typo in presigned url cacheing
115 lines
2.0 KiB
YAML
115 lines
2.0 KiB
YAML
{{- if .Values.redis_local }}
|
|
|
|
---
|
|
kind: PersistentVolumeClaim
|
|
apiVersion: v1
|
|
metadata:
|
|
name: redis-storage-pvc
|
|
annotations:
|
|
"helm.sh/resource-policy": keep
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
|
|
resources:
|
|
requests:
|
|
storage: 1Gi
|
|
|
|
{{- if .Values.volume_storage_class }}
|
|
storageClassName: {{ .Values.volume_storage_class }}
|
|
{{- end }}
|
|
|
|
|
|
{{- if not .Values.volume_storage_class }}
|
|
---
|
|
apiVersion: v1
|
|
kind: PersistentVolume
|
|
metadata:
|
|
name: "local-redis-store-pv"
|
|
annotations:
|
|
"helm.sh/resource-policy": keep
|
|
spec:
|
|
capacity:
|
|
storage: 1Gi
|
|
|
|
accessModes:
|
|
- "ReadWriteOnce"
|
|
|
|
hostPath:
|
|
path: /tmp/btrix-redis-data
|
|
{{- end }}
|
|
|
|
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: local-redis
|
|
namespace: {{ .Release.Namespace }}
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: local-redis
|
|
|
|
replicas: 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: local-redis
|
|
|
|
spec:
|
|
volumes:
|
|
- name: data-redis
|
|
persistentVolumeClaim:
|
|
claimName: redis-storage-pvc
|
|
|
|
containers:
|
|
- name: redis
|
|
image: {{ .Values.redis_image }}
|
|
imagePullPolicy: {{ .Values.redis_pull_policy }}
|
|
|
|
args: ["--appendonly", "yes"]
|
|
volumeMounts:
|
|
- name: data-redis
|
|
mountPath: /data
|
|
subPath: redis
|
|
|
|
resources:
|
|
limits:
|
|
cpu: {{ .Values.redis_limits_cpu }}
|
|
memory: {{ .Values.redis_limits_memory }}
|
|
|
|
requests:
|
|
cpu: {{ .Values.redis_requests_cpu }}
|
|
memory: {{ .Values.redis_requests_memory }}
|
|
|
|
readinessProbe:
|
|
exec:
|
|
command:
|
|
- redis-cli
|
|
- ping
|
|
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
|
|
metadata:
|
|
namespace: {{ .Release.Namespace }}
|
|
name: local-redis
|
|
labels:
|
|
app: local-redis
|
|
|
|
spec:
|
|
type: ClusterIP
|
|
selector:
|
|
app: local-redis
|
|
|
|
ports:
|
|
- protocol: TCP
|
|
port: 6379
|
|
name: redis
|
|
|
|
{{- end }}
|
|
|
|
|