Toggle navigation
FreeKB
About
Walkthroughs
Linux Commands
Sign In
FreeKB - OpenShift articles
OpenShift articles
Getting Started with OpenShift
Admin Console
Getting Started with the Admin Console
Cluster
List Cluster Operators using the oc get clusteroperator command
oc cluster-info
oc describe clusteroperator
Cluster Application Migration (CAM) Tool
Migrate Application - Create the Migration Plan
Migrate Application - Migrate a Plan
Migrate Application - Stage a Plan
CodeReady Containers
crc cleanup command (CodeReady Containers version)
crc config command (CodeReady Containers)
crc delete command (CodeReady Containers)
crc setup command (CodeReady Containers)
crc start command (CodeReady Containers)
crc status command (CodeReady Containers)
crc stop command (CodeReady Containers)
crc version command (CodeReady Containers version)
crc.log (CodeReady Containers log)
Config Maps
Create Config Map using the oc create configmap command
Delete Config Maps using the oc delete configmap command
Edit Config Map using the oc edit command
List Config Maps using REST API (curl)
List Config Maps using the oc get configmap command
View Config Maps using the oc describe configmap command
Daemon Sets
List deamon sets using the oc get daemonsets command
Deployments
Delete deployment using the oc delete deployment command
Deploy an application using the oc new-app command from Docker Hub
Deploy an application using the oc new-app command from GitHub
Deploy an application using the oc new-app command from image
Deployment status using the oc status command
List deployment environment variables
List deployments using REST API (curl)
List deployments using the oc get deployments command
List replicas using REST API (curl)
List replicas using the oc get replicaset command
List replicaset environment variables
Restart deployment using the oc scale command (replicas)
egress
Assign egress IP address using the oc patch egressnetworkpolicy command
egress IP using the oc get hostsubnet command (cidr)
Show egress rules using the oc describe egressnetworkpolicy command
Elastic Search
es_util query indices
Monitor an Application Server in Elastic APM
Events
List Events using the oc get events command
View Node events using the oc describe node command
View Pod events using the oc describe pod command
Images
List images using the oc get images command
List images using the oc get imagestreams command
Install
Install 60 day free trial version of Red Hat OpenShift on VMWare
Install CodeReady Containers
Install OpenShift CodeReady Containers on Linux or Mac
Install OpenShift CodeReady Containers on Windows
Uninstall OpenShift CodeReady Containers on Linux
Uninstall OpenShift CodeReady Containers on Mac
Uninstall OpenShift CodeReady Containers on Windows
Internal Registry
List repositories in the internal registry
Jobs
List cronjobs using the oc get cronjob command
List Jobs using the oc get jobs command
Logging
Elastic Search logs (ELK EFK stack)
Filebeat logs (ELK EFK stack)
Fluentd log level (ELK EFK stack)
Fluentd logs (ELK EFK stack)
Kibana Logs (ELK EFK stack)
log level option (--loglevel)
View logs using the master-logs command
View pod logs using the oc logs command
Login
oc login command
Machines / Nodes
Add machines nodes using the oc scale machineset command
Delete machine using the oc delete machine command
List node clusters using the oc get machineset command
List nodes using the oc get machines command
List nodes using the oc get nodes command
Marking a nodes as schedulable or unschedulable (oc adm manage-node)
oc get machineconfigpool
oc get mcp (machine config status)
Start a node in debug mode using the oc debug command
OAuth
List OAuth Bearer Token using REST API (curl)
Obtain OAuth Bearer Token using REST API (curl)
oc command
Getting Started with the oc command
Output Format
custom-columns option
custom-columns option
Pods
Configure a pod to create heap dumps (oc edit JAVA_OPTS)
Delete Pod using the oc delete pod command
Display a pods YAML or JSON
Evacuating pods on a nodes (oc adm drain)
Execute a command in a pod using the oc exec command
List pods using REST API (curl)
List pods using the oc get pods command
Remote shell to a pod using the oc rsh command
Restart Pod using the oc delete pod command
Restart Pod using the REST API (curl)
Update a pods max heap (oc edit JAVA_OPTS)
Update a pods metaspace (oc edit JAVA_OPTS)
View a pods memory (RAM oc edit)
Project / Namespace
Change Project using the oc project command
Create Project using the oc create command
Create Project using the oc new-project command
Delete Project using the oc delete project command
List namespaces using REST API (curl)
List projects using the oc get netnamespaces command
List projects using the oc get projects command
Show project details using the oc describe command
Routes
List Routes using the oc describe route command
List Routes using the oc get routes command
Secrets
Create Secret using the oc apply command
Create Secret using the oc secrets command
Delete Secret using REST API (curl)
Deleting Secrets using the oc delete secret command
Display secret content using the oc secrets command
List Secrets using REST API (curl)
List Secrets using the oc get secrets command
Using a secret
Services
Create load balance service using the oc create service command
Display service details using the oc describe service command
List Services using REST API (curl)
List Services using the oc get services command
SSL / TLS
List SSL certificates in a config map
List SSL certificates in a deployment container args (arguments)
List SSL certificates in a secret
Service CA (certificate authority) SSL certificate
View a pods SSL certificate
Start Stop Restart
Start Stop Restart Node using the master-restart command
Troubleshooting
oc adm diagnostics command
Pod stuck Terminating
Resolve "Cluster operator network has not retrieved updates"
Resolve "Cluster version operator has not retrieved updates"
Resolve "Connection refused"
Resolve "ContainerCreating"
Resolve "CrashLoopBackOff"
Resolve "DaemonSet openshift-sdn is not available awaiting nodes"
Resolve "Disk High Watermark" (pod health status yellow or red)
Resolve "Error trying to connect to APM Server"
Resolve "failed to pull image manifest unknown ImagePullBackOut"
Resolve "FailedMount Unable to attach or mount volumes timed out waiting for the condition"
Resolve "Kubelet stopped posting node status"
Resolve "Prometheus has failed to evaluate rules in the last 5m"
Resolve "ThanosQueryHttpRequestQueryRangeErrorRateHigh"
Resolve "You must obtain an API token"
Resolve node status NotReady
Users and Roles
Display user name and token using the oc whoami command
Grant user access to a namespace using the oc adm policy command
List user that have access to a namespace using the oc get rolebindings command
List Users using the oc get users command
Version
oc get clusterversion command
oc version command
Volumes
Describe Persistent Volume Claims using the oc describe pvc command
List Persistent Volume Claims using the oc get pvc command
List Persistent Volume using the oc get pv command
Mount a volume in a container
Web design by yours truely - me, myself, and I |
jeremy.canfield@freekb.net
|