browsertrix/chart/templates/redis.yaml
Ilya Kreymer 4ae4005d74 add ingress + nginx container for better routing
support screencasting to dynamically created service via nginx (k8s only thus far)
add crawl /watch endpoint to enable watching, creates service if doesn't exist
add crawl /running endpoint to check if crawl is running
nginx auth check in place, but not yet enabled
add k8s nginx.conf
add missing chart files
file reorg: move docker config to configs/
k8s: add readiness check for nginx and api containers for smoother reloading
ensure service deleted along with job
todo: update dockerman with screencast support
2021-10-09 23:47:29 -07:00

60 lines
978 B
YAML

{{- if .Values.redis_local }}
---
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-storage
hostPath:
path: /tmp/browsertrix-redis-data
type: DirectoryOrCreate
containers:
- name: redis
image: {{ .Values.redis_image }}
imagePullPolicy: {{ .Values.redis_pull_policy }}
args: ["--appendonly", "yes"]
volumeMounts:
- name: data-storage
mountPath: /data
---
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 }}