Added more desc

This commit is contained in:
斟酌 鵬兄 2023-09-11 00:21:39 +08:00
parent 390ff81c8e
commit 9446f94967
2 changed files with 43 additions and 0 deletions

2
README.md Normal file
View File

@ -0,0 +1,2 @@
## Usage
Read the comments inside each script. Each file only contains ~100 lines of codes. Should be fairly easy to use and understand.

View File

@ -10,6 +10,47 @@
# Create a secret config for arch_* in secret-name under the
# specificed namespace
#
# Sample CronJob spec
# apiVersion: batch/v1
# kind: CronJob
# metadata:
# name: s3-upload
# spec:
# schedule: "0 0 * * *"
# jobTemplate:
# spec:
# template:
# spec:
# restartPolicy: OnFailure
# containers:
# - name: backup
# image: [IMAGE_WITH_OPENSSL_AND_BASH]
# env:
# - name: ARCH_S3_BUCKET_URL
# valueFrom:
# secretKeyRef:
# name: s3-arch-conf
# key: BUCKET_URL
# - name: ARCH_S3_AUTH
# valueFrom:
# secretKeyRef:
# name: s3-arch-conf
# key: AUTH
# command:
# - sh
# - -c
# - |
# cd /tmp;
# _DATE=$( date -u +"%Y%m%dT%H%M%SZ" );
# bash /s3/arch_upload_aws4.sh blog $_DATE.tar.gz;
# rm -r dump/ $_DATE.tar.gz $_DATE.tar.gz.enc;
# volumeMounts:
# - mountPath: "/s3"
# name: s3-arch-utils
# volumes:
# - name: s3-arch-utils
# secret:
# secretName: [secret-name]
# #
function _print_files {