Questions for Openshift
Total Page:16
File Type:pdf, Size:1020Kb
www.YoYoBrain.com - Accelerators for Memory and Learning Questions for OpenShift Category: Default - (402 questions) OpenShift: 2 primary tools to serve 1. container runtime - creates containers in application in OpenShift platform Linux 2. orchestration engine - manage cluster of servers running containers OpenShift: routing layer a software load balancer, when an application is deployed in OpenShift, a DNS entry is created and added to the load balancer, which interfaces with the Kubernetes service OpenShift: log into cluster and create oc login -u dev -p dev http://....:8443 user named dev with password dev OpenShift: what is the default port for 8443 OpenShift cluster OpenShift: what is a cluster's initial All All identity provider user name/password configuration allows any user and password combination to log in. OpenShift: ____ are the fundamental projects way applications are organized OpenShift: to create a project called oc new-project image-update image-update --display-name='My image update project' OpenShift: how to change to project oc project myProj myProj OpenShift: each application application source code deployment's image is created using _____ custom base image called a builder image and ____ OpenShift: the component that build config controls the creation of your application containers is _____ OpenShift: ____ contains all the info build config needed to build an application using its source code OpenShift: 4 things in build config 1. URL for the application source code 2. Name of builder image to use 3. Name of the application container image that is created 4. Events that trigger a new build to occur OpenShift: the job of deploying and deployment config component upgrading the application is handled by the _____ OpenShift: how are the number of passed into Kubernetes object called a replicas handled by deployment config replication controller OpenShift: ____ component is used deployments to track each deployment for an application by deployment config component OpenShift: image streams used to automate actions in OpenShift. They consist of links to one or more containers and trigger new deployments when components are updated. OpenShift: how to deploy an oc new-app application with CLI OpenShift: see information about the oc describe svc/app-cli service for app-cli OpenShift: see information about oc describe bc/<app-name> build config for <app-name> OpenShift: see information about oc describe dc/<app-name> deploy config for <app-name> OpenShift: create a route for app-cli oc expose svc/app-cli application OpenShift: get information about oc describe route/app-cli route for app-cli OpenShift: CL to create a liveness probe oc set probe OpenShift: 2 types of probes 1. liveness probe - pod destroyed if it fails 2. readiness OpenShift: how to manually rollback a oc rollback app-cli deployment for app-cli OpenShift: to enable autoscaling the admin metrics stack must deploy the OpenShift ______ OpenShift: 3 main components of OpenShift Hawkular, Heapster, and Apache Cassandra metrics stack OpenShift: the pods that are used to collect openshift-infra and process metrics run in _____ project OpenShift: how to install metrics stack 1. Enter the openshift-infra project oc project openshift-infra 2. run the ansible playbook ansible-playbook OpenShift: _____ is a process that runs on kubelets each OpenShift node and coordinates which tasks the node should execute with OpenShift master OpenShift: object to monitor the metrics and Horizontal Pod Autoscaler - HPA trigger autoscaling OpenShift: CLI to create an HPA object oc autoscale dc/<app-name> OpenShift: how to see all the Horizontal Pod oc get hpa Autoscalers OpenShift: how to inspect HPA object app-cli oc describe hpa app-cli OpenShift: a ____ is a threshold you can set resource request that affects scheduling and quality of service OpenShift: set a CPU request for all the pods oc set resources dc in app-cli application to 400 millicores app-cli --requests=cpu=400m OpenShift: ____ are arrays of objects that OpenShift templates can be parameterized and spun up on demand OpenShift: how to see the OpenShift oc get templates -n openshift templates that come installed OpenShift: how to import a template into the oc create -f <template_file> -n dev dev project OpenShift: _____ is used to orchestrate Kubernetes containers in an OpenShift cluster OpenShift: on each application node, docker Kubernetes depends on ____ to create the containers for each application deployment OpenShift: how are Linux namespaces used provide isolation for the resources running in for containers the container OpenShift: the purpose of cgroups in provide maximum, guaranteed access limits containers for CPU and memory on the application node OpenShift: Linux command to list lsns namespaces OpenShift: uses _____ Linux namespaces to 5 isolate process and resources on application nodes OpenShift: what is purpose of the mount isolates filesystem content, ensuring that Linux namespace content assigned to the container by OpenShift is the only content available to the process running in the container OpenShift: your OpenShift configuration LVM - logical volume manager uses _____ on this device for container LV - logical volume storage. Each container gets its own _____ when it is created OpenShift: CLI tool to enter an active nsenter --target <PID> namespace for another application OpenShift: purpose of UTS Linux Unix time sharing - lets each container have namespace its own hostname and domain name OpenShift: scale the app-cli application to 2 oc scale dc/app-cli --replicas=2 pods OpenShift: run a command on <pod-name> oc exec <pod-name> command OpenShift: purpose of PID Linux namespace isolating visible PIDs in container to only the applications in container OpenShift: the application component that replication controller - rc handles scaling application pods is called ______ OpenShift: how to see information on oc describe rc app-cli-1 replication controller for deployment app-cli-1 OpenShift: what field in rc (replication select field, lists the tags controller) and service determines which pods they target OpenShift CP: how to register a system with subscription-manager register Red Hat OpenShift CP: pull the latest subscription subscription-manager refresh data from Red Hat subscription manager OpenShift CP: list available Red Hat subscription-manager list --available subscriptions OpenShift CP: when you get pool ID for subscription-manager attach OpenShift Container Platform from --pod=<pool-ID> subscription-manager, how to attach to it OpenShift CP: how to enable more subscription-manager software repos using repos --enable=".." subscription-manager OpenShift CP: the installer for OpenShift atomic-openshift-utils Container Platform is provided by ____ package OpenShift CP: installation command for OCP atomic-openshift-installer install OpenShift CP: command to start OCP systemctl restart atomic-openshift-master-api atomic-openshift-master-controllers OpenShift CP: basic command for admin oc adm tasts OpenShift CP: where is the master config file /ect/origin/master/master-config.yaml OpenShift: delete the default router oc delete all -l router=router OpenShift: create a new default router oc adm router --replicas=1 --service=account=router OpenShift: delete the default registry oc delete all -l docker-registry=default OpenShift: create the docker-registry service oc adm registry using registry service account OpenShift: 3 steps to configure persistent 1. provision a volume that points to a storage storage for the image registry server on your network 2. create a volume claim 3. manually add the claim to the registry service OpenShift: login into remote server oc login -u username -p password <openshift-server> --server=<openshift-server> -- insecure-skip-tls-verify OpenShift: track progress of the build of the oc logs -f bc/ruby-ex application ruby-ex OpenShift: see the build statistics oc get builds OpenShift: get status of applications oc status OpenShift: create a route for external clients oc expose service ruby-ex to application ruby-ex OpenShift: view new route after running oc get route oc expose service OpenShift: how to edit the BuildConfig for oc edit bc/ruby-ex app ruby-ex OpenShift: see the webhook URL in oc describe bc ruby-ex BuildConfig for app ruby-ex OpenShift: manually rebuild image for app oc start-build ruby-ex ruby-ex OpenShift: view a list of projects oc get projects OpenShift: manually start build for ruby-ex oc start-build ruby-ex --follow and stream the logs OpenShift: default OpenShift router HAProxy software OpenShift: S2I Source-to-image - tool for building reproducible docker image. Produces images by injecting source code into a Docker image and assembling a new Docker image OpenShift: add the user named developer to oc adm policy add-role-to-user view project called mysecrets view developer -n mysecrets OpenShift: how to switch to different user oc login --username developer developer if logged into multiple accounts OpenShift: how to switch login to another oc login<cluster2-url> cluster <cluster2> OpenShift: get a list of all OpenShift cluster