k8s/ manifest added
This commit is contained in:
47
k8s/deployment.yaml
Normal file
47
k8s/deployment.yaml
Normal file
@@ -0,0 +1,47 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: rclone-tools
|
||||
namespace: rook-ceph-s3-backup
|
||||
annotations:
|
||||
reloader.stakater.com/auto: 'true'
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: rclone-tools
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: rclone-tools
|
||||
spec:
|
||||
serviceAccountName: rook-ceph-s3-backup
|
||||
containers:
|
||||
- name: rclone
|
||||
image: gitea.sikorski.cloud/rogersik/ceph-s3-backup:latest
|
||||
imagePullPolicy: IfNotPresent
|
||||
env:
|
||||
- name: HOME
|
||||
value: /root
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
sleep infinity
|
||||
volumeMounts:
|
||||
- name: rclone-sync-script
|
||||
mountPath: /usr/local/bin/rclone-sync-script.sh
|
||||
subPath: rclone-sync-script.sh
|
||||
readOnly: true
|
||||
- name: rclone-config
|
||||
mountPath: /root/.config/rclone/rclone.conf
|
||||
subPath: rclone.conf
|
||||
volumes:
|
||||
- name: rclone-sync-script
|
||||
configMap:
|
||||
name: rclone-sync-script
|
||||
defaultMode: 0755
|
||||
- name: rclone-config
|
||||
configMap:
|
||||
name: rclone-config
|
||||
Reference in New Issue
Block a user