0% found this document useful (0 votes)
46 views1 page

Scaleway Kubernetes Cheatsheet 1

Uploaded by

Nabil CHERQAOUI
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views1 page

Scaleway Kubernetes Cheatsheet 1

Uploaded by

Nabil CHERQAOUI
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Kubernetes Cheatsheet

What is Kubernetes Viewing and finding DEPLOYMENTS EVENTS ROLES PERSISTENT VOLUME CLAIM
Kapsule and resources # Display all deployments information # Display all events information # Display all roles information within all # Display all persistent volume claim
Kubernetes Kosmos? NODES
kubectl get deploy kubectl get events
namespaces information
kubectl get roles --all- kubectl get pvc
Kubernetes is an open-source platform # Display deployments details # Display events information within the namespaces
# Display all node information
namespace kube-system # Display all persistent volume claim details
that enables developers to manage their kubectl describe deploy
kubectl get no
containerized applications. Kapsule and kubectl get events -n kube-system kubectl describe pvc
Kosmo both provide a managed # Show more information about all nodes # Show more information about all SECRETS
environment for creating, configuring,
deployments # Lists the specific resources' events or the
and running clusters of pre-configured kubectl get no -o wide entire cluster # Display all secrets information
kubectl get deploy -o wide
machines.
 kubectl get events -w kubectl get secrets STORAGE CLASS
Kapsule clusters are composed solely of # Display node details with verbose output
# Display all storage class information
Scaleway Instances whereas Kosmos is a kubectl describe no # Display all secrets information within all
managed Multi-Cloud Kubernetes Engine SERVICES namespaces kubectl get sc
that allows you to connect Instances and # Filter the node with the specified label LOGS kubectl get secrets --all-
virtual or dedicated servers from any # Display all services information
kubectl get node -- # Display all logs information of a specific pod namespaces
cloud provider to a single managed selector=[label_name] kubectl get svc
Control-Plane. kubectl logs [pod_name] MULTIPLE RESOURCES
# Display node (CPU/memory) usage # Display services details # Display all services and pods information
# Display all logs information of a specific pod CONFIG MAPS
kubectl top node [node_name] kubectl describe svc for the past hour kubectl get svc, po
Creating resources # Show more information about all services kubectl logs --since=1h
# Display all config maps information
# Display all deploys and nodes information
# Create resource(s) from file [pod_name] kubectl get cm
kubectl get svc -o wide
kubectl apply -f [manifest].yaml PODS # Display all logs information of a specific pod
kubectl get deploy, no
# Display all config maps within all
# Display all container group information # Display a pod’s label in a specific container namespaces # Display all the pods, services, statefulsets,
kubectl get svc --show-labels kubectl logs -f -c etc. in a namespace. Not all the resources are
kubectl get po kubectl get cm --all-namespaces listed using this command.
Updating resources # Show more information about all pods
[container_name] [pod_name]
kubectl get all
# Apply a taint that has a key-value of # Transfer all logs information of a specific
kubectl get po -o wide pod in the pod.log file
taint=test with a NoSchedule effect DAEMON SETS INGRESS # Display all the pods, services, statefulsets,
etc. in all namespaces. Not all the resources
kubectl taint nodes [node-name] # Display pod details with verbose output # Display all daemon sets information kubectl logs [pod_name] > pod.log are listed using this command.
# Display all ingress information
taint=test:NoSchedule
kubectl describe po kubectl get ds kubectl get ing kubectl get all --all-namespaces
# Mark node as unschedulable
# View the labels of the container group # Display the detailed state of daemonsets SERVICE ACCOUNT # Display all ingress information within all
kubectl cordon [node-name] within all namespace namespaces
kubectl get po --show-labels # Display all service account information
# Mark node as schedulable kubectl describe ds --all- kubectl get ing --all-namespaces
# Display pod usage (CPU/memory) namespaces kubectl get sa
kubectl uncordon [node-name]
kubectl top pod [pod_name] # Display the detailed state of daemonsets
# Drain node in preparation for maintenance within a namespace
PERSISTENT VOLUMES
kubectl drain [node-name] kubectl describe ds REPLICA SETS
[daemonset_name] -n # Display all persistent volumes information
NAMESPACE [namespace_name] # Display all replica sets information
kubectl get pv
# Display all namespace information kubectl get rs
kubectl get ns # Display persistent volumes details
# Display replicat sets details
kubectl describe pv
# Display namespace details kubectl describe rs
kubectl describe ns
# Show more information about replica sets
kubectl get rs -o wide

You might also like