Skip to content

Commit

Permalink
lab 6
Browse files Browse the repository at this point in the history
  • Loading branch information
srodenhuis committed Apr 6, 2022
1 parent 68b6111 commit 89be487
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 3 deletions.
2 changes: 1 addition & 1 deletion labs/paas/otomi/4_netpols/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ redis-follower ClusterIP 10.0.135.61 <none> 6379/TCP 6m44s
redis-leader ClusterIP 10.0.82.226 <none> 6379/TCP 6m44s
```

3. Go to the console and click `Services` under your team
3. Go to the console, select your team in the top bar en and click `Services` under your team in the right menu.

4. We will now first add the created frontend service to Otomi. Click `Create Service`.

Expand Down
4 changes: 2 additions & 2 deletions labs/paas/otomi/5_activate_apps/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ In this lab we are going to activate Loki for logging. But first: Otomi by defau

7. Click on the play button. A new tab wil open and here you can execute queries to search for logs. Add the following query: `{namespace=team-<team-name>}`. Now you will see all the logs of containers running in the namespace of your team. Copy the path after .nip.io/ in your browser.

7. Go back to the console and in the Loki app, click on `Shortcuts`. Click `Edit` and the `Add item`. Fill in a title (like "team-name logs"), a description (like "The logs of teamname") and the paste the path. Now click Submit. The shortcut you now created can be used to go directly to Loki and see the result of your query.
7. Go back to the console and in the Loki app, click on `Shortcuts`. Click `Edit` and the `Add item`. Fill in a title (like "team-name logs"), a description (like "The logs of teamname") and paste the path. Now click Submit. The shortcut you now created can be used to go directly to Loki and see the result of your query.


Optional: Go to the [next lab](../6_knative/README.md)
Go to the [next lab](../6_knative/README.md)
30 changes: 30 additions & 0 deletions labs/paas/otomi/6_knative/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Lab 6

In this lab we are going to activate Knative and create a new Knative service using Otomi Console.

## Instructions

1. Go to the Apps section under `Platform` and Drag and Drop `Knative` from the `Disabled apps` to the `Enabled apps` and `Deploy changes`.

2. Select your team in the top bar, click `Services` under your team in the right menu and click on `Create Service`.

You might notice that in the `Service type` section there are now 2 extra options:

- Existing knative service: to map a pre-deployed knative service to Otomi
- New knative service: to create a new knative service using Otomi

3. Provide a name for your service

4. Select `New knative service` and use the following values:

- Run As User: 1001
- Repository: nginxinc/nginx-unprivileged
- Tag: stable
- Limits: CPU=200m, Memory=128Mi
- Requests: CPU=100m, Memory=64Mi
- Exposure: Public

5. Now click `submit` and `Deploy changes.

6. The new service and the Hostname are now shown in the list of services. Wait until the Drone pipeline has finished and click on the hostname.

0 comments on commit 89be487

Please sign in to comment.