Stateful Application CRD Reference
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
| Parameter | Description | Value | Required? |
|---|---|---|---|
| region | Which region your s3 bucket is located in | Default: None | Yes |
| accessKeyID | Your object store's accessKeyID | Default: None | Yes |
| secretAccessKey | Your object store's secretAccessKey | Default: None | Yes |
| endpoint | The URL or IP address of your bucket | Default: None | Yes |
| disableSSL | Whether or not to disable SSL | Default: false | No |
Azure Blob Storage
apiVersion: stork.libopenstorage.org/v1alpha1
kind: BackupLocation
metadata:
name: azure
namespace: mysql
annotations:
stork.libopenstorage.org/skipresource: "true"
location:
type: azure
path: "bucket-name"
azureConfig:
storageAccountName: myaccount
storageAccountKey: XXXX
azureConfig Parameters
| Parameter | Description | Value | Required? |
|---|---|---|---|
| storageAccountName | Your object store's storage account name | Default: None | Yes |
| storageAccountKey | Your object store's storage account key | Default: None | Yes |
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
| Parameter | Description | Value | Required? |
|---|---|---|---|
| projectID | Your Google Cloud Platform (GCP) project ID | Default: None | Yes |
| accountKey | Your GCP JSON service account key | Default: None | Yes |