Skip to main content

4 posts tagged with "Kubernetes"

View all tags

Kubernetes The Hard Way: Workers

· 8 min read

Kubernetes THW: Workers #

Continuing Kubernetes The Hard Way: adding worker nodes to the cluster.

In the previous article we assembled the control plane manually: issued certificates, prepared configurations, and launched the management components. The API server is responding, but the cluster still has no worker nodes.

Without worker nodes there is nowhere to run application pods. In this article we will add a Worker node and walk through the entire path from a bare VM to a registered Kubernetes node.

The format is the same as in the first part: prepare the OS, install containerd and kubelet, set up cluster connectivity, and verify node registration. Two approaches are covered: the manual path via bootstrap tokens and the CSR API, or the standard kubeadm join route.

Kubernetes The Hard Way

Kubernetes pods/exec

· 8 min read

Kubernetes pods/exec #

pods/exec is a convenient way to execute commands inside a container for debugging and administration. But here's a challenge right off the bat: how safe do you think the following Kubernetes role is — one that could be granted to any user, assuming the absurd scenario that the Secret resource is not used in the cluster?

pods/exec audit
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: test-role
rules:
- apiGroups: [""]
resources: ["*"]
verbs: ["get"]

If you answered "safe," you're not alone — and you would have granted pods/exec access to any user in the cluster, provided you also created a ClusterRoleBinding on top of it.

Kubernetes Audit

· 14 min read

Kubernetes Audit #

Continuing the Kubernetes article series in a new format.

Kubernetes is a powerful interaction interface via gRPC and REST API, but it requires significant effort to ensure security and protection against unauthorized access. One of the key tools for this is the audit system, which allows you to track all actions in the cluster. In this article, we will cover the basics of configuring audit in Kubernetes, its capabilities, and configuration examples that will help you build an effective audit policy for your cluster.

audit

Kubernetes The Hard Way

· 13 min read

Kubernetes The Hard Way #

Resuming the Kubernetes article series in a new format.

This article describes the overall experience of manually deploying Kubernetes without using automated tools such as kubeadm. The presented approach is consistent with our documentation, which we maintain according to best practices and IAC methodologies.

All configuration provided below exactly replicates the behavior of kubeadm. As a result, the final cluster is hard to distinguish — whether it was assembled using kubeadm or manually.

comics