Coursera 笔记

Module 02 · Kubernetes Basics

Module 2 Cheat Sheet: Understanding Kubernetes Architecture模块 2 速查表:理解 Kubernetes 架构

Coursera ↗

Command  命令 Description  描述
for …do Runs a for command multiple times as specified.
按照指定次数多次运行 for 命令。
kubectl apply Applies a configuration to a resource.
将配置应用于资源。
kubectl config get-clusters Displays clusters defined in the kubeconfig.
显示 kubeconfig 中定义的集群。
kubectl config get-contexts Displays the current context.
显示当前上下文。
kubectl create Creates a resource.   创建资源。
kubectl delete Deletes resources.   删除资源。
kubectl describe Shows details of a resource or group of resources.
显示资源或资源组的详细信息。
kubectl expose Exposes a resource to the internet as a Kubernetes service.
将资源作为 Kubernetes 服务暴露给互联网。
kubectl get Displays resources.   显示资源。
kubectl get pods Lists all the Pods.
列出所有 Pod。
kubectl get pods -o wide Lists all the Pods with details.
列出所有 Pod 的详细信息。
kubectl get deployments Lists the deployments created.
列出创建的部署。
kubectl get services Lists the services created.
列出创建的服务。
kubectl proxy Creates a proxy server between a localhost and the Kubernetes API server.
在本地主机和 Kubernetes API 服务器之间创建一个代理服务器。
kubectl run Creates and runs a particular image in a pod.
在一个 Pod 中创建并运行特定的镜像。
kubectl version Prints the client and server version information.
打印客户端和服务器版本信息。