diff --git a/data/workshop/exercise2.mdx b/data/workshop/exercise2.mdx index 01bf7c7..cda94b1 100644 --- a/data/workshop/exercise2.mdx +++ b/data/workshop/exercise2.mdx @@ -128,5 +128,3 @@ How much cpu and memory is your ParksMap application currently using? | *Checking the ParksMap application resource usage* | - - diff --git a/data/workshop/exercise3.mdx b/data/workshop/exercise3.mdx new file mode 100644 index 0000000..5e035a4 --- /dev/null +++ b/data/workshop/exercise3.mdx @@ -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 +``` + + +|![parksmap-replicas](/ocp-app-delivery-workshop/static/images/app-replicas.gif) | +|:-------------------------------------------------------------------:| +| *ParksMap application deployment replicas* | + + diff --git a/public/feed.xml b/public/feed.xml index dd7d5db..706a7a2 100644 --- a/public/feed.xml +++ b/public/feed.xml @@ -24,11 +24,21 @@ https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise2 Deploying your first application https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise2 - Time to deploy our first app! + Time to deploy your first app! Tue, 05 Dec 2023 00:00:00 GMT jablair@redhat.com (Red Hat) openshiftcontainerskubernetesdeploymentsimages + + https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise3 + Scaling and autohealing applications + https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise3 + Let's scale our application up 📈 + Wed, 06 Dec 2023 00:00:00 GMT + jablair@redhat.com (Red Hat) + openshiftcontainerskubernetesdeploymentsautoscaling + + diff --git a/public/static/images/app-replicas.gif b/public/static/images/app-replicas.gif new file mode 100644 index 0000000..5206fbf Binary files /dev/null and b/public/static/images/app-replicas.gif differ diff --git a/public/tags/autoscaling/feed.xml b/public/tags/autoscaling/feed.xml new file mode 100644 index 0000000..50d295c --- /dev/null +++ b/public/tags/autoscaling/feed.xml @@ -0,0 +1,24 @@ + + + + Red Hat OpenShift Application Delivery Workshop + https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop + Red Hat OpenShift Application Delivery Workshop + en-us + jablair@redhat.com (Red Hat) + jablair@redhat.com (Red Hat) + Wed, 06 Dec 2023 00:00:00 GMT + + + + https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise3 + Scaling and autohealing applications + https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise3 + Let's scale our application up 📈 + Wed, 06 Dec 2023 00:00:00 GMT + jablair@redhat.com (Red Hat) + openshiftcontainerskubernetesdeploymentsautoscaling + + + + diff --git a/public/tags/containers/feed.xml b/public/tags/containers/feed.xml index e84d834..4448b62 100644 --- a/public/tags/containers/feed.xml +++ b/public/tags/containers/feed.xml @@ -24,11 +24,21 @@ https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise2 Deploying your first application https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise2 - Time to deploy our first app! + Time to deploy your first app! Tue, 05 Dec 2023 00:00:00 GMT jablair@redhat.com (Red Hat) openshiftcontainerskubernetesdeploymentsimages + + https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise3 + Scaling and autohealing applications + https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise3 + Let's scale our application up 📈 + Wed, 06 Dec 2023 00:00:00 GMT + jablair@redhat.com (Red Hat) + openshiftcontainerskubernetesdeploymentsautoscaling + + diff --git a/public/tags/deployments/feed.xml b/public/tags/deployments/feed.xml index 86f8883..05a459c 100644 --- a/public/tags/deployments/feed.xml +++ b/public/tags/deployments/feed.xml @@ -14,11 +14,21 @@ https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise2 Deploying your first application https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise2 - Time to deploy our first app! + Time to deploy your first app! Tue, 05 Dec 2023 00:00:00 GMT jablair@redhat.com (Red Hat) openshiftcontainerskubernetesdeploymentsimages + + https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise3 + Scaling and autohealing applications + https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise3 + Let's scale our application up 📈 + Wed, 06 Dec 2023 00:00:00 GMT + jablair@redhat.com (Red Hat) + openshiftcontainerskubernetesdeploymentsautoscaling + + diff --git a/public/tags/images/feed.xml b/public/tags/images/feed.xml index 389a20e..e552fcc 100644 --- a/public/tags/images/feed.xml +++ b/public/tags/images/feed.xml @@ -14,7 +14,7 @@ https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise2 Deploying your first application https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise2 - Time to deploy our first app! + Time to deploy your first app! Tue, 05 Dec 2023 00:00:00 GMT jablair@redhat.com (Red Hat) openshiftcontainerskubernetesdeploymentsimages diff --git a/public/tags/kubernetes/feed.xml b/public/tags/kubernetes/feed.xml index bbb97c5..6e9d54d 100644 --- a/public/tags/kubernetes/feed.xml +++ b/public/tags/kubernetes/feed.xml @@ -24,11 +24,21 @@ https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise2 Deploying your first application https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise2 - Time to deploy our first app! + Time to deploy your first app! Tue, 05 Dec 2023 00:00:00 GMT jablair@redhat.com (Red Hat) openshiftcontainerskubernetesdeploymentsimages + + https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise3 + Scaling and autohealing applications + https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise3 + Let's scale our application up 📈 + Wed, 06 Dec 2023 00:00:00 GMT + jablair@redhat.com (Red Hat) + openshiftcontainerskubernetesdeploymentsautoscaling + + diff --git a/public/tags/openshift/feed.xml b/public/tags/openshift/feed.xml index 7ed4d7e..8efde90 100644 --- a/public/tags/openshift/feed.xml +++ b/public/tags/openshift/feed.xml @@ -24,11 +24,21 @@ https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise2 Deploying your first application https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise2 - Time to deploy our first app! + Time to deploy your first app! Tue, 05 Dec 2023 00:00:00 GMT jablair@redhat.com (Red Hat) openshiftcontainerskubernetesdeploymentsimages + + https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise3 + Scaling and autohealing applications + https://jmhbnz.github.io/ocp-app-delivery-workshop/workshop/exercise3 + Let's scale our application up 📈 + Wed, 06 Dec 2023 00:00:00 GMT + jablair@redhat.com (Red Hat) + openshiftcontainerskubernetesdeploymentsautoscaling + +