Skip to content

redhat-gpst/openshift-support-basics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 

Repository files navigation

OpenShift Support Basics

These are labs that help to learn how to be functional for basic administration tasks.

Getting Started

Connect to the EtherPad instance for the class to claim a username. Both links will be provided in the chat window of the class.

Sample URL: http://etherpad-labs.apps.cluster-cloudera-aa43.cloudera-aa43.example.opentlc.com/p/cloudera

Usernames have the format of user1 to user50 and the password is openshift.

Architecture

Accessing OpenShift

Create a project with the same name as your username if one does not exist.

Installing a web terminal -- Container image name is quay.io/openshifthomeroom/workshop-terminal

Using the "oc" command line

Finding pods and nodes

Viewing Pods

Viewing Nodes

Network, Security, and Storage

Viewing Network Policies, Ingress, and Routes

Network Policy

Secrets and other things Security

Container Security - OpenShift docs

10 Layers of Container Security

OpenShift secrets

Kubernetes secrets

Using HashiCorp Vault with OpenShift 4.

https://www.openshift.com/blog/vault-integration-using-kubernetes-authentication-method

https://www.openshift.com/blog/integrating-vault-with-legacy-applications

https://www.openshift.com/blog/integrating-hashicorp-vault-in-openshift-4

https://www.redhat.com/en/resources/container-security-openshift-cloud-devops-whitepaper

Viewing StorageClasses, Persistent Volumes, and Claims

Storage - Kubernetes docs

Persistent Storage - OpenShift docs

Observability

Accessing logs via CLI

Accessing logs via Web UI

Examining cluster metrics in the Web UI

Debugging

You can use oc debug to open a shell to debug one of many OpenShift components.

$ oc debug node/ip-10-0-141-105.ec2.internal
Starting pod/ip-10-0-141-105ec2internal-debug ...
To use host binaries, run `chroot /host`

sh-4.2# cat /host/proc/cmdline
BOOT_IMAGE=/ostree/rhcos-... console=tty0 console=ttyS0,115200n8
rootflags=defaults,prjquota rw root=UUID=fd0... ostree=/ostree/boot.0/rhcos/16...
coreos.oem.id=qemu coreos.oem.id=ec2 ignition.platform.id=ec2 selinux=0

sh-4.2# exit

Using oc exec allows the remote execution of commands within the specified container within a pod.

$ oc exec mypod date
Thu Apr  9 02:21:53 UTC 2015

Troubleshooting links

Installation Troubleshooting

Investigating pod issues

Storage Issues

Other Resources

OpenShift Documentation - https://docs.openshift.com/

Kubernetes Documentation - https://kubernetes.io/docs/home/

Red Hat OPEN Training - https://connect.redhat.com/

OpenShift Learning Site - https://learn.openshift.com/

O'Reilly Katacoda - https://www.katacoda.com/courses/kubernetes

Complete Lab on Kubernetes - https://collabnix.github.io/kubelabs/

CLI Guides

oc

odo

tkn

kubectl cheat sheet

helm

helm on OpenShift

Extra debugging labs

https://www.katacoda.com/kierranm/scenarios/k8s-troubleshooting-01

https://www.katacoda.com/msv/scenarios/kubernetes-debugging

https://www.katacoda.com/andresguisado/courses/kubernetes101/debugging

https://www.katacoda.com/andresguisado/courses/kubernetes101/debugging-2

https://www.katacoda.com/contino/courses/kubernetes/debugging

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published