Create a bucketΒΆ
This guide will show you how to create a Google Cloud Storage bucket.
Add the bucket to the NAIS application manifestΒΆ
You create the bucket through the NAIS application manifest.
Use a globally unique name
Bucket names must be globally unique across the entire Google infrastructure.
apiVersion: nais.io/v1alpha1
kind: Application
metadata:
name: <MY-APP>
...
spec:
...
gcp:
buckets:
- name: <MY-BUCKET>
retentionPeriodDays: 30
lifecycleCondition:
age: 7
createdBefore: 2020-01-01
numNewerVersions: 2
withState: ANY
retentionPeriodDays
and lifecycleCondition
are for necessary for backup.
Deploy your manifestΒΆ
Deploy your manifest either using NAIS deploy action, or manually: