Scalling and Self Healing Openshift
Scalling and Self Healing Openshift
Scalling and Self Healing Openshift
com/user/user12/workshop/parksmap-scaling
WORKSHOP MODULES
Workshop Summary
Scaling and Self Healing
Environment Overview
“
Exploring OpenShift's Logging
Similar to a replication controller, a ReplicaSet is a native Kubernetes API object that ensures a specified
Capabilities
number of pod replicas are running at any given time. The difference between a replica set and a
Role-Based Access Control
replication controller is that a replica set supports set-based selector requirements whereas a replication
Remote Access to Your Application
controller only supports equality-based selector requirements.
Deploying Java Code
Adding a Database (MongoDB) In Kubernetes, a Deployment (D) defines how something should be deployed. In almost all cases, you will end up using the Pod,
Service,
ReplicaSet and Deployment resources together. And, in
almost all of those cases, OpenShift will create all of them for
Application Health
you.
Automate Build and Deployment with
Pipelines There are some edge cases where you might want some Pods and an RS without a D
or a Service, and others, so feel free to ask
Automation for Your Application on us about them after the labs.
Code Changes
Workshop Links
BASH
NAME READY UP-TO-DATE AVAILABLE AGE
Take a look at the ReplicaSet (RS) that was created for you when
you told OpenShift to stand up the parksmap image:
BASH
oc get rs
BASH
NAME DESIRED CURRENT READY AGE
parksmap-65c4f8b676 1 1 1 21m
This lets us know that, right now, we expect one Pod to be deployed
( Desired ), and we have one Pod actually deployed
( Current ). By changing
the desired number, we can tell OpenShift that we want more or less Pods.
BASH
oc scale --replicas=2 deployment/parksmap
You can also scale up to two pods in the Developer Perspective. From the Topology view, first click the parksmap deployment
config and select the Details tab:
https://lab-getting-started-java-labs.apps.cluster-qxs2c.qxs2c.sandbox2184.opentlc.com/user/user12/workshop/parksmap-scaling 1/1