Add types to code blocks

This commit is contained in:
2025-12-12 14:03:44 +00:00
parent 345b809072
commit 4a7a4160fe

View File

@@ -50,7 +50,7 @@ These steps ensure that a Ceph Pool is created with appropriate Replication.
* Check with: `ceph osd pool application get default.rgw.buckets.index` * Check with: `ceph osd pool application get default.rgw.buckets.index`
* Create a user for the RADOS Gateway: * Create a user for the RADOS Gateway:
``` ```bash
ceph auth get-or-create client.rgw.k8s.svc \ ceph auth get-or-create client.rgw.k8s.svc \
mon 'allow r' \ mon 'allow r' \
osd 'allow rwx pool=default.rgw.buckets.data, allow rwx pool=default.rgw.buckets.index, allow rwx pool=.rgw.root, allow rwx pool=default.rgw.meta, allow rwx pool=default.rgw.log, allow rwx pool=default.rgw.control' \ osd 'allow rwx pool=default.rgw.buckets.data, allow rwx pool=default.rgw.buckets.index, allow rwx pool=.rgw.root, allow rwx pool=default.rgw.meta, allow rwx pool=default.rgw.log, allow rwx pool=default.rgw.control' \
@@ -72,13 +72,13 @@ These steps ensure that a Ceph Pool is created with appropriate Replication.
* Create Secret manifests for deployment to K8s: * Create Secret manifests for deployment to K8s:
``` ```bash
kubectl create secret generic ceph-config \ kubectl create secret generic ceph-config \
--namespace=object-store \ --namespace=object-store \
--from-file=ceph.conf=./conf \ --from-file=ceph.conf=./conf \
--dry-run=client -o yaml > ceph-config-secret.yaml --dry-run=client -o yaml > ceph-config-secret.yaml
``` ```
``` ```bash
kubectl create secret generic ceph-keyring \ kubectl create secret generic ceph-keyring \
--namespace=object-store \ --namespace=object-store \
--from-file=keyring=./keyring \ --from-file=keyring=./keyring \
@@ -95,7 +95,7 @@ These steps ensure that a Ceph Pool is created with appropriate Replication.
#### Namespace #### Namespace
``` ```yaml
apiVersion: v1 apiVersion: v1
kind: Namespace kind: Namespace
metadata: metadata:
@@ -103,7 +103,7 @@ metadata:
``` ```
#### Service #### Service
``` ```yaml
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
@@ -126,7 +126,7 @@ spec:
``` ```
#### Deployment #### Deployment
``` ```yaml
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
@@ -263,7 +263,7 @@ spec:
Deploy this in the namespace of the appliation requiring the S3 API Access Deploy this in the namespace of the appliation requiring the S3 API Access
```sh ```bash
kubectl create secret generic s3-credentials \ kubectl create secret generic s3-credentials \
--namespace={application-namespace} \ --namespace={application-namespace} \
--from-literal=S3_ACCESS_KEY={access-key-from-user-creation} \ --from-literal=S3_ACCESS_KEY={access-key-from-user-creation} \