You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.6 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: sharkey
namespace: sharkey
spec:
replicas: 1
selector:
matchLabels:
app: sharkey
template:
metadata:
labels:
app: sharkey
spec:
initContainers:
- name: init-config
image: busybox
volumeMounts:
- name: sharkey-config
mountPath: "/sharkey/.config"
readOnly: false
- name: config-secret
mountPath: "/config-secret"
readOnly: true
- name: config
mountPath: "/config"
readOnly: true
command: ['sh', '-c', 'cat /config/default.yml > /sharkey/.config/default.yml; cat /config-secret/secret.yml >> /sharkey/.config/default.yml;']
containers:
- image: ghcr.io/transfem-org/sharkey:stable
name: sharkey
volumeMounts:
- name: sharkey-files
mountPath: "/sharkey/files"
- name: sharkey-config
mountPath: "/sharkey/.config"
readOnly: true
- name: redis
image: redis
ports:
- containerPort: 6379
name: redis
protocol: TCP
volumes:
- name: config-secret
secret:
secretName: sharkey-config-secret
optional: false
- name: config
configMap:
name: sharkey-config
items:
- key: "default.yml"
path: "default.yml"
- name: sharkey-files
persistentVolumeClaim:
claimName: sharkey-files-pvc
- name: sharkey-config
persistentVolumeClaim:
claimName: sharkey-config-pvc