Node Cheat Sheet



Resource

Related

Basic

Node Management: create-node-config Create a configuration bundle for a node manage-node Manage nodes - list pods, evacuate, or mark ready cordon Mark node as unschedulable uncordon Mark node as schedulable drain Drain node in preparation for maintenance taint Update the taints on one or more nodes pod-network Manage pod network Maintenance. The Node.js environment has a global object that contains every Node-specific global property. The global object can be accessed by either typing in console.log(global) or global in the terminal after RPL is running. In order to see just the keys Object.keys(global) can be used. Since global is an object, new properties can be assigned to it via global.nameofproperty = 'valueofproperty'. Swift 3d for mac. A Node is a data structure that stores a value that can be of any data type and has a pointer to another node. The implementation of a Node class in a programming language such as Python, should have methods to get the value that is stored in the Node, to get the next node, and to set a link to the next node.

Global Objects

Server-sideio.on('connection', (socket) = // basic emit socket.emit(/./); // to all clients in the current namespace except the sender socket.broadcast.emit. Few commands to speed up development using Node.js. We are what we repeatedly do. Excellence, then, is not an act, but a habit.

console

Timers

Util

Module

Modules

Addons

Buffer/Stream

Buffer

Stream

TTY

Process/Events

Process

Events

Domain

Domain

Crypto

TSL(SSL)

StringDecoder

File

File System

Net

net

UDP / Datagram Sockets

Sheet

DNS

Text

Path

Blender node cheat sheet

Query String

punnycode

Node

Readline

HTTP

http

Class: http.Server

Class: http.ServerRequest

Class: http.ServerResponse

Class: http.Agent

Class: http.ClientRequest

http.ClientResponse

HTTPS

URL

Code

Executing JS

Child Process

Assert

System

Zlib

os

Debugger

Node Cheat Sheet

Cluster

3rd Party

Third Party Modules

  • Module Installer: npm
  • HTTP Middleware: Connect
  • Web Framework: Express
  • Web Sockets: Socket.IO
  • HTML Parsing: HTML5
  • mDNS/Zeroconf/Bonjour/li>
  • Serialization: msgpack
  • Scraping: Apricot
  • Debugger: ndb is a CLI debuggerinspector is a web based tool.
  • Testing/TDD/BDD: vows,mocha,mjsunit.runner


  • PDF Link: cheatsheet-openshift-A4.pdf, Category: Cloud
  • Blog URL: https://cheatsheet.dennyzhang.com/cheatsheet-openshift-A4
  • Related posts: PKS CheatSheet, Kubectl CheatSheet, #denny-cheatsheets

File me Issues or star this repo.

1.1 OpenShift FAQ

NameSummary
Kubernetes versions for different OpenShift versionsopenshift 3.9, openshift 3.10, openshift 3.11

1.2 OpenShift Key Components

NameCommand
Computing virtualizationRHV (Red Hat Virtualization), based on KVM
SDN networkingBased upon OVS
VM/Cluster lifecycle managementCloudForms ?
Node healingNotification of failed components but no recovery
Container optimized OS
Container Image Compliance ScanCloudForms OpenSCAP, like Harbor Clair
Container runtimedockerd, cri-o
Container image registryOpenShift Container Registry (OCR), powered by Redhat Quay
Packages k8s cluster orchestratortectonic ?
Component PackagingAnsible modules?
CSI for Persistent volumeGlusterFS, NFS, Local storage
AuthorizationOpenShift Container Platform policy engine
Disater RecoveryNotification of failed components but no recovery
Control Plane
ReferenceLink: OpenShift Container Platform Cluster Limits
ReferenceLink: OpenShift Key Components, Link: PKS Key Components

1.3 New Concepts From OpenShift

NameCommand
BuildConfig
Source2Image(s2i)
TemplatesLike helm chart
PipelinesJenkins
Fine grained security policies OOTBLike k8s psp
Security Context Contraints(SCC)
Red Hat Container Catalog (RHCC)
RouteLike k8s ingress
Metering and Chargeback
Operator SDK

1.4 OpenShift Solutions

NameCommand
OpenShift OnlineHosted by Red Hat in AWS public cloud
OpenShift DedicatedVirtual private cloud, managed by Red Hat in any AWS region
OpenShift Container PlatformAny on-premise, public, or private cloud infra with RedHat Enterprise Linux
OKD
Minishift
ReferenceLink: OpenShift plans and pricing

1.5 OpenShift Glossary

NameCommand
OKDThe Origin Community Distribution of Kubernetes that powers Red Hat OpenShift.
oc command lineOpenShift command line: oc <action> <object_type> <object_name_or_id>
ProjectNamespace in Kubernetes. Resources are aggregated by projects. oc get project
BuildBuilds create a new image from source code, other images, Dockerfiles, etc. oc get build
Build ConfigurationHow to build source code and a base image into a new image. oc get bc
RouteEndpoint in Kubernetes. A route is an external DNS entry
Deployment Configurationoc get dc
ImageStreamoc get is
ImageStreamTagoc get istag
ImageStreamImageoc get isimage
Templateoc get template
Template Instanceoc get templateinstance
ExplainOnline manual oc explain pod
Red Hat RegistryBy default, all images are pulled from registry.redhat.io.
OpenShift SaaS Versionhttps://openshift.io/
OpenShift onlinehttps://cloud.openshift.com
Reference
ReferenceOpenShift CheatSheet, Rancher CheatSheet, PKS CheatSheet

1.6 OpenShift Assumptions

NameSummary
Single instance of K8SOne OpenShift One K8S. Use k8s namespace soly for multi-tenancy
No mixed versionsVersions must match between master and node hosts, excluding upgrade; Old oc can talk to new servers
Node rolesMaster nodes, worker nodes, and etcd nodes.

1.7 OpenShift Maintainance

NameCommand
Install clustersRun ansible playbooks to install OpenShift
Upgrade clustersSupport both in-place upgrade and blue-green deployments; Use ansible to upgrade clusters
Node problem healing

1.8 OpenShift Cfg Files

NameSummary
The default image stream and template files/usr/share/openshift/examples/, /etc/origin/examples/
Data folder for master and worker nodes/var/lib
Volumes and potential core dumps of the binary/var/lib/origin
Cloud provider specific conf(AWS, Azure, etc)/etc/origin/cloudprovider
Additional third party volume plug-ins/usr/libexec/kubernetes/kubelet-plugins, /etc/origin/kubelet-plugins
All certificates, conf files, admin.kubeconfig, etc/etc/origin/master
Master node conf profile/etc/origin/master/admin.kubeconfig
Used for node bootstrapping nodes other than master/etc/origin/master/bootstrap.kubeconfig
Node conf profile/etc/origin/node/node.kubeconfig, /etc/origin/node/node-config.yaml

1.9 OC – Highlights

NameCommand
Get api requests verbose output with kubectl calloc --loglevel 999 get pod/dummy-deployment-6d6759c786-5kwth
Start a pod and get a shell for debugoc debug dc/jorge
Impersonate for oc commandoc --as=jorge get pods, oc --as-group=developers get pods
Use oc to do admin operationsoc adm <sub-command>
Try experimental commands of ococ ex <sub-command>
Explain OpenShift/Kubernetes concepts to meoc explain pod, oc explain replicaset
Enable oc shell autocompletionecho 'source <(oc completion zsh)' >>~/.zshrc, then reload terminal
ReferenceOpenShift CheatSheet, Kubectl CheatSheet

1.10 OC – Admin

NameCommand
Login/logoutoc login, oc logout, oc whoami
List routeoc get route
List all object typesoc types, oc api-resources
Start a local OpenShift all-in-one clusteroc cluster up

1.11 OC – Developer

NameCommand
Create a projectoc new-project <projectname> --description=<description> --display-name=<display_name>
Check status of current projectoc statusLink: OC CLI Operations
Show oc cli profileoc config viewLink: Managing CLI Profiles
Get all resourceoc get all
Switch projectoc project <projectname>
Create an applicationoc new-app https://github.com/sclorg/cakephp-ex
Create a new buildoc new-build https://github.com/sclorg/cakephp-ex
Manually start a build with given confoc start-build <buildconfig_name>
Stop a build that is in progressoc cancel-build <build_name>
Import an external imageoc import-image <image_stream>
Tag an imageoc tag <current_image> <image_stream>

1.12 OpenShift Source Code

NameCommand
Openshift Ansible DeploymentGitHub: openshift-ansible/playbooks

1.13 OpenShift Opportunty

NameCommand
Doesn’t support multiple clusters
OC command line could be a strengh or a weakness
Lack of SDN solution
Time-consuming for administrators’ operations

1.14 OpenShift CLI Help All

1.15 OpenShift CLI Help Admin

Node Js Cheat Sheet

1.16 More Resources

Blender Node Cheat Sheet

License: Code is licensed under MIT License.

Node Js Cheat Sheet Pdf

Office for 365 mac.