Kubernetes Resources
In Kubernetes, resources are like Lego blocks that represent objects you use to build and manage your cluster. Each resource is an object with metadata (like names and labels) and a desired state that tells Kubernetes what to do and stored the in etcd store. For example, a Pod resource defines how to run a group of containers, while a Service resource manages network access to those containers. Everything you can manage with kubectl
or the Kubernetes API - like workloads, storage, or configuration - is a resource, making them essential for defining and controlling your cluster's behavior.
The following command will print out all relevant resources kubectl api-resources
The most relevant resources for the KCNA exam are marked red
Core-Ressourcen:
- Pod
- Namespace
- Service
- Namespace
- ConfigMap
- Secret
- PersistentVolume (PV)
- PersistentVolumeClaim (PVC)
- ReplicationController
- Node
- Event
- Endpoint
- LimitRange
- ResourceQuota
Workload-Ressourcen:
- Deployment
- ReplicaSet
- StatefulSet
- DaemonSet
- Job
- CronJob
Networking-Ressourcen:
- Ingress
- NetworkPolicy
Storage-Ressourcen:
- StorageClass
- Volume
- VolumeAttachment
Policy-Ressourcen:
- PodDisruptionBudget (PDB)
- PodSecurityPolicy (PSP)
- NetworkPolicy
Custom Resource Definitions (CRDs):
- CustomResourceDefinition
- APIService
Cluster-spezifische Ressourcen:
- ClusterRole
- ClusterRoleBinding
- Role
- RoleBinding
- PriorityClass
Autoscaling-Ressourcen:
- HorizontalPodAutoscaler (HPA)
- VerticalPodAutoscaler (VPA)
- ClusterAutoscaler (extern, aber häufig verwendet)
Monitoring- und Debugging-Ressourcen:
- Probe (Liveness, Readiness, Startup)
- Metrics (via Metrics Server)
- AuditPolicy