# KodeKloud: Courses OpenShift 4 ## OpenShift 4 ### Introduction - [Course: OpenShift 4](https://notes.kodekloud.com/docs/OpenShift-4/index.md): Introductory OpenShift course on KodeKloud teaching fundamentals to advanced topics with hands on labs, RBAC, builds, networking, storage, templates and community support - [Course Introduction](https://notes.kodekloud.com/docs/OpenShift-4/Introduction/Course-Introduction/page.md): Introductory OpenShift course on KodeKloud teaching fundamentals to advanced topics with hands on labs, RBAC, builds, networking, storage, templates and community support - [OpenShift Introduction](https://notes.kodekloud.com/docs/OpenShift-4/Introduction/OpenShift-Introduction/page.md): Overview of Red Hat OpenShift platform, its distributions, core container technologies, developer tooling, and features for building and operating cloud native applications. ### Pre-Requisite – Docker and Kubernetes - [Pre Requisite Docker Overview](https://notes.kodekloud.com/docs/OpenShift-4/Pre-Requisite-Docker-and-Kubernetes/Pre-Requisite-Docker-Overview/page.md): Overview of containers and Docker explaining containers versus virtual machines, images versus containers, Dockerfiles, common commands, and how Docker enables reproducible deployments and supports Kubernetes - [Pre Requisite Kubernetes Introduction](https://notes.kodekloud.com/docs/OpenShift-4/Pre-Requisite-Docker-and-Kubernetes/Pre-Requisite-Kubernetes-Introduction/page.md): Introduction to container orchestration and Kubernetes, explaining benefits, alternatives, core concepts, and practical steps to deploy and manage containers at production scale. ### Getting Started with OpenShift - [OpenShift Installation Methods](https://notes.kodekloud.com/docs/OpenShift-4/Getting-Started-with-OpenShift/OpenShift-Installation-Methods/page.md): Guide to creating a Red Hat account and accessing OpenShift downloads, documentation, and installation resources for local, cloud, or bare metal environments - [Demo Install Single Node using CRC](https://notes.kodekloud.com/docs/OpenShift-4/Getting-Started-with-OpenShift/Demo-Install-Single-Node-using-CRC/page.md): Guide to install and run Red Hat CodeReady Containers to create a local single-node OpenShift cluster for development, covering setup, startup, console access, CLI commands, and troubleshooting. - [Demo Install Single Node using Sandbox](https://notes.kodekloud.com/docs/OpenShift-4/Getting-Started-with-OpenShift/Demo-Install-Single-Node-using-Sandbox/page.md): Guide to using the Red Hat OpenShift Developer Sandbox for quick cloud-hosted ephemeral OpenShift demos and experimentation as an alternative to local CodeReady Containers - [Demo Web and CLI Templates Yaml Containers](https://notes.kodekloud.com/docs/OpenShift-4/Getting-Started-with-OpenShift/Demo-Web-and-CLI-Templates-Yaml-Containers/page.md): Guide to deploying and configuring Azure Red Hat OpenShift clusters, covering installation options, Azure prerequisites, networking, VM sizing, pull secrets, validation and retrieving credentials - [Demo OpenShift UI Overview](https://notes.kodekloud.com/docs/OpenShift-4/Getting-Started-with-OpenShift/Demo-OpenShift-UI-Overview/page.md): High-level tour of the OpenShift web console and oc CLI explaining Developer and Administrator perspectives, topology, observability, deployments, resources, and basic commands for deploying and inspecting apps ### OpenShift Concepts – Projects and Users - [Deploying applications web console](https://notes.kodekloud.com/docs/OpenShift-4/OpenShift-Concepts-Projects-and-Users/Deploying-applications-web-console/page.md): Guide to deploying applications on OpenShift web console using pasted manifests or importing from Git to build, push, and deploy apps and inspect Deployments, Pods, and Routes - [Deploying applications CLI](https://notes.kodekloud.com/docs/OpenShift-4/OpenShift-Concepts-Projects-and-Users/Deploying-applications-CLI/page.md): Guide to deploying the Sock Shop microservices demo on OpenShift and Kubernetes using oc or kubectl, including CLI commands, routes, and troubleshooting tips. - [Projects and Users](https://notes.kodekloud.com/docs/OpenShift-4/OpenShift-Concepts-Projects-and-Users/Projects-and-Users/page.md): Explains OpenShift projects and user types, showing how namespaces, service accounts, authentication, and RBAC provide isolation, access control, and team-based resource management. - [Demo Projects and Users](https://notes.kodekloud.com/docs/OpenShift-4/OpenShift-Concepts-Projects-and-Users/Demo-Projects-and-Users/page.md): Demo walkthrough of OpenShift projects and users on Minishift, showing oc login, listing users, creating projects from the web console, and granting cluster admin to a web console user ### Concepts – Builds and Deployments - [OpenShift Vs K8s Components](https://notes.kodekloud.com/docs/OpenShift-4/Concepts-Builds-and-Deployments/OpenShift-Vs-K8s-Components/page.md): Compares OpenShift and Kubernetes, explaining how OpenShift extends Kubernetes with integrated services, opinionated defaults, build and image features, security, and developer tooling. - [Deployment Config vs Kubernetes Deployment](https://notes.kodekloud.com/docs/OpenShift-4/Concepts-Builds-and-Deployments/Deployment-Config-vs-Kubernetes-Deployment/page.md): Comparison of Kubernetes Deployment and OpenShift DeploymentConfig, their controllers, selectors, triggers, example manifests, and recommendations for when to use each. - [Demo DeploymentConfigDeployment](https://notes.kodekloud.com/docs/OpenShift-4/Concepts-Builds-and-Deployments/Demo-DeploymentConfigDeployment/page.md): Compare Kubernetes Deployment and OpenShift DeploymentConfig by deploying identical CartsDB workloads to highlight controller behavior, console differences, and OpenShift specific features like imageChange triggers - [Image Streams Overview](https://notes.kodekloud.com/docs/OpenShift-4/Concepts-Builds-and-Deployments/Image-Streams-Overview/page.md): Explains OpenShift ImageStreams which track image tags and digests as metadata pointers, enabling automated build and deployment triggers and decoupling image publishing from deployment manifests. - [Demo Image Streams](https://notes.kodekloud.com/docs/OpenShift-4/Concepts-Builds-and-Deployments/Demo-Image-Streams/page.md): Guide to creating an OpenShift ImageStream for the Sock Shop carts service and deploying it with oc new-app using an internal tag to decouple from external registries - [Build and Build Config Overview](https://notes.kodekloud.com/docs/OpenShift-4/Concepts-Builds-and-Deployments/Build-and-Build-Config-Overview/page.md): Explains OpenShift BuildConfig and how builds convert source code into container images, including source, build strategies, outputs, triggers, and post build steps. - [Demo Build and Build Config](https://notes.kodekloud.com/docs/OpenShift-4/Concepts-Builds-and-Deployments/Demo-Build-and-Build-Config/page.md): Guide to creating and managing OpenShift BuildConfigs and builds from Git repositories, using console and oc commands - [Route overview](https://notes.kodekloud.com/docs/OpenShift-4/Concepts-Builds-and-Deployments/Route-overview/page.md): Overview of OpenShift Routes that expose cluster Services via hostnames, explain request flow, TLS termination options, and example Route manifest for external access - [Demo Route](https://notes.kodekloud.com/docs/OpenShift-4/Concepts-Builds-and-Deployments/Demo-Route/page.md): Guide to viewing, deleting, and recreating OpenShift Routes to expose the Sock Shop front-end and restore external access by mapping routes to services and target ports - [OpenShift Build Strategies](https://notes.kodekloud.com/docs/OpenShift-4/Concepts-Builds-and-Deployments/OpenShift-Build-Strategies/page.md): Summary of OpenShift BuildConfig strategies S2I Pipeline Docker and Custom plus build inputs examples security and best practices - [Docker Build](https://notes.kodekloud.com/docs/OpenShift-4/Concepts-Builds-and-Deployments/Docker-Build/page.md): Guide on using OpenShift Docker-strategy BuildConfigs with Buildah to build OCI compliant container images from Dockerfiles and manage resulting ImageStreamTags - [S2I](https://notes.kodekloud.com/docs/OpenShift-4/Concepts-Builds-and-Deployments/S2I/page.md): Describes Source-to-Image builds that convert source code into OCI container images using pluggable scripts, enabling reproducible, secure, incremental builds without requiring Dockerfiles - [Custom Build](https://notes.kodekloud.com/docs/OpenShift-4/Concepts-Builds-and-Deployments/Custom-Build/page.md): Describes custom builder container images that encapsulate build toolchains and workflows to produce reproducible artifacts deployable locally, in CI, or on container platforms. ### Networks, Services, Routes and Scaling - [Networking Overview](https://notes.kodekloud.com/docs/OpenShift-4/Networks-Services-Routes-and-Scaling/Networking-Overview/page.md): Overview of OpenShift networking, explaining OVS overlay SDN, pod IPs versus Services and DNS, SDN/CNI plugin modes, exposing applications and related best practices - [Services and Routes](https://notes.kodekloud.com/docs/OpenShift-4/Networks-Services-Routes-and-Scaling/Services-and-Routes/page.md): Explains OpenShift services and routes, covering stable service endpoints, load balancing to pods, external exposure via routes, TLS termination, and traffic splitting for rollouts. - [Demo Services and Routes](https://notes.kodekloud.com/docs/OpenShift-4/Networks-Services-Routes-and-Scaling/Demo-Services-and-Routes/page.md): Lesson on exposing OpenShift applications using Services for internal access and Routes for external HTTP and HTTPS exposure, with YAML examples and verification commands. - [Scaling](https://notes.kodekloud.com/docs/OpenShift-4/Networks-Services-Routes-and-Scaling/Scaling/page.md): Explains how to scale applications in OpenShift and Kubernetes using Deployments, ReplicaSets, CLI, web console, and Horizontal Pod Autoscalers with examples and best practices. - [Demo Scaling](https://notes.kodekloud.com/docs/OpenShift-4/Networks-Services-Routes-and-Scaling/Demo-Scaling/page.md): A beginner demo showing how to deploy a simple Flask web app to OpenShift, scale replicas, and observe routing, load balancing, and session affinity via Routes and Services. - [Autoscaling HPA Overview](https://notes.kodekloud.com/docs/OpenShift-4/Networks-Services-Routes-and-Scaling/Autoscaling-HPA-Overview/page.md): Explains vertical versus horizontal scaling and how Kubernetes OpenShift Horizontal Pod Autoscaler automates replica scaling using metrics, formulas, manifests, examples, and best practices. - [Demo HPA](https://notes.kodekloud.com/docs/OpenShift-4/Networks-Services-Routes-and-Scaling/Demo-HPA/page.md): Guide to enabling and managing Kubernetes/OpenShift Horizontal Pod Autoscalers using oc autoscale or declarative HorizontalPodAutoscaler manifests, including metrics, examples, troubleshooting and removal ### Storage, Templates and Catalog - [Storage](https://notes.kodekloud.com/docs/OpenShift-4/Storage-Templates-and-Catalog/Storage/page.md): Guide to provisioning and using persistent storage in OpenShift, explaining PersistentVolumes, PersistentVolumeClaims, StorageClasses, access modes, and mounting storage into pods. - [Demo Storage](https://notes.kodekloud.com/docs/OpenShift-4/Storage-Templates-and-Catalog/Demo-Storage/page.md): Guide to adding and verifying persistent storage in OpenShift using PersistentVolumeClaims, mounting volumes at /data so an app can read and share files across replicas - [Persistent Storage Static vs Dynamic Provisioning StorageClasses](https://notes.kodekloud.com/docs/OpenShift-4/Storage-Templates-and-Catalog/Persistent-Storage-Static-vs-Dynamic-Provisioning-StorageClasses/page.md): Explains OpenShift StorageClasses, static versus dynamic provisioning, selecting provisioners, reclaim and binding policies, creating StorageClasses and PVCs, and troubleshooting persistent volume allocation. - [Demo Dynamic Provisioning](https://notes.kodekloud.com/docs/OpenShift-4/Storage-Templates-and-Catalog/Demo-Dynamic-Provisioning/page.md): Explains Kubernetes and OpenShift dynamic storage provisioning using CSI drivers, StorageClasses, PersistentVolumes, and PersistentVolumeClaims with an Azure Files example. - [Resource Allocation CPU and RAM](https://notes.kodekloud.com/docs/OpenShift-4/Storage-Templates-and-Catalog/Resource-Allocation-CPU-and-RAM/page.md): Explains how Kubernetes uses resource requests and limits for CPU and memory to drive scheduling, runtime enforcement, QoS classes, and cluster stability, with examples and best practices - [Demo Resource Allocation](https://notes.kodekloud.com/docs/OpenShift-4/Storage-Templates-and-Catalog/Demo-Resource-Allocation/page.md): Adding CPU and memory requests and limits to a carts-db Kubernetes Deployment with example manifest and OpenShift application steps - [ResourceQuota Overview](https://notes.kodekloud.com/docs/OpenShift-4/Storage-Templates-and-Catalog/ResourceQuota-Overview/page.md): Explains Kubernetes ResourceQuota usage to limit namespace aggregate CPU memory storage and object counts, with examples, best practices, and troubleshooting guidance - [Demo Request Quota](https://notes.kodekloud.com/docs/OpenShift-4/Storage-Templates-and-Catalog/Demo-Request-Quota/page.md): Guide to create and validate an OpenShift namespace ResourceQuota that limits total pod memory requests and deploy a sample application to observe quota usage. - [Example Voting Application](https://notes.kodekloud.com/docs/OpenShift-4/Storage-Templates-and-Catalog/Example-Voting-Application/page.md): Explains microservices using a sample voting app, its Redis worker PostgreSQL components, data flow and steps to containerize and deploy the stack. - [Demo Example Voting Application](https://notes.kodekloud.com/docs/OpenShift-4/Storage-Templates-and-Catalog/Demo-Example-Voting-Application/page.md): Guide to deploying a multi-tier example voting application on OpenShift using Redis, PostgreSQL, a Python front-end, Node.js results service, and a worker, including config and troubleshooting. - [Templates and Catalog](https://notes.kodekloud.com/docs/OpenShift-4/Storage-Templates-and-Catalog/Templates-and-Catalog/page.md): Explains OpenShift Templates and Catalog, packaging multiple Kubernetes/OpenShift resources into reusable templates and how to author, parameterize, and install them. - [Demo Create Custom Catalog](https://notes.kodekloud.com/docs/OpenShift-4/Storage-Templates-and-Catalog/Demo-Create-Custom-Catalog/page.md): Guide to creating an OpenShift Template that packages the Example Voting Application resources into a catalog item, with steps to export, clean, parameterize, create, and publish. ### OpenShift Security - [User Management Overview users ServiceAccounts Groups](https://notes.kodekloud.com/docs/OpenShift-4/OpenShift-Security/User-Management-Overview-users-ServiceAccounts-Groups/page.md): Explains OpenShift users, service accounts, and groups with creation, management, and least privilege best practices for authentication and authorization. - [Demo User Management](https://notes.kodekloud.com/docs/OpenShift-4/OpenShift-Security/Demo-User-Management/page.md): Guide to managing OpenShift users, identities, service accounts, groups, and RoleBindings using oc CLI and web console with examples and best practices - [RBAC roles rolebinding cluster role clusterrole binding](https://notes.kodekloud.com/docs/OpenShift-4/OpenShift-Security/RBAC-roles-rolebinding-cluster-role-clusterrole-binding/page.md): Explains Kubernetes RBAC concepts, Roles and ClusterRoles, RoleBindings and ClusterRoleBindings, usage examples and best practices for least privilege access control. - [Demo RBAC](https://notes.kodekloud.com/docs/OpenShift-4/OpenShift-Security/Demo-RBAC/page.md): Demonstrates creating namespace Roles, ServiceAccounts, and RoleBindings in OpenShift Kubernetes, reusing ClusterRoles, verifying permissions, and RBAC best practices - [Demo Setting up user contexts projectwise](https://notes.kodekloud.com/docs/OpenShift-4/OpenShift-Security/Demo-Setting-up-user-contexts-projectwise/page.md): Guide to creating a read-only OpenShift user, granting pod view permissions via ClusterRole and ClusterRoleBinding, binding the user, and verifying access or limiting to a namespace. - [Config Map Overview](https://notes.kodekloud.com/docs/OpenShift-4/OpenShift-Security/Config-Map-Overview/page.md): Overview of Kubernetes ConfigMaps in OpenShift 4, storing non-sensitive key value configuration and how to create, manage, and consume them using declarative or imperative workflows - [Demo Config Maps](https://notes.kodekloud.com/docs/OpenShift-4/OpenShift-Security/Demo-Config-Maps/page.md): Explains creating and consuming a Kubernetes ConfigMap from a Deployment, showing manifests, configMapKeyRef usage, troubleshooting CreateContainerConfigError when ConfigMap is missing, and recovery steps. - [Secrets Overview](https://notes.kodekloud.com/docs/OpenShift-4/OpenShift-Security/Secrets-Overview/page.md): Explains Kubernetes Secrets, what they store, how to create and consume them, storage and security risks, and best practices like encryption and external secret managers. - [Demo Secrets](https://notes.kodekloud.com/docs/OpenShift-4/OpenShift-Security/Demo-Secrets/page.md): Guide to creating and consuming Kubernetes/OpenShift Secrets via manifests and the OpenShift console, with deployment examples and best practices for handling sensitive values - [Network Policies InterPod Security](https://notes.kodekloud.com/docs/OpenShift-4/OpenShift-Security/Network-Policies-InterPod-Security/page.md): Explains Kubernetes NetworkPolicies and how they restrict pod ingress and egress using layer 3 and 4 IP and port rules, with examples and CNI enforcement notes. - [Demo Network Policies](https://notes.kodekloud.com/docs/OpenShift-4/OpenShift-Security/Demo-Network-Policies/page.md): Demonstrates a Kubernetes NetworkPolicy restricting database pod ingress to pods with a specific label, plus deployment manifest, application commands, and OpenShift console verification - [SCC Overview](https://notes.kodekloud.com/docs/OpenShift-4/OpenShift-Security/SCC-Overview/page.md): Overview of Security Context Constraints in Kubernetes/OpenShift explaining host level controls for pod privileges, kernel confinement, best practices and how SCCs complement network policies and policy as code - [Demo SCC Overview](https://notes.kodekloud.com/docs/OpenShift-4/OpenShift-Security/Demo-SCC-Overview/page.md): Guide to hardening a Kubernetes/OpenShift Deployment by configuring container securityContext, enforcing readOnlyRootFilesystem, running nonroot, mounting writable volumes and verifying with oc commands - [Introduction to Operators](https://notes.kodekloud.com/docs/OpenShift-4/OpenShift-Security/Introduction-to-Operators/page.md): Explains Kubernetes Operators, showing how CRDs add API types and controllers reconcile desired state, with KubeBuilder examples and guidance on using OperatorHub to install existing operators. ### Conclusion and APPENDIX - [Conclusion](https://notes.kodekloud.com/docs/OpenShift-4/Conclusion-and-APPENDIX/Conclusion/page.md): Recap of an OpenShift course covering installation, projects, deployments, networking, storage, resource management, and security for managing Kubernetes-based clusters. - [APPENDIX A Demo Gitlab Setup](https://notes.kodekloud.com/docs/OpenShift-4/Conclusion-and-APPENDIX/APPENDIX-A-Demo-Gitlab-Setup/page.md): Guide to set up a local GitLab instance on a CentOS VirtualBox VM using host-only static networking and Docker for persistent GitLab CE container deployment. - [APPENDIX B Pre Requisite CICD](https://notes.kodekloud.com/docs/OpenShift-4/Conclusion-and-APPENDIX/APPENDIX-B-Pre-Requisite-CICD/page.md): Introductory overview of CI/CD and Docker explaining build pipelines, artifact packaging, Docker image creation, testing, registry publishing and deployment automation for reproducible releases - [APPENDIX C Pre Requisite SCM](https://notes.kodekloud.com/docs/OpenShift-4/Conclusion-and-APPENDIX/APPENDIX-C-Pre-Requisite-SCM/page.md): A concise primer on source code management, Git workflows, branching, merging, and integrating repositories with CI/CD and OpenShift builds to enable collaborative development and automated pipelines