Table of Contents

OPenshift

Trainning class for basics of openshift

DO080 - Containers, Kubernetes and Red Hat OpenShift Technical Overview

OCP upgrade Process

open case with Redhat

post upgrade list from Sean

Openshift reboot node

Reboot a Node

Openshift errors and fixes

Fixes Ansible errors and fixes

Openshift Commands used

to monitor an upgrade

 watch oc get mcp 

To drain a node or see what is holding up a drain (make sure to specify correct node!!)

  oc adm drain worker2.int-services-lab.daa.ie --ignore-daemonsets --delete-emptydir-data 

If something is stuck on evicting you can delete it using

First connect to associated project to get more information. This is listed under namespace in the gui when you expand the pod details)

 oc project project name 

To get pods associated with this project (namespace)

 oc get pods 

from here you will see pods and their state. THe Stuck pod will be seen as terminating and will be there for a while. You can delete it using

 oc delete pod/NAME_of_POD _STUCK --force 

For DMZ during patching there is a requirement to have extra worker nodes. WE can temporarily do this by modifying the configuration of the infra nodes. just add this line in the yml configuration under line 14

 node-role.kubernetes.io/worker: ''  

Ldap

link to update ldap secret.. needs to be done every 12 months

Upgrading

remember to open a proactive case with redhat and submit a must gather