查询 API 资源的版本

  1. kubectl api-resources | grep deployment

image.png

查询资源 YAML 配置文件

kubectl explain deployment[.spec]

Deployment 模板

Job 模板

Cronjob 模板

Secret

Configmap

用于测试的 web 镜像

gcr.io/google-samples/hello-app:1.0 监听端口 8080 [X86_64适用]
https://github.com/phozzy/hello-app.git
https://cloud.google.com/kubernetes-engine/docs/tutorials/hello-app