Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit cb63b1f

Browse files
committed
fix markdownlint issues
1 parent 4d693ef commit cb63b1f

File tree

10 files changed

+50
-54
lines changed

10 files changed

+50
-54
lines changed

workshop/Lab5/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,4 @@ If you want to learn more about the IBM Cloud Object Storage plugin and s3fs-fus
6666

6767
## Next
6868

69-
[Lab 5: Add Object Storage to a Persistent Database](cos-with-s3fs/README.md)
69+
[Lab 5: Add Object Storage to a Persistent Database](cos-with-s3fs/README.md)

workshop/Lab5/cos-with-s3fs/CLUSTER.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
You now have an Object Storage instance with a bucket, and have found the corresponding private endpoint for your Object Storage. Next, we can configure a Kubernetes cluster:
44

55
1. Create a New Namespace in your Cluster,
6-
2. Create a Secret to Access the Object Storage,
6+
1. Create a Secret to Access the Object Storage,
77

88
## Create a New Namespace in your Cluster
99

@@ -15,7 +15,7 @@ You now have an Object Storage instance with a bucket, and have found the corres
1515

1616
**Note:** if you use a single-sign-on provider, use the `-sso` flag.
1717

18-
2. If you needed to switch accounts, you will have logged in again, and when prompted to `Select an account`, this time, choose the account with your cluster. In the example below, I have to choose account number **2** from the list, `2. IBM Client Developer Advocacy (e65910fa61) <-> 1234567`,
18+
1. If you needed to switch accounts, you will have logged in again, and when prompted to `Select an account`, this time, choose the account with your cluster. In the example below, I have to choose account number **2** from the list, `2. IBM Client Developer Advocacy (e65910fa61) <-> 1234567`,
1919

2020
```console
2121
ibmcloud login -u b.newell2@remkoh.dev
@@ -33,7 +33,7 @@ You now have an Object Storage instance with a bucket, and have found the corres
3333
Targeted account IBM Client Developer Advocacy (e65910fa61) <-> 1234567
3434
```
3535

36-
3. Retrieve your cluster information.
36+
1. Retrieve your cluster information.
3737

3838
```console
3939
ibmcloud ks clusters
@@ -48,19 +48,19 @@ You now have an Object Storage instance with a bucket, and have found the corres
4848
<yourcluster> br78vuhd069a00er8s9g normal 1 day ago 1 Dallas 1.16.10_1533 default classic
4949
```
5050

51-
4. Retrieve the name of your cluster, in this example, I set the name of the first cluster with index `0`,
51+
1. Retrieve the name of your cluster, in this example, I set the name of the first cluster with index `0`,
5252

5353
```console
5454
CLUSTER_NAME=$(ibmcloud ks clusters --output json | jq -r '.[0].name')
5555
echo $CLUSTER_NAME
5656
```
5757

58-
5. **In your browser:** get the login command for your cluster:
58+
1. **In your browser:** get the login command for your cluster:
5959

