You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 22, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: workshop/Lab5/cos-with-s3fs/CLUSTER.md
+18-18Lines changed: 18 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
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:
4
4
5
5
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,
7
7
8
8
## Create a New Namespace in your Cluster
9
9
@@ -15,7 +15,7 @@ You now have an Object Storage instance with a bucket, and have found the corres
15
15
16
16
**Note:** if you use a single-sign-on provider, use the `-sso` flag.
17
17
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`,
19
19
20
20
```console
21
21
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
33
33
Targeted account IBM Client Developer Advocacy (e65910fa61) <-> 1234567
34
34
```
35
35
36
-
3. Retrieve your cluster information.
36
+
1. Retrieve your cluster information.
37
37
38
38
```console
39
39
ibmcloud ks clusters
@@ -48,19 +48,19 @@ You now have an Object Storage instance with a bucket, and have found the corres
48
48
<yourcluster> br78vuhd069a00er8s9g normal 1 day ago 1 Dallas 1.16.10_1533 default classic
49
49
```
50
50
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`,
5. **In your browser:** get the login command for your cluster:
58
+
1. **In your browser:** get the login command for your cluster:
59
59
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),
61
61
Under `Clusters` find and select your cluster, and load the cluster overview page. There are two ways to retrieve the login command with token:
62
62
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`.
Copy file name to clipboardExpand all lines: workshop/Lab5/cos-with-s3fs/COS-PLUGIN.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -174,7 +174,7 @@ You are going to install the `IBM Cloud Object Storage Plugin` in your cluster,
174
174
Events: <none>
175
175
```
176
176
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).
178
178
179
179
1. Verify that plugin pods are in "Running" state and indicate `READY` state of `1/1`:
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**,
29
29
30
30
```console
31
31
ibmcloud login -u $IBM_ID
32
32
```
33
33
34
34
**Note:** if you use a single-sign-on provider, use the `-sso` flag.
35
35
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',
37
37
38
38
```console
39
39
Select an account:
@@ -43,7 +43,7 @@ Steps:
43
43
Targeted account B Newell's Account (31296e3a285f)
44
44
```
45
45
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,
47
47
48
48
```console
49
49
ibmcloud resource groups
@@ -87,7 +87,7 @@ Steps:
87
87
Resource Group ID: 93f7a4cd3c824c0cbe90d8f21b46f758
88
88
```
89
89
90
-
1. Set the environment variable $RESOURCEGROUP,
90
+
5. Set the environment variable $RESOURCEGROUP,
91
91
92
92
```console
93
93
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
176
176
```
177
177
178
178
Review the CRN property.
179
-
179
+
180
180
```console
181
181
$ ibmcloud cos config list
182
182
Key Value
@@ -200,10 +200,10 @@ Data in `IBM Cloud Object Storage` is stored and organized in so-called `buckets
200
200
Check the config again, to make sure the CRN is set now,
201
201
202
202
```console
203
-
$ ibmcloud cos config list
203
+
ibmcloud cos config list
204
204
```
205
205
206
-
1. Create a new bucket.
206
+
2. Create a new bucket.
207
207
208
208
```console
209
209
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
220
220
Class: Standard
221
221
```
222
222
223
-
1. Verify the new bucket was created successfully.
223
+
3. Verify the new bucket was created successfully.
224
224
225
225
```console
226
226
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
269
269
ServiceEndpointURL
270
270
```
271
271
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.
273
273
274
274
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.
275
275
@@ -279,16 +279,16 @@ The `IBM Cloud Object Storage plugin` uses the `private endpoint` of the Object
279
279
echo $COS_PRIVATE_ENDPOINT
280
280
```
281
281
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).
283
283
284
284
1. Expand the Storage section.
285
285
1. Locate and select your IBM Cloud Object Storage service instance.
286
286
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.
288
288
289
-

289
+

290
290
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`.
Copy file name to clipboardExpand all lines: workshop/Lab5/cos-with-s3fs/IBMC-S3FS.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ S3, the Simple Storage Service, originated as Amazon. the central storage compon
19
19
20
20
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.
21
21
22
-
## Using s3fs
22
+
## Using s3fs
23
23
24
24
Create a credentials file `~/.cos_creds` with:
25
25
@@ -47,4 +47,4 @@ s3fs can yield good performance results when used with workloads reading or writ
47
47
48
48
## Next
49
49
50
-
[Lab 5: Add Object Storage to a Persistent Database](README.md)
50
+
[Lab 5: Add Object Storage to a Persistent Database](README.md)
Copy file name to clipboardExpand all lines: workshop/Lab5/cos-with-s3fs/MONGODB.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ In this section, you are going to deploy an instance of MongoDB to your OpenShif
7
7
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.
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,
304
304
305
305
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.
306
306
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.
Copy file name to clipboardExpand all lines: workshop/Lab5/cos-with-s3fs/PVC.md
+11-14Lines changed: 11 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,27 +11,25 @@ In this exercise, you are going to use an existing bucket when assigning persist
11
11
12
12
> **Note:** Replace the values for:
13
13
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
+
18
18
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.
19
19
20
20
> **Note:** The `secret-name` should be set to `cos-write-access` unless you changed the name of the secret we created earlier,
21
-
22
21
> **Note:**`ibm.io/endpoint` should be set to the output of command `echo "https://$COS_PRIVATE_ENDPOINT"`
23
-
24
22
> Create the file first and then edit the file with `vi` if changes are needed,
25
23
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,
27
25
28
26
```console
29
27
echo "https://$COS_PRIVATE_ENDPOINT"
30
28
echo $COS_BUCKET_NAME
31
29
oc project
32
30
```
33
31
34
-
1. Create the file,
32
+
3. Create the file,
35
33
36
34
```console
37
35
echo 'kind: PersistentVolumeClaim
@@ -58,14 +56,14 @@ spec:
58
56
59
57
1. In `Theia` the integrated browser IDE, in the directory `/project/cos-with-s3fs`, open the file `my-iks-pvc.yaml`,

62
60
63
61
and set the right values if changes are still needed,
64
62
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,
69
67
70
68
1. Create a `PersistentVolumeClaim`.
71
69
@@ -97,7 +95,6 @@ and set the right values if changes are still needed,
97
95
```
98
96
99
97
> 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
-
101
98
> Note: If the state of the PVC stays as `Pending`, the problem must be resolved before you move to the next step.
102
99
103
100
1. Verify a new `PersistentVolume` was also created successfully.
0 commit comments