kubernetes defined resource list
Workload and Resource (Workload):
Pod ReplicaSet Deployment StatefulSet DaemonSet the Job CronJob (ReplicationController in v1.11 version is discarded)
service discovery and resource load balancing type:
ServiceDiscovery LoadBalance Service Ingress, ...
configuration and storage resource type:
Volume (storage volume) the CSI (container storage interface, a variety of third party can be expanded storage volume)
a special type of storage volumes:
the ConfigMap (when the resource type) Secret distribution center used to (store sensitive data) DownwardAPI (the external environment information output to the container)
these resources are configured in the namespace level
cluster-level resource:
the namespace the Node role ClusterRole RoleBinding (role bindings) ClusterRoleBinding (cluster role bindings A)
metadata type resources:
HPA (Pod horizontal scaling) PodTemplate ( Pod template, a template) LimitRange allow the controller to be used when create Pod (used to define the hardware resource constraints)
Inventory Format
1.apiVersion: v1 #kubectl get api-versions stable稳定版 阿尔法内测版 β公测版
2.kind: pod 资源类别
3.metadata:元数据
name: demo
namespace:
labels:标签
4.spec:期望状态
5.status: 当前状态
kubectl explain.pod.
<obeject>对象
<string>字符串 <map [string]string>
required必选字段
列表 [,]
映射 {,}