60-
1. Go to the IBM Cloud resources page at https://cloud.ibm.com/resources,
60+
1. Go to the IBM Cloud resources page at [https://cloud.ibm.com/resources](https://cloud.ibm.com/resources),
6161
Under `Clusters` find and select your cluster, and load the cluster overview page. There are two ways to retrieve the login command with token:
6262
1. Click the `Actions` drop down next to the `OpenShift web console` button, and select `Connect via CLI`, in the pop-up window, click the `oauth token request page` link, or
63-
1. Click `OpenShift web console` button, in the `OpenShift web console`, click your profile name, such as IAM#name@email.com, and then click `Copy Login Command`.
63+
2. Click `OpenShift web console` button, in the `OpenShift web console`, click your profile name, such as `IAM#name@email.com`, and then click `Copy Login Command`.
6464

6565
![Copy Login Command](../images/cluster/ocp_copylogincommand.png)
6666

@@ -84,13 +84,13 @@ You now have an Object Storage instance with a bucket, and have found the corres
8484
Welcome! See 'oc help' to get started.
8585
```
8686

87-
6. Create a new project `cos-with-s3fs`,
87+
1. Create a new project `cos-with-s3fs`,
8888

8989
```console
9090
oc new-project $NAMESPACE
9191
```
9292

93-
7. Make sure you're still logged in to your cluster and namespace,
93+
1. Make sure you're still logged in to your cluster and namespace,
9494

9595
```console
9696
oc project
@@ -100,19 +100,19 @@ You now have an Object Storage instance with a bucket, and have found the corres
100100

101101
## Create a Secret to Access the Object Storage
102102

103-
1. Create a `Kubernetes Secret` to store the COS service credentials named `cos-write-access`.
103+
Create a `Kubernetes Secret` to store the COS service credentials named `cos-write-access`.
104104

105-
```console
106-
oc create secret generic cos-write-access --type=ibm/ibmc-s3fs --from-literal=api-key=$COS_APIKEY --from-literal=service-instance-id=$COS_GUID
107-
```
105+
```console
106+
oc create secret generic cos-write-access --type=ibm/ibmc-s3fs --from-literal=api-key=$COS_APIKEY --from-literal=service-instance-id=$COS_GUID
107+
```
108108

109-
outputs,
109+
outputs,
110110

111-
```console
112-
$ oc create secret generic cos-write-access --type=ibm/ibmc-s3fs --from-literal=api-key=$COS_APIKEY --from-literal=service-instance-id=$COS_GUID
111+
```console
112+
$ oc create secret generic cos-write-access --type=ibm/ibmc-s3fs --from-literal=api-key=$COS_APIKEY --from-literal=service-instance-id=$COS_GUID
113113

114-
secret/cos-write-access created
115-
```
114+
secret/cos-write-access created
115+
```
116116

117117
## Next
118118

workshop/Lab5/cos-with-s3fs/COS-PLUGIN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ You are going to install the `IBM Cloud Object Storage Plugin` in your cluster,
174174
Events: <none>
175175
```
176176

177-
Additional information is available at https://cloud.ibm.com/docs/containers?topic=containers-object_storage#configure_cos.
177+
Additional information is available at [https://cloud.ibm.com/docs/containers?topic=containers-object_storage#configure_cos](https://cloud.ibm.com/docs/containers?topic=containers-object_storage#configure_cos).
178178

179179
1. Verify that plugin pods are in "Running" state and indicate `READY` state of `1/1`:
180180

workshop/Lab5/cos-with-s3fs/COS.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ Steps:
2525
COS_PRIVATE_ENDPOINT=s3.private.$REGION.cloud-object-storage.appdomain.cloud
2626
```
2727

28-
1. Create an instance of the `IBM Cloud Object Storage` service. For information, go to https://cloud.ibm.com/catalog/services/cloud-object-storage. You can only have 1 single free Lite instance per account. Login to your **personal account**,
28+
2. Create an instance of the `IBM Cloud Object Storage` service. For information about the IBM Cloud Object Storage service, go [here](https://cloud.ibm.com/catalog/servicecloud-object-storage). You can only have 1 single free Lite instance per account. Login to your **personal account**,
2929

3030
```console
3131
ibmcloud login -u $IBM_ID
3232
```
3333

3434
**Note:** if you use a single-sign-on provider, use the `-sso` flag.
3535

36-
1. You will be prompted to select an account. You must choose your own account under your own name. In the example below, account 1 is my own account under my own name, account 2 is where my Kubernetes cluster is located and that was provisioned to me, but on that second account I have no permission to create new resources. I have to select account **1** under my own name, e.g. `B Newell's Account',
36+
3. You will be prompted to select an account. You must choose your own account under your own name. In the example below, account 1 is my own account under my own name, account 2 is where my Kubernetes cluster is located and that was provisioned to me, but on that second account I have no permission to create new resources. I have to select account **1** under my own name, e.g. `B Newell's Account',
3737

3838
```console
3939
Select an account:
@@ -43,7 +43,7 @@ Steps:
4343
Targeted account B Newell's Account (31296e3a285f)
4444
```
4545

46-
1. You also need a resource group. Check if a resource-group exists,
46+
4. You also need a resource group. Check if a resource-group exists,
4747

4848
```console
4949
ibmcloud resource groups
@@ -87,7 +87,7 @@ Steps:
8787
Resource Group ID: 93f7a4cd3c824c0cbe90d8f21b46f758
8888
```
8989

90-
1. Set the environment variable $RESOURCEGROUP,
90+
5. Set the environment variable $RESOURCEGROUP,
9191

9292
```console
9393
RESOURCEGROUP=$(ibmcloud resource groups --output json | jq -r '.[0].name')
@@ -176,7 +176,7 @@ Data in `IBM Cloud Object Storage` is stored and organized in so-called `buckets
176176
```
177177

178178
Review the CRN property.
179-
179+
180180
```console
181181
$ ibmcloud cos config list
182182
Key Value
@@ -200,10 +200,10 @@ Data in `IBM Cloud Object Storage` is stored and organized in so-called `buckets
200200
Check the config again, to make sure the CRN is set now,
201201

202202
```console
203-
$ ibmcloud cos config list
203+
ibmcloud cos config list
204204
```
205205

206-
1. Create a new bucket.
206+
2. Create a new bucket.
207207

208208
```console
209209
ibmcloud cos bucket-create --bucket $COS_BUCKET_NAME --class Standard --ibm-service-instance-id $COS_CRN
@@ -220,7 +220,7 @@ Data in `IBM Cloud Object Storage` is stored and organized in so-called `buckets
220220
Class: Standard
221221
```
222222

223-
1. Verify the new bucket was created successfully.
223+
3. Verify the new bucket was created successfully.
224224

225225
```console
226226
ibmcloud cos list-buckets --ibm-service-instance-id $COS_CRN
@@ -269,7 +269,7 @@ The `IBM Cloud Object Storage plugin` uses the `private endpoint` of the Object
269269
ServiceEndpointURL
270270
```
271271

272-
With your bucket's location, e.g. `us-south`, you can find your bucket's private endpoint here https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-endpoints#advanced-endpoint-types, OR in the following steps you find it in your Cloud Object Storage's bucket configuration.
272+
With your bucket's location, e.g. `us-south`, you can find your bucket's private endpoint here [https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-endpoints#advanced-endpoint-types](https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-endpoints#advanced-endpoint-types), OR in the following steps you find it in your Cloud Object Storage's bucket configuration.
273273

274274
If your region is `us-south` the private endpoint is `s3.private.us-south.cloud-object-storage.appdomain.cloud`. Set an environment variable `$REGION` with the found region, and construct the service endpoint as follows.
275275

@@ -279,16 +279,16 @@ The `IBM Cloud Object Storage plugin` uses the `private endpoint` of the Object
279279
echo $COS_PRIVATE_ENDPOINT
280280
```
281281

282-
1. **In a browser**, you can verify the private endpoint for your region by navigating to https://cloud.ibm.com/resources.
282+
1. **In a browser**, you can verify the private endpoint for your region by navigating to [https://cloud.ibm.com/resources](https://cloud.ibm.com/resources).
283283

284284
1. Expand the Storage section.
285285
1. Locate and select your IBM Cloud Object Storage service instance.
286286
1. In the left menu, select the `buckets` section Select your new `bucket` in the `Buckets` tab.
287-
1. Select the `Configuration` tab under `Buckets` iin the left pane.
287+
1. Select the `Configuration` tab under `Buckets` iin the left pane.
288288

289-
![](../.gitbook/images/cos-04.png)
289+
![Buckets](../.gitbook/images/cos-04.png)
290290

291-
1. Take note of the `Private` endpoint. It should match your environment variable `$COS_PRIVATE_ENDPOINT`.
291+
1. Take note of the `Private` endpoint. It should match your environment variable `$COS_PRIVATE_ENDPOINT`.
292292

293293
## Next
294294

workshop/Lab5/cos-with-s3fs/IBMC-S3FS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ S3, the Simple Storage Service, originated as Amazon. the central storage compon
1919

2020
Instead of always providing all parameters via the API, it is more convenient to mount the bucket as a folder onto the existing file system. This can be done via s3fs or goofys.
2121

22-
## Using s3fs
22+
## Using s3fs
2323

2424
Create a credentials file `~/.cos_creds` with:
2525

@@ -47,4 +47,4 @@ s3fs can yield good performance results when used with workloads reading or writ
4747

4848
## Next
4949

50-
[Lab 5: Add Object Storage to a Persistent Database](README.md)
50+
[Lab 5: Add Object Storage to a Persistent Database](README.md)

workshop/Lab5/cos-with-s3fs/MONGODB.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ In this section, you are going to deploy an instance of MongoDB to your OpenShif
77
1. [Optional] If you want to configure the MongoDB via a `values.yaml` file, or want to review the default values of the Helm chart, in the `Cloud Shell`, you can download the default `values.yaml` file from the bitnami/mongodb Helm chart, which is used to configure and deploy the MongoDB Helm chart. In this lab we will overwrite the values from the commandline when we install the chart.
88

99
```console
10-
$ wget https://raw.githubusercontent.com/bitnami/charts/master/bitnami/mongodb/values.yaml
10+
wget https://raw.githubusercontent.com/bitnami/charts/master/bitnami/mongodb/values.yaml
1111
```
1212

1313
1. [Optional] To review the available configuration options, open the `values.yaml` file in a file editor and review the parameters that can be modified during mongdb deployment. In this exercise however, you'll overwrite the default values using Helm command parameters instead of a `values.yaml` file.
@@ -304,4 +304,4 @@ To verify MongoDB deployment,
304304

305305
You are awesome! You have now added IBM Cloud Object Storage persistent storage to your MongoDB database using dynamic provisioning the `IBM Cloud Object Storage plugin` based on `s3fs-fuse`. What remains is configuring your application to use the MongoDB service.
306306

307-
You can use the instructions in the [FUSE lab](../../fuse/README.md) to mount a local filesystem to the remote Object Storage and inspect the documents.
307+
You can use the instructions in the [FUSE lab](../../fuse/README.md) to mount a local filesystem to the remote Object Storage and inspect the documents.

workshop/Lab5/cos-with-s3fs/PVC.md

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,25 @@ In this exercise, you are going to use an existing bucket when assigning persist
1111

1212
> **Note:** Replace the values for:
1313
14-
- `ibm.io/bucket`,
15-
- `ibm.io/secret-name` and
16-
- `ibm.io/endpoint`.
17-
14+
* `ibm.io/bucket`,
15+
* `ibm.io/secret-name` and
16+
* `ibm.io/endpoint`.
17+
1818
If your values are not exactly matching with the bucket name you created, the secret name you created and the private endpoint of your bucket, the PVC will remain in state pending and fail to create.
1919

2020
> **Note:** The `secret-name` should be set to `cos-write-access` unless you changed the name of the secret we created earlier,
21-
2221
> **Note:** `ibm.io/endpoint` should be set to the output of command `echo "https://$COS_PRIVATE_ENDPOINT"`
23-
2422
> Create the file first and then edit the file with `vi` if changes are needed,
2523
26-
1. You need the bucket name and namespace to configure the PVC,
24+
2. You need the bucket name and namespace to configure the PVC,
2725

2826
```console
2927
echo "https://$COS_PRIVATE_ENDPOINT"
3028
echo $COS_BUCKET_NAME
3129
oc project
3230
```
3331

34-
1. Create the file,
32+
3. Create the file,
3533

3634
```console
3735
echo 'kind: PersistentVolumeClaim
@@ -58,14 +56,14 @@ spec:
5856

5957
1. In `Theia` the integrated browser IDE, in the directory `/project/cos-with-s3fs`, open the file `my-iks-pvc.yaml`,
6058

61-
![](../images/cos-with-s3fs/theia-open-my-pvc.png)
59+
![Theia IDE Open File](../images/cos-with-s3fs/theia-open-my-pvc.png)
6260

6361
and set the right values if changes are still needed,
6462

65-
* change the `namespace` value to the project name found with `oc project`,
66-
* the `ibm.io/bucket` should be set to the value defined in `echo $COS_BUCKET_NAME`,
67-
* `ibm.io/secret-name` should be set to `"cos-write-access"`,
68-
* validate the `ibm.io/endpoint` to be set to the private service endpoint for your Object Storage bucket for the correct region,
63+
* change the `namespace` value to the project name found with `oc project`,
64+
* the `ibm.io/bucket` should be set to the value defined in `echo $COS_BUCKET_NAME`,
65+
* `ibm.io/secret-name` should be set to `"cos-write-access"`,
66+
* validate the `ibm.io/endpoint` to be set to the private service endpoint for your Object Storage bucket for the correct region,
6967

7068
1. Create a `PersistentVolumeClaim`.
7169

@@ -97,7 +95,6 @@ and set the right values if changes are still needed,
9795
```
9896

9997
> Note: If the state of the PVC remains `Pending`, you can inspect the error for why the PVC remains pending by using the `describe` command: `oc describe pvc <pvc_name>`. For example, `oc describe pvc my-iks-pvc`.
100-
10198
> Note: If the state of the PVC stays as `Pending`, the problem must be resolved before you move to the next step.
10299

103100
1. Verify a new `PersistentVolume` was also created successfully.

workshop/Lab5/cos-with-s3fs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ Related labs using Object Storage are:
3333

3434
## Next
3535

36-
[Setup](../setup/README.md)
36+
[Setup](../setup/README.md)

workshop/Lab5/setup/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,4 +113,4 @@ should output the directory `/home/project/cos-with-s3fs`.
113113

114114
## Next
115115

116-
[Setup Object Storage](../cos-with-s3fs/COS.md)
116+
[Setup Object Storage](../cos-with-s3fs/COS.md)

workshop/Lab5/share-docs-with-cos/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ ibmcloud iam api-key-create $IAM_APIKEY_NAME --file $IAM_APIKEY_NAME.txt
5959
ibmcloud resource service-instance-create $COS_NAME cloud-object-storage $COS_PLAN global -g $RESOURCEGROUP
6060
```
6161

62-
6362
1. Get the GUID for the Cloud Object Storage service,
6463

6564
```console

0 commit comments

Comments
 (0)