Okd.iamgini.com is a subdomain of Iamgini.com, which was created on 2019-07-04,making it 5 years ago.
Description:Comprehensive CLI Cheat sheet for OpenShift, Kubernetes, Podman...
Discover okd.iamgini.com website stats, rating, details and status online.Use our online tools to find owner and admin contact info. Find out where is server located.Read and write reviews or vote to improve it ranking. Check alliedvsaxis duplicates with related css, domain relations, most used words, social networks references. Go to regular site
HomePage size: 65.604 KB |
Page Load Time: 0.232815 Seconds |
Website IP Address: 172.67.148.105 |
LogOut - CLI Engage assessment.cliengage.org |
Tech Notes Desk - Active Directory, PowerShell, How To, Windows, Linux, RaspberryPi, Docker,Troubles blog.technotesdesk.com |
Vue CLI cli.vuejs.org |
Cloud Foundry CLI Reference Guide cli.cloudfoundry.org |
Kubernetes 101 | A YouTube streaming series on Kubernetes and container-based infrastructure by Jeff kube101.jeffgeerling.com |
Log in - OpenShift Online manage.openshift.com |
Docker: Accelerated Container Application Development beta.docker.com |
Cheat Code Central - Cheat Code Central dispatches.cheatcc.com |
OpenShift Commons commons.openshift.org |
Red Hat OpenShift enterprise Kubernetes container platform openshift.redhat.com |
The Heroku CLI | Heroku Dev Center toolbelt.heroku.com |
Vim Cheat Sheet vim.rtorr.com |
OpenShift, Kubernetes, Docker Cheat sheet | Comprehensive ... https://okd.iamgini.com/ |
Date: Wed, 15 May 2024 16:04:54 GMT |
Content-Type: text/html; charset=utf-8 |
Transfer-Encoding: chunked |
Connection: keep-alive |
Last-Modified: Wed, 19 Apr 2023 08:55:00 GMT |
Access-Control-Allow-Origin: * |
expires: Wed, 15 May 2024 16:14:54 GMT |
Cache-Control: max-age=600 |
x-proxy-cache: MISS |
X-GitHub-Request-Id: 8ABB:2EA192:EB261D:F0F884:6644DD26 |
Age: 0 |
Via: 1.1 varnish |
X-Served-By: cache-bur-kbur8200095-BUR |
X-Cache: MISS |
X-Cache-Hits: 0 |
X-Timer: S1715789095.787821,VS0,VE126 |
Vary: Accept-Encoding |
X-Fastly-Request-ID: a00fb197239865cef14e2e9fe636fc8230325e5c |
CF-Cache-Status: DYNAMIC |
Report-To: "endpoints":["url":"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=R2G%2FpsyrY4FruMBw7JDkjx5iYZjGh4p2gALtKo1Z4xfA%2FXtfoO6rvPizj74qRi9DHa9g1CqDNFW3zs46VDvMEg9YmktUhqLnbw3dbs3%2F5fU22rW9V35iWslFPOsz16I6mdwZQjHI0aHk%2FVHgmDU%3D"],"group":"cf-nel","max_age":604800 |
NEL: |
charset="utf-8"/ |
content="Jekyll v3.9.3" name="generator" |
content="OpenShift, Kubernetes, Docker Cheat sheet" property="og:title"/ |
content="en_US" property="og:locale"/ |
content="Comprehensive CLI Cheat sheet for OpenShift, Kubernetes, Podman and Docker" name="description"/ |
content="Comprehensive CLI Cheat sheet for OpenShift, Kubernetes, Podman and Docker" property="og:description"/ |
content="http://okd.iamgini.com/" property="og:url"/ |
content="OpenShift, Kubernetes, Docker Cheat sheet" property="og:site_name"/ |
content="website" property="og:type"/ |
content="summary" name="twitter:card"/ |
content="OpenShift, Kubernetes, Docker Cheat sheet" property="twitter:title"/ |
content="width=device-width, initial-scale=1" name="viewport"/ |
content="#157878" name="theme-color"/ |
content="black-translucent" |
Kubernetes, Podman and Docker .OpenShift, Kubernetes, Docker Cheat sheetOpenShift Kubernetes Docker Cheatsheet Comprehensive CLI Cheat sheet for OpenShift, Kubernetes, Podman and Docker iamgini.com All Cheatsheets View on GitHubOpenShift, Kubernetes, Docker Cheat sheet Comprehensive CLI Cheatsheet for OpenShift, Kubernetes and Docker. Most of the time oc and kubectl shares the same command set but some cases we have some differences. oc has support for logging to OpenShift cluster with kubectl you need to create your kubeconfig file with credentials. Read more OpenShift articles and How-to’s on techbeatly.com References Developer CLI Commands 10 most important differences between OpenShift and Kubernetes Enterprise Kubernetes with OpenShift (Part one) Table of Contents OpenShift, Kubernetes, Docker Cheat sheet CLI Installation OpenShift CLI Installation Install and Set Up kubectl Basic Structure of OpenShift/Kubernetes definition file Login and Logout oc status Managing Projects Viewing, Finding Resources Taints and Tolerations Controlling Access & Managing Users Check Access oc describe oc export Managing pods Static Pods Managing Nodes PV & PVC - PersistentVolume & PersistentVolumeClaim oc exec - execute command inside a containe Events and Troubleshooting Help and Understand Applications Get Help Build from image Enable/Disable scheduling Resource quotas Labels & Annotations Limit ranges ClusterQuota or ClusterResourceQuota Config View Managing Environment Variables Security Context Constraints Services & Routes Scaling & AutoScaling of the pod - HorizontalPodAutoscaler Configuration Maps (ConfigMap) Creation of objects Reading config maps Dynamically change the config map Mounting config map as ENV The Replication Controller PersistentVolume PersistentVolumeClaim Deployments Deployment strategies Rolling Triggers Recreate Custom Lifecycle hooks Deployment Pod Resources Blue-Green deployments A/B Deployments Canary Deployments Rollbacks Pipelines Configuration Management Secrets Creation Using secrets in Pods ENV Adding Removing Change triggers OpenShift Builds Build strategies Build sources Build Configurations S2I Troubleshooting Integrated logging Simple metrics Resource scheduling Multiproject quota Essential Docker Registry Commands Private Docker Registry and Access Docker Commands Basic Networking Technical Jargons Points to Remember OpenShift 4 (to be moved to above sub-sections later) Cluster Details Check logs of systemd services Run commands on nodes Pod Logs Troubleshoting containers Debug levels StorageClass & Persistent Storage Networking Acronyms CLI Installation OpenShift CLI Installation oc command line tool will be installed on all master and node machines during cluster installation. You can also install oc utility on any other machines which is not part of openshift cluster. Download oc cli tool from : https://www.okd.io/download.html On a RHEL system with valid subscription you can install with yum as below. $ sudo yum install -y atomic-openshift-clients Many common oc operations are invoked using the following syntax: $ oc action object_type object_name_or_id Install and Set Up kubectl Download the latest release with the command: curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl Make the kubectl binary executable. chmod +x ./kubectl Move the binary in to your PATH. sudo mv ./kubectl /usr/local/bin/kubectl Test to ensure the version you installed is up-to-date: kubectl version Basic Structure of OpenShift/Kubernetes definition file (below one is a service definition) apiVersion: v1 kind: Service metadata: name: my-service spec: type: NodePort ports: - targetPort: 80 port: 80 nodePort: 30008 selector: app: myapp type: front-end Login and Logout oc login https://10.142.0.2:8443 -u admin -p openshift # Login to openshift cluster oc whoami # identify the current login oc whoami -t # get token oc whoami show-console # show console URL oc login -u system:admin # login to cluster from any master node without a password oc logout # logout from cluster oc status oc status -v # get oc cluster status oc types # to list all concepts and types Managing Projects oc get projects # list Existing Projects oc get project # Display current project oc project myproject # switch to a project oc new-project testlab display-name=’testlab’ description=’testlab’ # create a new project oc adm new-project testlab node-selector=’project101=testlab’ # create a new project with node-selector. # Project pods will be created only those nodes with a label "project101=testlab" oc delete project testlab # delete a project oc delete all all # delete all from a project oc delete all -l app=web # delete all where label app=web Viewing, Finding Resources oc get all # list all resource items -w watches the result output in realtime. oc process # process a template into list of resources. Taints and Tolerations kubectl taint nodes node1 app=blue:NoSchedule # Apply taint on node kubectl taint nodes node1 app=blue:NoSchedule- # untaint a node by using "-" at the end. Controlling Access & Managing Users oc create user USER_NAME # create a user oc adm add-role-to-user ROLE_NAME USERNAME -n PROJECT_NAME # add cluster role to a user # add-role-to-group - to add role to a group # add-cluster-role-to-user - to add cluster role to a user # add-cluster-role-to-group - to add cluster role to a group eg: oc adm add-role-to-user edit demo-user -n demo-project oc adm policy add-cluster-role-to-user cluster-admin develoer # add cluster-admin role to the user developer oc adm policy remove-cluster-role-from-group \ self-provisioner \ system:authenticated \ system:authenticated:oauth # remove role from a group oc get sa # list all service accounts oc get cluserrole # list all cluster rolesrole oc get rolebinding -n PROJECT_NAME # list all roles details for the project oc describe policybindings :default -n PROJECT_NAME # OCP 3.7show details of a project policy details oc describe rolebinding.rbac -n PROJECT_NAME # OCP 3.7show details of a project policy details oc describe user USER_NAME # details of a user oc adm policy who-can edit pod -n PROJECT_NAME # list details of access You can also create user with HTPasswdIdentityProvider module as below. htpasswd -b /etc/origin/master/htpasswd user1 password1 # create user1 # -b used to take password from command line rather than promopting for it. htpasswd -D /etc/origin/master/htpasswd user1 # -D deletes user1 Check Access kubectl auth can-i create deployments # check access kubectl auth can-i create deployments \ as user1 # check access for a user kubectl auth can-i create deployments \ as user1 \ namespace dev # check access for a user in a namespace oc describe oc describe node node1 # show deatils of a specific resource oc describe pod POD_NAME # pod details oc describe svc SERVICE_NAME # service details oc describe route ROUTE_NAME # route details oc export oc export RESOURCE_TYPE RESOURCE_NAME -o OUTPUT_FORMAT # export a definition of a resource (creating a backup etc) in JSON or YAML format. oc export pod mysql-1-p1d35 -o yaml oc export svc/myapp -o json Managing pods Get pods, Rollout, delete etc. oc get pods # list running pods inside a project oc get pods -o wide # detailed listing of pods oc get pod -o name # for pod names oc get pods -n PROJECT_NAME # list running pods inside a project/name-space oc get pods show-labels # show pod labels oc get pods selector env=dev # list pods with env=dev oc get po POD_NAME -o=jsonpath="{..image}" # get othe pod image details oc get po POD_NAME -o=jsonpath="{..uid}" # get othe pod uid details oc adm manage-node NODE_NAME list-pods # list all pods running on specific node oc rollout history dc/name # available revisions oc rollout latest hello # deploy a new version of app. oc rollout undo dc/name # rollback to the last successful deployed revision of your...
Domain Name: IAMGINI.COM Registry Domain ID: 2409280610_DOMAIN_COM-VRSN Registrar WHOIS Server: whois.cloudflare.com Registrar URL: http://www.cloudflare.com Updated Date: 2023-06-20T03:43:11Z Creation Date: 2019-07-04T01:26:16Z Registry Expiry Date: 2024-07-04T01:26:16Z Registrar: CloudFlare, Inc. Registrar IANA ID: 1910 Domain Status: clientTransferProhibited https://icann.org/epp#clientTransferProhibited Name Server: ALEXIS.NS.CLOUDFLARE.COM Name Server: DEMI.NS.CLOUDFLARE.COM DNSSEC: signedDelegation DNSSEC DS Data: 2371 13 2 844A70BBBEC387CDC4067ED1F8617CC753EB2AC0C3895CA8D73EB80C2CD695FA >>> Last update of whois database: 2024-05-18T03:44:22Z <<<