Backup and restore options
Common configuration file section: .spec.backup
Use
storage_provider.external_options.external_credentials_secret_name
instead ofstorage_provider.external_options.credentials_file_path
andstorage_provider.external_options.credentials_file_profile
, with the name of the secret that contains external storage provider credentials.Replace Back up using an external storage provider steps 5-7 with the following:
Create the secret object with credentials in the
k0rdent
namespace where theMkeChildConfig
object will be applied:kubectl -n k0rdent create secret generic aws-credentials --from-literal=aws_access_key_id=<AWS_ACCESS_KEY_ID> --from-literal=aws_secret_access_key=<AWS_SECRET_ACCESS_KEY>
Set the
storage_provider
section of theMkeChildConfig
configuration file, adding the name of the secret with IAM credentials:spec: backup: storage_provider: type: External external_options: provider: aws bucket: <BUCKET_NAME> region: <BUCKET_REGION> external_credentials_secret_name: aws-credentials
Apply the configuration:
kubectl apply -f mkechildconfig.yaml
Refer to Backup and restore for more details.
Last updated on