FreeKB - OpenShift articles
OpenShift articles

Getting Started with OpenShiftAdmin ConsoleGetting Started with the Admin ConsoleAPI ServerDisplay API Server URL using the oc config view commandDisplay api URL using the oc get apiserver commandAuthentication / Identity ProvidersCreate htpasswd Identity Provider using a YAML template fileEdit Identity Providers YAML template fileList identities using the oc get identity commandList OAuth Identity Providers using the oc get oauth commandList the enabled authentication methodsShow OAuth Identity Provider details using the oc describe oauth commandUpdate Identity ProviderBuilds and Build ConfigsList Build Configs using the oc get buildconfigs commandClusteroc cluster-infoCluster Application Migration (CAM) ToolMigrate Application - Create the Migration PlanMigrate Application - Migrate a PlanMigrate Application - Stage a PlanCodeReady Containerscrc 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)Display CodeReady Container login credentials using the crc console commandInstall OpenShift CodeReady Containers on Linux or MacInstall OpenShift CodeReady Containers on WindowsUninstall OpenShift CodeReady Containers on LinuxUninstall OpenShift CodeReady Containers on MacUninstall OpenShift CodeReady Containers on WindowsConfig MapsConfigure a Deployment with Config Maps as a VariableConfigure a Deployment with Config Maps as a Volume MountCreate Config Map using a YAML template fileCreate Config Map using the oc create configmap commandDelete Config Maps using the oc delete configmap commandEdit Config Map using the oc edit commandList Config Maps using REST APIList Config Maps using the oc get configmap commandShow Config Map details using oc describe or oc getContainersList the containers in a deployment or podDaemon SetsList deamon sets using the oc get daemonsets commandDeploymentsDelete deployment using the oc delete deployment commandDeploy a new version of an application using the oc rollout commandDeploy an application from a buildDeploy an application from a JSON or YAML fileDeploy an application from an imageDeploy an application from Docker HubDeploy an application from GitHubDeploy Hello OpenshiftDeployment status using the oc status commandLabel a deployment using the oc label commandList deployment configs using the oc get deploymentconfigs commandList deployment environment variablesList deployments using REST APIList deployments using the oc get deployments commandUpdate a deployment using a YAML template fileUpdate a deployment YAML template file using the oc edit commandDNSList DNS objects using the oc get dns commandList OpenShift DNS URLsShow DNS details using oc describe or oc getegressAssign egress IP address to a node using the oc patch hostsubnet commandAssign egress IP address to a project using the oc patch netnamespace commandCreate egress rules using a YAML template fileEdit egress rules using the oc edit commandList egress IP and CIDR using the oc get hostsubnet commandList egress IP using the oc get netnamespace commandList egress rules using the oc get egressnetworkpolicy commandShow egress rules using oc describe or oc getElastic Searches_util query indicesMonitor an Application Server in Elastic APMEndpointsList endpoints using the oc get endpoints commandEnvironment VariablesCreate deployment environment variablesDelete environment variables using the oc set env commandList environment variables using the oc set env commandEventsDelete events using the oc delete events commandList Events using the oc get events commandView Node events using oc describe or oc getView Pod events using oc describe or oc getImagesCreate image using the oc import-image commandList images using the oc get images commandList images using the oc get imagestreams commandPull image from a registry using the podman pull commandShow Image details using oc describe or oc getIngressCreate Ingress Route using a YAML template fileCreate Ingress Route using the oc create ingress commandDisplay apps URL using oc describe or oc getList Ingress Controllers using the oc get ingresscontroller commandList Ingress Route using the oc get ingress commandList Ingress Routers using the oc get services commandShow Ingress Route details using oc describe or oc getInstallInstall 60 day free trial version of Red Hat OpenShift on VMWareJobsList cronjobs using the oc get cronjob commandList Jobs using the oc get jobs commandJSONParse JSON using jsonpathLimits and QuotasCreate Cluster Resource Quota using the oc create clusterresourcequota commandCreate CPU Memory Limits using a YAML template fileCreate QuotaCreate Quota using a YAML template fileDeploy an application with CPU Memory limits using a YAML template fileList Cluster Resource Quota using the oc get clusterresourcequota commandList CPU Memory Limits using the oc get limits commandList Quota using the oc get quota commandShow Cluster Resource Quota details using oc describe or oc getShow CPU Memory Limit details using oc describe or oc getShow Quota details using oc describe or oc getLoggingElastic 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 commandView pod logs using the oc logs commandLoginoc login commandMachines / NodesDelete machine using the oc delete machine commandLabel a node using the oc label commandList Machine Config Pool using the oc get machineconfigpool commandList node clusters using the oc get machineset commandList nodes using the oc get machines commandList nodes using the oc get nodes commandShow Machine Config Pool details using oc describe or oc getShow node details using oc describe or oc getStart a node in debug mode using the oc debug commandMust GatherCreating a Must Gather using the oc adm must-gather commandNetwork PoliciesCreate Network Policy using a YAML template fileList Network Policies using the oc get networkpolicies commandShow Network Policy details using oc describe or oc getOAuthList OAuth Bearer Token using REST APIObtain OAuth Bearer Token using REST APIoc commandGetting Started with the oc commandOperatorsList Cluster Operators using the oc get clusteroperator commandList Operators using the oc get operators commandShow Cluster Operator details using oc describe or oc getOutput Formatcustom-columns optioncustom-columns optionPod PlacementRun a pod on a specific node using nodeAffinityRun a pod on a specific node using nodeSelector Run a pod on a specific node using podAffinityRun a pod on a specific node using taint and tolerationsPodsConfigure a pod to create heap dumps (oc edit JAVA_OPTS)Create a pod using a YAML template fileDelete Pod using the oc delete pod commandEvacuating pods on a nodes (oc adm drain)Exchanging messages between podsExecute a command in a pod using the oc exec commandLabel a pod using the oc label commandList pods using REST APIList pods using the oc get pods commandRemote shell to a pod using the oc rsh commandRestart Pod using the oc delete pod commandRestart Pod using the REST APIShow pod details using oc describe or oc getUpdate a pods max heap (oc edit JAVA_OPTS)Update a pods metaspace (oc edit JAVA_OPTS)View a pods memory (RAM oc edit)Port ForwardCreate a port forward rule using the oc port-forward commandProject / NamespaceChange Project using the oc project commandCreate Project Template using the oc adm create-bootstrap-project-template commandCreate Project using a YAML template fileCreate Project using the oc new-project commandDelete Project using the oc delete project commandDisable new Project creation using projectRequestMessageDisable new Project creation using self-provisioners Cluster Role BindingInspect a project using the oc adm inspect commandList namespaces using REST APIList projects using the oc get netnamespaces commandList projects using the oc get projects commandShow project details using oc describe or oc getProxyList proxy servers using the oc get proxy commandRegistriesList repositories in the internal registrySign into registry.redhat.io using the podman login commandReplicasList replicas using REST APIList replicas using the oc get replicaset commandList replicaset environment variablesRolesAdd Cluster Role Binding to a User or GroupAdd Role Binding to a User or GroupCreate Role BindingDetermine if a User or Group has permission using oc adm policy who-canList Cluster Role BindingsList Role BindingsRemove Cluster Role Binding from a User or GroupRemove Role Binding from a User or GroupShow Cluster Role Binding details using oc describe or oc getShow Role Binding details using oc describe or oc getRouterUnderstanding Default RouterRoutesCreate insecured Route using the oc expose commandCreate secure Route using the oc create route commandLabel a route using the oc label commandList Routes using the oc get routes commandShow Route details using oc describe or oc getScale / AutoscaleAdd machines nodes using the oc scale machineset commandAutomatically scale a deployment using a YAML template fileAutomatically scale a deployment using the oc autoscale commandList autoscalers using the oc get horizontalpodautoscalers commandRestart deployment using the oc scale command (replicas)Show Autoscaler details using oc describe or oc getSchedulerList Schedulers using the oc get scheduler commandMarking a nodes as schedulable or unschedulable (oc adm manage-node)Show Scheduler details using oc describe or oc getSecretsConfigure a Deployment with Secrets as a VariableConfigure a Deployment with Secrets as a Volume MountCreate Secret using a YAML template fileCreate Secret using the oc create secret commandDelete Secret using REST APIDeleting Secrets using the oc delete secret commandDisplay secret content using the oc secrets commandList Secrets using REST APIList Secrets using the oc get secrets commandPrefix Secrets using oc set env --prefixUpdate Secret using the oc replace commandSecurity Context Constraints (SCC)Add a Security Context Constraints to a User or Group or Service AccountList Security Context Constraints allowed by a deploymentList Security Context Constraints using the oc get securitycontextcontraints commandRemove a Security Context Constraint from a User or Group or Service AccountRun a deployment with a Service Account and Security Context ConstraintShow Security Context Constraints details using oc describe or oc getUpdate a deployment with Security Context runAsUserServicesAssign an external IP address to a service using the oc patch service commandCreate ClusterIP Service using a YAML template fileCreate ClusterIP Service using the oc create service commandCreate ClusterIP Service using the oc expose pod commandCreate load balance service using the oc create service commandList Services using REST APIList Services using the oc get services commandShow service details using oc describe or oc getsosreportCreate an SOS reportSSL / TLSList SSL certificates in a config mapList SSL certificates in a deployment container args (arguments)List SSL certificates in a secretService CA (certificate authority) SSL certificateView a pods SSL certificateStart Stop RestartStart Stop Restart Node using the master-restart commandStorage ClassesList Storage Classes using the oc get storageclass commandTemplatesGetting Started with TemplatesList Templates using the oc get templates commandTroubleshootingoc adm diagnostics commandPod stuck TerminatingResolve "Cluster operator network has not retrieved updates"Resolve "Cluster version operator has not retrieved updates"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 "exceeded quota"Resolve "Failed connect to Connection refused"Resolve "failed to pull image manifest unknown ImagePullBackOut"Resolve "Failed to pull image proxyconnect timeout"Resolve "FailedMount Unable to attach or mount volumes timed out waiting for the condition"Resolve "forbidden: User cannot list resource in API group"Resolve "Kubelet stopped posting node status"Resolve "Multi-Attach error for volume"Resolve "must not have leading or trailing whitespace"Resolve "Prometheus has failed to evaluate rules in the last 5m"Resolve "ThanosQueryHttpRequestQueryRangeErrorRateHigh"Resolve "Throttling request took"Resolve "unable to validate against any security context constraint"Resolve "You are not a member of any projects"Resolve "You may not request a new project via this API"Resolve "You must obtain an API token"Resolve "You need to be root to perform this command"Resolve cluster operator degradedResolve Liveness or Readiness probe failedResolve node status NotReadyUsers / Groups / Service AccountsAdd user to a group using the oc admin groups add-users commandCreate group using the oc adm groups commandCreate Service Account using a YAML template fileCreate Service Account using the oc create serviceaccount commandDisplay user name and token using the oc whoami commandDisplay users token using the oc config view commandList Groups using the oc get groups commandList Service Accounts using oc describe or oc getList Service Accounts using the oc get serviceaccounts commandList Users using the oc get users commandRemove user from a group using the oc admin groups remove-users commandShow Group details using oc describe or oc getVersionoc get clusterversion commandoc version commandVolumesCreate Persistent Volume Claim using a YAML template fileCreate Persistent Volume using a YAML template fileCreate Shared Volume using a YAML template fileDetermine Persistent Volume Claim used spaceLabel a Persistent Volume using the oc label commandList Persistent Volume Claims using the oc get pvc commandList Persistent Volume using the oc get pv commandList Shared Volumes using the oc get sharedvolumes commandMount a local directory in a container using the oc set volume commandMount a Persistent Volume in a containerMount an empty directory in a container using the oc set volume commandResize Persistent Volume Claim available storageShow Persistent Volume Claims details using oc describe or oc getShow Persistent Volumes details using oc describe or oc getShow Shared Volume details using oc describe or oc get

Web design by yours truely - me, myself, and I   |   jeremy.canfield@freekb.net   |