Skip to content

Commit 6838367

Browse files
authored
fix spelling and validator (#18376)
* fix spelling * fix validator
1 parent 99a207c commit 6838367

2 files changed

Lines changed: 19 additions & 21 deletions

File tree

tutorials/deploy-nodejs-application-kyma/deploy-nodejs-application-kyma.md

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -51,22 +51,21 @@ In order to run your code on the Kyma Runtime (or on any Kubernetes-based platfo
5151

5252
The command-line tool `pack` supports providing a buildpack and your local source code and creating an OCI image from it. We are working on a process to provide recommended and supported buildpacks. In the meantime, you can use the community-supported [Paketo Buildpacks](https://paketo.io/).
5353

54-
Install command-line tool `pack`: [Install Pack](https://buildpacks.io/docs/tools/pack/)
54+
**1.** Install command-line tool `pack`: [Install Pack](https://buildpacks.io/docs/tools/pack/)
5555

5656
For example (macOS):
5757

58-
```shell
58+
```Shell / Bash
5959
brew install buildpacks/tap/pack
6060
```
6161

62-
6362
When we speak about repository name, we mean the combination of account and repo name that is usual with Docker Hub: `<docker-hub-account>/<repo-name>`. An example would be `tiaxu/multitenant-kyma-backend`.
6463

6564
As you can only create one private repository in a free Docker hub account, Docker images stored in Docker hub will have different tag names so that they can be stored under one repository. Thus, addressing an image will include the tag name:`<docker-hub-account>/<repo-name>:<tag-name>`. An example would be `tiaxu/multitenant-kyma-backend:v1`.
6665

67-
Under the directory `kyma-multitenant-node`, build the image for the approuter app from source, for example:
66+
**2.** In the directory `kyma-multitenant-node`, build the image for the approuter app from source, for example:
6867

69-
```shell
68+
```Shell / Bash
7069
pack build multitenant-kyma-backend --builder paketobuildpacks/builder:full
7170
docker tag multitenant-kyma-backend <docker-hub-account>/multitenant-kyma-backend:v1
7271
```
@@ -78,15 +77,15 @@ docker tag multitenant-kyma-backend <docker-hub-account>/multitenant-kyma-backen
7877

7978
[ACCORDION-BEGIN [Step 4: ](Push OCI Image to Docker Hub)]
8079

81-
Log in to Docker using this command:
80+
**1.** Log in to Docker using this command:
8281

83-
```shell
82+
```Shell / Bash
8483
docker login -u <docker-id> -p <password>
8584
```
8685

87-
Push the local image into the Docker Hub:
86+
**2.** Push the local image into the Docker Hub:
8887

89-
```shell
88+
```Shell / Bash
9089
docker push <docker-hub-account>/multitenant-kyma-backend:v1
9190
```
9291

@@ -100,11 +99,11 @@ docker push <docker-hub-account>/multitenant-kyma-backend:v1
10099

101100
Then you are ready to deploy it into the Kubernetes cluster with Kyma runtime.
102101

103-
Select the `Link to dashboard` to open the Kyma dashboard.
102+
**1.** Select the `Link to dashboard` to open the Kyma dashboard.
104103

105104
![image-20220112154735200](image-20220112154735200.png)
106105

107-
Create a new namespace through the Kyma dashboard or `kubectl` CLI, for example, called `multitenancy-ns`:
106+
**2.** Create a new namespace through the Kyma dashboard or `kubectl` CLI, for example, called `multitenancy-ns`:
108107

109108
![image-20220214150615225](image-20220214150615225.png)
110109

@@ -116,13 +115,12 @@ Create a new namespace through the Kyma dashboard or `kubectl` CLI, for example,
116115

117116
[ACCORDION-BEGIN [Step 6: ](Deploy Secret for Docker Hub)]
118117

119-
Since the OCI image is stored in your Docker hub, you need to provide the access information to your Kyma cluster that you can pull the images from those repositories:
118+
Since the OCI image is stored in your Docker hub, you need to provide the access information to your Kyma cluster that you can pull the images from those repositories, replace the placeholder values according to your account:
120119

121-
```shell
120+
```Shell / Bash
122121
kubectl -n multitenancy-ns create secret docker-registry registry-secret --docker-server=https://index.docker.io/v1/ --docker-username=<docker-id> --docker-password=<password> --docker-email=<email>
123122
```
124123

125-
> Replace the placeholder values according to your account.
126124

127125
Therefore, all deployment files contain an `imagePullSecret` entry, which should be set to `registry-secret`.
128126

@@ -140,7 +138,7 @@ imagePullSecrets:
140138
141139
Based on the previous preparation steps, you can define the description file for deployment.
142140
143-
Under the root directory `multitenancy-kyma-tutorial`, create a new YAML file called `k8s-deployment-backend.yaml` with the following content:
141+
In the root directory `multitenancy-kyma-tutorial`, create a new YAML file called `k8s-deployment-backend.yaml` with the following content:
144142

145143
```yaml
146144
@@ -314,7 +312,7 @@ spec:
314312

315313
Deploy the Node.js application by executing this command under the root directory `multitenancy-kyma-tutorial`:
316314

317-
```shell
315+
```Shell / Bash
318316
kubectl -n multitenancy-ns apply -f k8s-deployment-backend.yaml
319317
```
320318

@@ -327,16 +325,16 @@ kubectl -n multitenancy-ns apply -f k8s-deployment-backend.yaml
327325
[ACCORDION-BEGIN [Step 9: ](Access Application in Browser)]
328326

329327

330-
Find the URL address of your application in the Kyma dashboard:
328+
**1.** Find the URL address of your application in the Kyma dashboard:
331329

332330
![image-20220214153901104](1645680425240.jpg)
333331

334-
Access it in the browser, then the application will return the message that you defined before.
332+
**2.** Access it in the browser, then the application will return the message that you defined before.
335333

336334

337335

338336

339-
[DONE]
337+
[VALIDATE_1]
340338
[ACCORDION-END]
341339

342340
[ACCORDION-BEGIN [Step 10: ](Project Repository)]

tutorials/implement-subscription-callback-multitenant/implement-subscription-callback-multitenant.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ primary_tag: software-product>sap-btp\, kyma-runtime
1313
## Details
1414
### You will learn
1515
- How to implement the Subscribe/Unsubscribe callbacks for the SAP SaaS Provisioning Service
16-
- How to automatically create APIRule for tenant-specific URL in the Kyma runtime
16+
- How to automatically create `APIRule` for tenant-specific URL in the Kyma runtime
1717

1818

1919
---
@@ -81,7 +81,7 @@ Payload of subscription PUT and DELETE methods:
8181

8282
[ACCORDION-BEGIN [Step 2: ](Implement Subscription Callbacks)]
8383

84-
A tenant-specific URL should be provided to customers in the onboarding process, at the same time, the URL should be exposed to the Internet as well. Otherwise, customers still cannot access the tenant. URL is exposed in the Kyma runtime through `APIRule`, which needs to be created dynamically through the onboarding/offboarding process using [Kubernetes client for NodeJs](https://github.com/kubernetes-client/javascript).
84+
A tenant-specific URL should be provided to customers in the onboarding process, at the same time, the URL should be exposed to the Internet as well. Otherwise, customers still cannot access the tenant. URL is exposed in the Kyma runtime through `APIRule`, which needs to be created dynamically through the onboarding/offboarding process using [Kubernetes client for NodeJS](https://github.com/kubernetes-client/javascript).
8585

8686
In the `kyma-multitenant-node/routes/index.js` file, implement the `subscription` and `unsubscription` callbacks. Replace the placeholder with your cluster domain.
8787

0 commit comments

Comments
 (0)