Skip to main content
Version: 3.1

Stateful application CRD reference in Rancher

BackupLocation

The BackupLocation CRD parameters differ based on the object store you use.

S3-compliant storage

apiVersion: stork.libopenstorage.org/v1alpha1
kind: BackupLocation
metadata:
name: mysql
namespace: mysql-app
annotations:
stork.libopenstorage.org/skipresource: "true"
location:
type: s3
path: "bucket-name"
s3Config:
region: us-east-1
accessKeyID: XXXX
secretAccessKey: XXXX
endpoint: "https://bucketEndpoint.com"
disableSSL: false

s3Config Parameters

ParameterDescriptionValueRequired?
regionWhich region your s3 bucket is located inDefault: NoneYes
accessKeyIDYour object store's accessKeyIDDefault: NoneYes
secretAccessKeyYour object store's secretAccessKeyDefault: NoneYes
endpointThe URL or IP address of your bucketDefault: NoneYes
disableSSLWhether or not to disable SSLDefault: falseNo

Google Cloud Storage

apiVersion: stork.libopenstorage.org/v1alpha1
kind: BackupLocation
metadata:
name: gcs
namespace: mysql
annotations:
stork.libopenstorage.org/skipresource: "true"
location:
type: google
path: "bucket-name"
googleConfig:
projectID: "portworx-eng"
accountKey: >-
{
"type": "service_account",
"project_id": "portworx-eng",
"private_key_id": "XXXX",
"private_key": "-----BEGIN PRIVATE KEY-----
...
-----END PRIVATE KEY-----\n",
"client_email": "username@company.com",
"client_id": "XXXX",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/user%40email.com"
}

googleConfig Parameters

ParameterDescriptionValueRequired?
projectIDYour Google Cloud Platform (GCP) project IDDefault: NoneYes
accountKeyYour GCP JSON service account keyDefault: NoneYes

ApplicationClone

apiVersion: stork.libopenstorage.org/v1alpha1
kind: ApplicationClone
metadata:
name: clone-mysql
namespace: kube-system
spec:
sourceNamespace: mysql-app
destinationNamespace: clone-mysql
selectors:
app: mysql-app-db

Spec Parameters

ParameterDescriptionValueRequired?
sourceNamespaceThe namespace you want to clone applications fromDefault: NoneYes
destinationNamespaceThe namespace you want to clone applications toDefault: NoneYes
selectorsDefine specific labels to determine which resources are clonedDefault: NoneNo
In this topic: