Skip to content

Instantly share code, notes, and snippets.

@taking
Last active February 23, 2024 02:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taking/810f322b12b879e308f2ba3d2b171fd1 to your computer and use it in GitHub Desktop.
Save taking/810f322b12b879e308f2ba3d2b171fd1 to your computer and use it in GitHub Desktop.

Appscode Stash Installation with Helm

  • Appscode Stash on Kubernetes

Prerequisites

  • Kubernetes 1.20+
  • Helm 3.2.0+
  • Storage Class

Reference

helm update

helm repo add appscode https://charts.appscode.com/stable/
helm repo update appscode

stash-license

cat <<EOF > stash-license
-----BEGIN CERTIFICATE-----
{your License}
-----END CERTIFICATE-----
EOF

install

helm upgrade stash appscode/stash \
    --install \
    --create-namespace \
    --namespace backup-system \
    --version 2023.5.31 \
    --set features.community=true \
    --set-file global.license=stash-license

image

image

Create Storage Secret (MINIO: Object Storage)

ResticPassword="admin"
AccessKey="MINIO_ACCESS_KEY_ID"
SecretKey="MINIO_SECRET_ACCESS_KEY"

kubectl create secret generic -n backup-system minio-secret \
    --from-literal=RESTIC_PASSWORD=${ResticPassword} \
    --from-literal=AWS_ACCESS_KEY_ID=${AccessKey} \
    --from-literal=AWS_SECRET_ACCESS_KEY=${SecretKey}

Create Create Repository (MINIO: Object Storage)

cat << EOF | kubectl apply -f -
apiVersion: stash.appscode.com/v1alpha1
kind: Repository
metadata:
  name: minio-repo
  namespace: backup-system
spec:
  backend:
    s3:
      endpoint: http://192.168.0.101:9000
      bucket: stash
      region: us-east-1
    storageSecretName: minio-secret
EOF

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment