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.

68 lines
1.7 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', 'mkdir -p /sharkey/.config; cp /config-secret/*.yml /sharkey/.config/; cp /configt/*.yml /sharkey/.config/;']
containers:
- name: redis
image: redis
ports:
- containerPort: 6379
name: redis
protocol: TCP
- image: ghcr.io/transfem-org/sharkey:stable
name: sharkey
volumeMounts:
- name: sharkey-files
mountPath: "/sharkey/files"
- name: sharkey-config
mountPath: "/sharkey/.config"
readOnly: true
env:
- name: example
valueFrom:
secretKeyRef:
name: example-secret
key: example
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