|
pod
|
Group of containers that are deployed together on the same host
|
|
service
|
Abstraction which defines a logical set of pods and a policy by which to access them
|
|
node
|
Worker machine in the cluster
|
|
configmap
|
Public configuration data in the form of a key-value pair
|
|
secret
|
Private configuration data
|
|
job
|
Creates pod(s) and ensures that a specified number successfully terminate
|
|
cronjob
|
Time-based job
|
|
ingress
|
API object that manages external access to the services in a cluster, typically HTTP.
|
|
deployment
|
Desired state of pods for declarative updates
|
|
daemonset
|
Specification that requires a particular pod to be run on some or all nodes
|
|
replicaset
|
Requirement that a specified number of pods are running at any given time
|
|
persistentvolume
|
Persistent storage in the cluster with an independent lifecycle
|
|
persistentvolumeclaim
|
Request for storage (for a
PersistentVolume) by a user |
kubectl proxy |
Proxy the api server API to your local machine on port 8001
|
kubectl port-forward {pod_name} {local_port}: {remote_port} |
Forward the pod port to your local port
|
kubectl scale --replicas=3 {resource_type}/{resource_name } |
Scale given resource
|
kubectl get --all-namespaces {object_type} |
Get objects from all namespaces
|
kubectl describe {object_type} |
Describes the given objects
|
kubectl get services --sort-by=.metadata.name |
List services sorted by name
|
kubectl get pods --field-selector=status.phase=Running |
Get list of running pods
|
kubectl get events |
Show events
|
kubectl apply -f ./mymanifest.yaml |
Apply a configuration to a object by filename or stdin. Also overrides the existing configuration.
|
kubectl create -f ./mymanifest.yaml |
Create object(s)
|
kubectl create -f ./dir |
Create object(s) in all manifest files in dir
|
kubectl create -f https://git.io/vPi eo |
Create from url
|
kubectl run nginx --image=nginx |
Start a single instance of nginx
|
kubectl replace -- force -f ./pod.json |
Force replace, delete and then re-create the resource. Will cause a service outage.
|
kubectl edit svc/dockerregistry |
Edit the service named docker-registry
|
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.