Skip to content

Commit

Permalink
add example with lobj and lobjkey
Browse files Browse the repository at this point in the history
  • Loading branch information
AshleyDumaine committed Dec 18, 2024
1 parent a24849c commit 2a188c9
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions docs/src/topics/cluster-object-store.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,61 @@ data:
secret_key: ${SECRET_KEY}
```
Alternatively, the `LinodeObjectStorageBucket` and `LinodeObjectStorageKey` resources can be used:

```yaml
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2
kind: LinodeCluster
metadata:
name: ${CLUSTER_NAME}
spec:
objectStore:
credentialsRef:
name: ${CLUSTER_NAME}-object-store-obj-key
---
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2
kind: LinodeObjectStorageBucket
metadata:
labels:
app.kubernetes.io/name: linodeobjectstoragebucket
app.kubernetes.io/instance: ${CLUSTER_NAME}-object-store
app.kubernetes.io/part-of: cluster-api-provider-linode
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/created-by: cluster-api-provider-linode
cluster.x-k8s.io/cluster-name: ${CLUSTER_NAME}
name: ${CLUSTER_NAME}-object-store
spec:
credentialsRef:
name: ${CLUSTER_NAME}-credentials
region: ${OBJ_BUCKET_REGION:=${LINODE_REGION}}
---
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2
kind: LinodeObjectStorageKey
metadata:
labels:
app.kubernetes.io/name: linodeobjectstoragekey
app.kubernetes.io/instance: ${CLUSTER_NAME}-object-store
app.kubernetes.io/part-of: cluster-api-provider-linode
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/created-by: cluster-api-provider-linode
cluster.x-k8s.io/cluster-name: ${CLUSTER_NAME}
name: ${CLUSTER_NAME}-object-store
spec:
credentialsRef:
name: ${CLUSTER_NAME}-credentials
bucketAccess:
- bucketName: ${CLUSTER_NAME}-object-store
permissions: read_write
region: ${OBJ_BUCKET_REGION:=${LINODE_REGION}}
generatedSecret:
type: Opaque
format:
bucket_name: '{{ .BucketName }}'
s3_endpoint: '{{ .S3Endpoint }}'
access_key: '{{ .AccessKey }}'
secret_key: '{{ .SecretKey }}'
```

## Capabilities

### Bootstrap Data Limits During Linode Provisioning
Expand Down

0 comments on commit 2a188c9

Please sign in to comment.