← Kubernetes for Go developers

KUBERNETES TUTORIAL · KUBECTL SIMULATOR · 5 LESSONS

Configuration, secrets, storage and access

ConfigMaps and Secrets as environment and files, PersistentVolumeClaims and StorageClasses, namespaces and quotas, ServiceAccounts and RBAC.

  1. ConfigMaps: settings for pods through env, envFrom and mounted files

    Store non-secret settings in a ConfigMap, consume them as environment variables or files, diagnose a missing ConfigMap or key, and roll pods so that they pick up a change.

    6 min · Worked lesson

  2. Secrets: credentials for pods, and why base64 is not protection

    Create Secrets from literals or stringData, deliver them as variables or files, and name the controls that actually keep them confidential: RBAC, encryption at rest, external managers and careful logging.

    6 min · Worked lesson

  3. Volumes and persistent storage: emptyDir, PersistentVolumeClaims and StorageClasses

    Choose between ephemeral and persistent volumes, request storage with a PersistentVolumeClaim, read binding and provisioning status, and diagnose a pod stuck Pending on its claim.

    5 min · Worked lesson

  4. Namespaces, ResourceQuotas and LimitRanges: dividing one cluster between teams

    Use namespaces to scope names, access and policy, tell which objects are cluster-wide, cap a team's consumption with ResourceQuota and LimitRange, and delete a namespace knowing what goes with it.

    5 min · Worked lesson

  5. RBAC: ServiceAccounts, Roles and bindings for least-privilege API access

    Tell authentication from authorization, grant a ServiceAccount exactly the verbs it needs with a Role and RoleBinding, verify the result with kubectl auth can-i, and call the API from Go with the pod's own identity.

    6 min · Worked lesson