Skip to main content

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

  1. PodNamespace
  2. Service
  3. Namespace
  4. ConfigMap
  5. Secret
  6. Secret
  7. PersistentVolume (PV)
  8. PersistentVolumeClaim (PVC)
  9. ReplicationController
  10. ReplicationControllerNode
  11. Event
  12. NodeEndpoint
  13. LimitRange
  14. EventResourceQuota
  15. Endpoint
  16. LimitRange
  17. ResourceQuota

Workload-Ressourcen:

  • Deployment

  1. DeploymentReplicaSet
  2. ReplicaSetStatefulSet
  3. StatefulSetDaemonSet
  4. DaemonSetJob
  5. JobCronJob
  6. CronJob

Networking-Ressourcen:

  • Ingress

  1. IngressNetworkPolicy
  2. 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