Compare commits

..

2 Commits

Author SHA1 Message Date
8fecbe71f5 Start working on exercise 3. 2023-12-06 11:48:47 +13:00
b6cbaebf02 Continue working on exercise 2. 2023-12-06 10:52:25 +13:00
11 changed files with 133 additions and 6 deletions

View File

@ -110,6 +110,21 @@ From the **Resources** tab click **View logs**
</Zoom>
## 2.4 - Checking application resource usage
Another essential element of supporting applications on OpenShift is understanding what resources the application is consuming, for example cpu, memory, network bandwidth and storage io.
OpenShift includes built in support for reviewing application resource usage. Let's take a look at that now.
In the **Developer** perspective, open the **Observe** view.
You should see the **Dashboard** tab. Set the time range to the `Last 1 hour` then scroll through the dashboard.
How much cpu and memory is your ParksMap application currently using?
<Zoom>
|![app-logs](/ocp-app-delivery-workshop/static/images/app-resources.gif) |
|:-------------------------------------------------------------------:|
| *Checking the ParksMap application resource usage* |
</Zoom>

View File

@ -0,0 +1,38 @@
---
title: Scaling and autohealing applications
exercise: 3
date: '2023-12-06'
tags: ['openshift','containers','kubernetes','deployments','autoscaling']
draft: false
authors: ['default']
summary: "Let's scale our application up 📈"
---
We have our application deployed, let's scale it up.
While **Services** provide routing and load balancing for **Pods**, the higher level **Deployment** resource specifies how many replicas of our application will be created and is a simplistic way to configure scaling for the application.
> Note: To learn more about **Deployments** refer to this [documentation](https://docs.openshift.com/container-platform/4.14/applications/deployments/what-deployments-are.html).
## 3.1 - Reviewing the parksmap deployment
Let's start by confirming how many `replicas` we currently specify for our ParksMap application. We'll also use this exercise step to take a look at how all resources within OpenShift can be viewed and managed as [YAML](https://www.redhat.com/en/topics/automation/what-is-yaml) formatted text files which is extremely useful for more advanced automation and GitOps concepts.
Start in the **Topology** view of the **Developer** perspective.
Click on your "Parksmap" application icon and click on the **D parksmap** deployment name at the top of the right hand panel.
From the **Deployment details** view we can click on the **YAML** tab and scroll down to find the following:
```yaml
spec:
replicas: 1
```
<Zoom>
|![parksmap-replicas](/ocp-app-delivery-workshop/static/images/app-replicas.gif) |
|:-------------------------------------------------------------------:|
| *ParksMap application deployment replicas* |
</Zoom>

View File

@ -24,11 +24,21 @@
<guid>https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise2</guid>
<title>Deploying your first application</title>
<link>https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise2</link>
<description>Time to deploy our first app!</description>
<description>Time to deploy your first app!</description>
<pubDate>Tue, 05 Dec 2023 00:00:00 GMT</pubDate>
<author>jablair@redhat.com (Red Hat)</author>
<category>openshift</category><category>containers</category><category>kubernetes</category><category>deployments</category><category>images</category>
</item>
<item>
<guid>https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise3</guid>
<title>Scaling and autohealing applications</title>
<link>https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise3</link>
<description>Let&#39;s scale our application up 📈</description>
<pubDate>Wed, 06 Dec 2023 00:00:00 GMT</pubDate>
<author>jablair@redhat.com (Red Hat)</author>
<category>openshift</category><category>containers</category><category>kubernetes</category><category>deployments</category><category>autoscaling</category>
</item>
</channel>
</rss>

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 MiB

View File

@ -0,0 +1,24 @@
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Red Hat OpenShift Application Delivery Workshop</title>
<link>https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop</link>
<description>Red Hat OpenShift Application Delivery Workshop</description>
<language>en-us</language>
<managingEditor>jablair@redhat.com (Red Hat)</managingEditor>
<webMaster>jablair@redhat.com (Red Hat)</webMaster>
<lastBuildDate>Wed, 06 Dec 2023 00:00:00 GMT</lastBuildDate>
<atom:link href="https://jmhbnz.github.io/ocp-app-delivery-workshop/tags/autoscaling/feed.xml" rel="self" type="application/rss+xml"/>
<item>
<guid>https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise3</guid>
<title>Scaling and autohealing applications</title>
<link>https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise3</link>
<description>Let&#39;s scale our application up 📈</description>
<pubDate>Wed, 06 Dec 2023 00:00:00 GMT</pubDate>
<author>jablair@redhat.com (Red Hat)</author>
<category>openshift</category><category>containers</category><category>kubernetes</category><category>deployments</category><category>autoscaling</category>
</item>
</channel>
</rss>

View File

@ -24,11 +24,21 @@
<guid>https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise2</guid>
<title>Deploying your first application</title>
<link>https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise2</link>
<description>Time to deploy our first app!</description>
<description>Time to deploy your first app!</description>
<pubDate>Tue, 05 Dec 2023 00:00:00 GMT</pubDate>
<author>jablair@redhat.com (Red Hat)</author>
<category>openshift</category><category>containers</category><category>kubernetes</category><category>deployments</category><category>images</category>
</item>
<item>
<guid>https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise3</guid>
<title>Scaling and autohealing applications</title>
<link>https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise3</link>
<description>Let&#39;s scale our application up 📈</description>
<pubDate>Wed, 06 Dec 2023 00:00:00 GMT</pubDate>
<author>jablair@redhat.com (Red Hat)</author>
<category>openshift</category><category>containers</category><category>kubernetes</category><category>deployments</category><category>autoscaling</category>
</item>
</channel>
</rss>

View File

@ -14,11 +14,21 @@
<guid>https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise2</guid>
<title>Deploying your first application</title>
<link>https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise2</link>
<description>Time to deploy our first app!</description>
<description>Time to deploy your first app!</description>
<pubDate>Tue, 05 Dec 2023 00:00:00 GMT</pubDate>
<author>jablair@redhat.com (Red Hat)</author>
<category>openshift</category><category>containers</category><category>kubernetes</category><category>deployments</category><category>images</category>
</item>
<item>
<guid>https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise3</guid>
<title>Scaling and autohealing applications</title>
<link>https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise3</link>
<description>Let&#39;s scale our application up 📈</description>
<pubDate>Wed, 06 Dec 2023 00:00:00 GMT</pubDate>
<author>jablair@redhat.com (Red Hat)</author>
<category>openshift</category><category>containers</category><category>kubernetes</category><category>deployments</category><category>autoscaling</category>
</item>
</channel>
</rss>

View File

@ -14,7 +14,7 @@
<guid>https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise2</guid>
<title>Deploying your first application</title>
<link>https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise2</link>
<description>Time to deploy our first app!</description>
<description>Time to deploy your first app!</description>
<pubDate>Tue, 05 Dec 2023 00:00:00 GMT</pubDate>
<author>jablair@redhat.com (Red Hat)</author>
<category>openshift</category><category>containers</category><category>kubernetes</category><category>deployments</category><category>images</category>

View File

@ -24,11 +24,21 @@
<guid>https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise2</guid>
<title>Deploying your first application</title>
<link>https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise2</link>
<description>Time to deploy our first app!</description>
<description>Time to deploy your first app!</description>
<pubDate>Tue, 05 Dec 2023 00:00:00 GMT</pubDate>
<author>jablair@redhat.com (Red Hat)</author>
<category>openshift</category><category>containers</category><category>kubernetes</category><category>deployments</category><category>images</category>
</item>
<item>
<guid>https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise3</guid>
<title>Scaling and autohealing applications</title>
<link>https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise3</link>
<description>Let&#39;s scale our application up 📈</description>
<pubDate>Wed, 06 Dec 2023 00:00:00 GMT</pubDate>
<author>jablair@redhat.com (Red Hat)</author>
<category>openshift</category><category>containers</category><category>kubernetes</category><category>deployments</category><category>autoscaling</category>
</item>
</channel>
</rss>

View File

@ -24,11 +24,21 @@
<guid>https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise2</guid>
<title>Deploying your first application</title>
<link>https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise2</link>
<description>Time to deploy our first app!</description>
<description>Time to deploy your first app!</description>
<pubDate>Tue, 05 Dec 2023 00:00:00 GMT</pubDate>
<author>jablair@redhat.com (Red Hat)</author>
<category>openshift</category><category>containers</category><category>kubernetes</category><category>deployments</category><category>images</category>
</item>
<item>
<guid>https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise3</guid>
<title>Scaling and autohealing applications</title>
<link>https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise3</link>
<description>Let&#39;s scale our application up 📈</description>
<pubDate>Wed, 06 Dec 2023 00:00:00 GMT</pubDate>
<author>jablair@redhat.com (Red Hat)</author>
<category>openshift</category><category>containers</category><category>kubernetes</category><category>deployments</category><category>autoscaling</category>
</item>
</channel>
</rss>