Resource
Basic Deployment
1 | apiVersion: apps/v1beta2 # for versions before 1.8.0 use apps/v1beta1 |
Deployment
1 | apiVersion: apps/v1beta2 # for versions before 1.8.0 use apps/v1beta1 |
Pod
1 | apiVersion: v1 |
Pod & Node Selector
1 | apiVersion: v1 |
Service
1 | apiVersion: v1 |
StatefulSet
1 | apiVersion: apps/v1beta1 |
ConfigMap
1 | # kubectl create configmap game-config --from-file=docs/user-guide/configmap/kubectl |
Secret
1 | apiVersion: v1 |
ResourceQuota
1 | apiVersion: v1 |
LimitRange
1 | apiVersion: v1 |
Namespace & LimitRange
1 | apiVersion: v1 |
Namespace
1 | apiVersion: v1 |
PersistentVolumeClaim
1 | kind: PersistentVolumeClaim |
Knative Service
1 | apiVersion: serving.knative.dev/v1alpha1 |
Storage
Aliyun Disk
1 | apiVersion: v1 |
Aliyun NAS
1 | apiVersion: v1 |
Aliyun NAS provisioner
1 | apiVersion: storage.k8s.io/v1 |
Aliyun OSS
1 | apiVersion: v1 |
Ceph RBD
1 | apiVersion: v1 |
NFS
1 | apiVersion: v1 |
Permission
Grant user permissions
1 | apiVersion: rbac.authorization.k8s.io/v1 |
Role
1 | kind: Role |
RoleBinding
1 | apiVersion: rbac.authorization.k8s.io/v1 |
Service Account
1 | apiVersion: v1 |
Service Account Secret
1 | apiVersion: v1 |