2026-09-08 12:19
Status:
Tags: IBM IBM Full Stack Software Developer Professional Certificate IBM - Introduction to Containers with Docker, Kubernetes & OpenShift Docker Kubernetes OpenShift Virtual Machines The Cloud DevOps Deployment
CDKO - Module 4 - The Kubernetes Ecosystem Openshift, Istio, etc
==The Kubernetes Ecosystem: OpenShift, Istio, etc.
-
Introduction to Red Hat OpenShift:
- OpenShift- is an enterprise-ready Kubernetes container platform built for an open hybrid-cloud strategy
- It provides tools that allow for easy application management on a hybrid or multi-cloud environment
- It is build on Linux, containers, and automation
- It provides full stack automation and self-servicing provisioning for efficient development and deployment
- Basically OpenShift is used as an extension of Kubernetes as a means to sort of make it all a bit more cohesive and understandable, but it is still just an add on to Kubernetes in general
- Features
- Salable- apps can scale to thousands of instances across hundreds of nodes in seconds
- Flexible, you can have a public private or hybrid cloud which allows the deployment strategy to be much easier, giving you more leeway on what you can do
- Open Source- uses Kubernetes as the basis which itself is an open source platform, but this means it can be built on consistently and worked with
- Developer Experience it is very easy to work with, it has a ton of built in tools, a familiar structure, a CLI, IDE integration, and a bunch of other stuff like automated upgrades
- Automation & Streamlining manages to make the deployment, scaling, and management of an application even easier, allowing you to automate them as you so like
- Multi cluster management- allowing you to actually go even one step above and manage multiple kubernetes clusters at once
- Advanced Security & Compliance- as is generally standard for any major tool that is used in the cyberspace, it has things like a built in scanner, alert system, error handling, and lifecycle management
- Persistent Storage for mounting drives and what not which is really good for connecting a database to an application
- Robust Partner Ecosystem given the open source nature, there is a large number of available third party tools and extensions
- Basically, OpenShift is a bit better and easier to use, but is also a little bit more none-flexible in the places that you can install it and use it on, which makes things like modifying it or making it more custom a bit more difficult
- Think of it similar to Flask vs Django, the former is more flexible to how you can use it than the ladder, but the ladder is “batteries included”
- In terms of things like added CI/CD or networking or routing or other more development focused operations, OpenShift has a lot of built in solutions that make it pretty easy to learn for a beginner
- However once again, because of the greater compatibility that Kubernetes has with different environments, even though you do have to integrate and orchestrate the tools yourself, they end up being better in the long run
- OpenShift Architecture-
- It basically runs ON TOP OF A KUBERNETES CLUSTER, with the actual object data stored in the
etcdkey-value store as found inside of the main kube-api - It has a micro-service architecture, with the services being Rest APIs which are are used to expose each one of the objects
- As well as then Controllers which read the REST APIs and apply changes to the other objects in the cluster management environment, basically doing so to keep the desired state of the cluster
- On top of the light-weight containers from docker, and then cluster management from Kubernetes, OpenShift adds source code management, builds, and deployments for developers, basically just better for networking and actual code management
- It basically runs ON TOP OF A KUBERNETES CLUSTER, with the actual object data stored in the
- OpenShift also has a CLI (oc) which is used to perform end-to-end operations, and runs on all operating systems
- It lets youwork directly with project source code using command script, script OpenShift Operations, and manage projects during restricted bandwidth
- Let it be known that both kubectl and oc are available in openshift since it runs on kubernetes, but oc is generally more useful because it has extra capability for OpenShift features
- This includes things like
DeploymentConfigs, BuildConfigs, Routes, and ImageSteams/ImageStreamTags
-
Builds:
- Build is the process of transforming inputs into a resultant object, for example, transforming source code to a container image
- A build configuration file (Build Config) defines the build strategy and input
- Some common Build Strategies include:
S2I (Source To Image), Docker, or Custom - Build Input Sources are basically the information telling a build how it is supposed to go
- Some build inputs, listed in order of precedence include: Inline Dockerfile Defintions, content extracted from existing images, git repos, Binary/Local inputs, input secretes, and external artifacts
- Although multiple inputs can be combined together in order to create a single build input
- ImageStream is an abstraction for referencing container images within OpenShift
- It continuously creates and updates container images, but does not contain any image data, instead it actually is a pointer to other ImageStreams or different registries holding the images
- An ImageStream might also have a bunch of different tags based on the images they represent for the source code, like
Latest, Dev, or Test - It can also be configured to trigger builds and deployments whenever a new image becomes available
- Build Triggers are used to automate builds with different triggers or basically events
- Web-hook trigger sends a request to an OpenShift Container Platform API endpoint
- It also supports more generic webhooks and more often used github hooks, which communicate to the endpoints through repos or some shit
- Image Change Trigger as the name suggests, these automatically build whenever a new version of an image is available
- This is generally really good and useful for keeping base images up to date
- Configuration Change Trigger causes a build whenever there is a new BuildConfig created
-
Operators:
- Operators automate cluster tasks and act as a custom controller to extend the kubernetes API
- They run in a Pod, and interact with the API server
- They are used to Package, Deploy, and manage kubernetes apps
- They can also automate app creation, configuration and management via continuous real-time decisions
==Summary
- OpenShift® is an enterprise-ready Kubernetes container platform built for open hybrid cloud.
- OpenShift is easier to use, integrates with Jenkins, and has more services and features.
- Custom resource definitions (CRDs) extend the Kubernetes API.
- CRDs paired with custom controllers create new, declarative APIs in Kubernetes.
- Operators use CRDs and custom controllers to automate cluster tasks.
- A build is a process that transforms inputs into an object.
- An ImageStream is an abstraction for referencing container images in OpenShift.
- A service mesh provides traffic management to control the flow of traffic between services, security to encrypt traffic between services, and observability of service behavior to troubleshoot and optimize applications.
- Istio is a service mesh that supports four concepts of connection, security, enforcement, and observability. It is commonly used with Microservices applications.
- Istio provides service communication metrics for basic service monitoring needs: latency, traffic, errors, and saturation.
==Cheat Sheet
| Command | Description |
|---|---|
| oc get | Displays a resource. |
| oc project | Switches to a different project. |
| oc version | Displays version information |
==Glossary
| Term | Definition |
|---|---|
| A/B testing | Strategy is mostly used for testing new features in front-end applications. It is used to evaluate two versions of the application namely A and B, to assess which one performs better in a controlled environment. The two versions of the applications differ in terms of features and cater to different sets of users. Based on the interaction and responses received from the users such as feedback, you can choose one of the versions of the application that can be deployed globally into production. |
| Build | The process of transforming inputs into a resultant object. |
| BuildConfig | An OpenShift-specific object that defines the process for a build to follow. The build process makes use of the input sources and the build strategy. The BuildConfig is the blueprint, and the build is an instance of that blueprint. |
| Canary Deployments | Aims to deploy the new version of the application by gradually increasing the number of users. The canary deployment strategy uses the real users to test the new version of the application. As a result, bugs and issues can be detected and fixed before the new version of the application is deployed globally for all the users. |
| Circuit breaking | A method to prevent errors in one microservice from cascading to other microservices. |
| Configuration Change | A trigger that causes a new build to run when a new BuildConfig resource is created. |
| Control Plane | The control plane takes the desired configuration and its view of the services and dynamically programs and updates the proxy servers as the environment changes. |
| Custom build strategy | Requires you to define and create your own builder image. |
| Custom builder images | Are regular Docker images that contain the logic needed to transform the inputs into the expected output. |
| CRDs | Custom code that defines a resource to add to your Kubernetes API server without building a complete custom server. |
| Custom controllers | Reconcile the custom resources (CRDs) actual state with its desired state. |
| Data plane | Communication between services is handled by the data plane. If a service mesh is absent, the network cannot identify the type of traffic that flows, the source, and the destination and make any necessary decisions. |
| Enforceability (Control) | Istio provides control by enforcing policies across an entire fleet and ensures resources are fairly distributed among consumers. |
| Envoy proxy | All network traffic is subject to or intercepted by a proxy, called Envoy, used by the service mesh and allows many features depending on the configuration. |
| Human operators | Understand the systems they control. They know how to deploy services and how to recognize and fix problems. |
| Image Change | A trigger to rebuild a containerized application when a new or updated version of an image is available. For example, if an application is built using a Node.js base image, that image will be updated as security fixes are released and other updates occur. |
| ImageStream | An abstraction for referencing container images within OpenShift. Each image contains an ID, or digest, that identifies it. ImageStreams do not contain image data but rather are pointers to image digests. |
| ImageStream Tag | An identity to the pointer in an ImageStream that points to a certain image in a registry. |
| Istio | A platform-independent and popular service mesh platform, often used with Kubernetes. It intelligently controls the flow of traffic and API calls between services, conducts a range of tests and reduces the complexity of managing network services. Istio secures services through authentication, authorization, and encryption. Istio provides control by defining policies that can be enforced across an entire fleet. With Istio, you can observe traffic flow in your mesh so you can trace call flows, dependencies, and you can view service communication metrics such as latency, traffic, errors and saturation. |
| Man-in-the-middle attacks | A man-in-the-middle (MiTM) attack is a type of cyber-attack where the attacker secretly intercepts and relays messages between two parties who believe they are communicating directly with each other. The attack is a type of eavesdropping in which the attacker intercepts and then controls the entire conversation. |
| Observability | Helps to observe the traffic flow in your mesh, trace call flows and dependencies, and view metrics such as latency and errors. |
| OpenShift | A hybrid cloud, enterprise Kubernetes application. |
| OpenShift CI/CD process | Automatically merges new code changes to the repository, builds, tests, approves, and deploys a new version to different environments. |
| Operators | Automate cluster tasks and act as a custom controller to extend the Kubernetes API. |
| Operator Framework | Is a family of tools and capabilities to deliver an efficient customer experience. It is not just about writing code; what is also critical is testing, delivery, and updating Operators. |
| OperatorHub | Web console lets cluster administrators find Operators to install on their cluster. It provides many different types of Operators available, including Red Hat Operators, Certified Operators from independent service vendors partnered with Red Hat, Community Operators from the open-source community but not officially supported by Red Hat, and custom Operators defined by users. |
| Operator Lifecycle Manager | (or OLM) Controls the install, upgrade, and role-based access control (or RBAC) of Operators in a cluster. |
| Operator maturity model | Defines the phases of maturity for general day two Operations activities and ranges from Basic Install to Auto Pilot. |
| Operator Pattern | A system design that links a Controller to one or more custom resources. |
| Operator Registry | Stores CRDs, cluster service versions (CSVs), and Operator metadata for packages and channels. It runs in Kubernetes or OpenShift clusters to provide the Operator catalog data to OLM. |
| Operator SDK | (which includes Helm, Go, and Ansible) Helps authors build, test, and package their Operators without requiring knowledge of Kubernetes API complexities. |
| postCommit | Section defines an optional build hook. |
| Retries | A mechanism used in microservices to automatically reattempt a failed request to another service. |
| runPolicy | Field controls how builds created from a build configuration need to run. Values include the default Serial (sequentially) and simultaneously. |
| Service Broker | Provides a short-running process that cannot perform the consecutive day’s operations such as upgrades, failover, or scaling. |
| Service Mesh | A dedicated layer for making service-to-service communication secure and reliable. It provides traffic management to control the flow of traffic between services, security to encrypt traffic between services, and observability of service behavior; so, you can troubleshoot and optimize applications. |
| Software operators | Try to capture the knowledge of human operators and automate the same processes. |
| Source-to-Image | A tool for building reproducible container images. Also abbreviated S2i, it injects application source code into a container image to produce a ready-to-run image. |
| Source strategy | Section shows the strategy used to execute the build, such as a Source, Docker, or Custom strategy. |
| Source type | Determines the primary input like a Git repository, an inline Dockerfile, or binary payloads. |
| Webhook | A trigger that sends a request to an OpenShift Container Platform API endpoint. Often this will be a GitHub webhook, though it can also be a generic webhook. If a GitHub webhook is utilized, GitHub can send the request to OpenShift when there is a new commit on a certain branch, or a pull request is merged, or under many more circumstances. Webhooks are a great way to automate development flows so that builds can occur automatically as new code is developed. |





