@@ -24,16 +24,32 @@ spec:
2424 fsGroupChangePolicy : OnRootMismatch
2525 containers :
2626 - name : kopia
27- image : ghcr.io/kopia/kopia:0.18.2
28- args :
29- - server
30- - start
31- - --address=0.0.0.0:80
32- - --server-control-password=$(KOPIA_PASSWORD)
33- - --server-username=admin
34- - --server-password=$(KOPIA_PASSWORD)
35- - --insecure
36- - --without-password
27+ image : ghcr.io/kopia/kopia:0.22
28+ command :
29+ - /bin/sh
30+ - -c
31+ - |
32+ # Connect to the S3 repository (karakeep/data-pvc as example)
33+ kopia repository connect s3 \
34+ --bucket=volsync-kopia \
35+ --prefix=karakeep/data-pvc \
36+ --endpoint=${AWS_S3_ENDPOINT} \
37+ --access-key=${AWS_ACCESS_KEY_ID} \
38+ --secret-access-key=${AWS_SECRET_ACCESS_KEY} \
39+ --password=${KOPIA_PASSWORD} \
40+ --disable-tls \
41+ --config-file=/app/config/repository.config \
42+ --cache-directory=/app/cache
43+ # Start the server
44+ exec kopia server start \
45+ --address=0.0.0.0:80 \
46+ --server-control-password=${KOPIA_PASSWORD} \
47+ --server-username=admin \
48+ --server-password=${KOPIA_PASSWORD} \
49+ --insecure \
50+ --without-password \
51+ --config-file=/app/config/repository.config \
52+ --cache-directory=/app/cache
3753 env :
3854 - name : KOPIA_PASSWORD
3955 valueFrom :
5066 secretKeyRef :
5167 name : kopia-ui-secret
5268 key : AWS_SECRET_ACCESS_KEY
69+ - name : AWS_S3_ENDPOINT
70+ value : " 192.168.10.133:30292"
5371 - name : TZ
5472 value : " America/New_York"
5573 ports :
0 commit comments