mirror of
https://github.com/amkartashov/gf-k8s.git
synced 2026-01-11 09:59:43 +00:00
add timemachine
This commit is contained in:
parent
9ae77c3dff
commit
5f2643631a
2 changed files with 93 additions and 0 deletions
72
apps/timemachine/timemachine.yaml
Normal file
72
apps/timemachine/timemachine.yaml
Normal file
|
|
@ -0,0 +1,72 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: timemachine
|
||||||
|
labels:
|
||||||
|
app: timemachine
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: timemachine
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: timemachine
|
||||||
|
spec:
|
||||||
|
hostNetwork: true
|
||||||
|
hostname: timemachine
|
||||||
|
volumes:
|
||||||
|
- name: timemachine
|
||||||
|
hostPath:
|
||||||
|
path: /home/backup/timemachine
|
||||||
|
type: DirectoryOrCreate
|
||||||
|
containers:
|
||||||
|
- name: timemachine
|
||||||
|
image: mbentley/timemachine:smb
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
envFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: timemachine
|
||||||
|
env:
|
||||||
|
- name: CUSTOM_SMB_CONF
|
||||||
|
value: "false"
|
||||||
|
- name: CUSTOM_USER
|
||||||
|
value: "false"
|
||||||
|
- name: DEBUG_LEVEL
|
||||||
|
value: "1"
|
||||||
|
- name: MIMIC_MODEL
|
||||||
|
value: "TimeCapsule8,119"
|
||||||
|
- name: EXTERNAL_CONF
|
||||||
|
value: ""
|
||||||
|
- name: HIDE_SHARES
|
||||||
|
value: "no"
|
||||||
|
- name: TM_USERNAME
|
||||||
|
value: "timemachine"
|
||||||
|
- name: TM_GROUPNAME
|
||||||
|
value: "timemachine"
|
||||||
|
- name: TM_UID
|
||||||
|
value: "1000"
|
||||||
|
- name: TM_GID
|
||||||
|
value: "1000"
|
||||||
|
- name: SET_PERMISSIONS
|
||||||
|
value: "false"
|
||||||
|
- name: SHARE_NAME
|
||||||
|
value: "TimeMachine"
|
||||||
|
- name: SMB_INHERIT_PERMISSIONS
|
||||||
|
value: "no"
|
||||||
|
- name: SMB_NFS_ACES
|
||||||
|
value: "yes"
|
||||||
|
- name: SMB_METADATA
|
||||||
|
value: "stream"
|
||||||
|
- name: SMB_PORT
|
||||||
|
value: "445"
|
||||||
|
- name: SMB_VFS_OBJECTS
|
||||||
|
value: "acl_xattr fruit streams_xattr"
|
||||||
|
- name: VOLUME_SIZE_LIMIT
|
||||||
|
value: "0"
|
||||||
|
- name: WORKGROUP
|
||||||
|
value: "WORKGROUP"
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /opt/timemachine
|
||||||
|
name: timemachine
|
||||||
21
main/apps/timemachine.yaml
Normal file
21
main/apps/timemachine.yaml
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: timemachine
|
||||||
|
namespace: argocd
|
||||||
|
finalizers:
|
||||||
|
- resources-finalizer.argocd.argoproj.io
|
||||||
|
spec:
|
||||||
|
destination:
|
||||||
|
namespace: timemachine
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
project: default
|
||||||
|
source:
|
||||||
|
path: apps/timemachine
|
||||||
|
repoURL: git@github.com:gorilych/gf-k8s
|
||||||
|
syncPolicy:
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
Loading…
Reference in a new issue