This is repository has all kubernetes practise files
-
Top level field:
apiVersion: // String field refer below table for values kind: // String field refer below table for values metadata: // Dictionary type name: myapp-pod // String type labels: // Dictionary type app: myapp type: front-end spec: // Dictionary type containers: // list/array - name: container_name image: image_name
Possible values for apiVersion and kind
Kind Version Pod v1
PodTemplate v1
ReplicationController v1
ReplicaSet apps/v1
Deployment apps/v1
StatefulSet apps/v1
ControllerRevision apps/v1
DaemonSet apps/v1
Job batch/v1
CronJob batch/v1
HorizontalPodAutoscaler autoscaling/v1
HorizontalPodAutoscaler autoscaling/v2beta2
PriorityClass scheduling.k8s.io/v1
Service v1
Endpoints v1
EndpointSlice discovery.k8s.io/v1
Ingress networking.k8s.io/v1
IngressClass networking.k8s.io/v1
ConfigMap v1
Secret v1
PersistentVolumeClaim v1
PersistentVolume v1
StorageClass storage.k8s.io/v1
VolumeAttachment storage.k8s.io/v1
CSIDriver storage.k8s.io/v1
CSINode storage.k8s.io/v1
CSIStorageCapacity storage.k8s.io/v1beta1
ServiceAccount v1
TokenRequest authentication.k8s.io/v1
TokenReview authentication.k8s.io/v1
CertificateSigningRequest certificates.k8s.io/v1
LocalSubjectAccessReview authorization.k8s.io/v1
SelfSubjectAccessReview authorization.k8s.io/v1
SelfSubjectRulesReview authorization.k8s.io/v1
SubjectAccessReview authorization.k8s.io/v1
ClusterRole rbac.authorization.k8s.io/v1
ClusterRoleBinding rbac.authorization.k8s.io/v1
Role rbac.authorization.k8s.io/v1
RoleBinding rbac.authorization.k8s.io/v1
LimitRange v1
ResourceQuota v1
NetworkPolicy networking.k8s.io/v1
PodDisruptionBudget policy/v1
PodSecurityPolicy policy/v1beta1
CustomResourceDefinition apiextensions.k8s.io/v1
MutatingWebhookConfiguration admissionregistration.k8s.io/v1
ValidatingWebhookConfiguration admissionregistration.k8s.io/v1
Node v1
Namespace v1
Event events.k8s.io/v1
APIService apiregistration.k8s.io/v1
Lease coordination.k8s.io/v1
RuntimeClass node.k8s.io/v1
FlowSchema flowcontrol.apiserver.k8s.io/v1beta1
PriorityLevelConfiguration flowcontrol.apiserver.k8s.io/v1beta1
Binding v1
ComponentStatus v1