Kubernetes and containers

These guides cover ACK cluster build, node pools and OpenTofu state, plus how cluster cost is allocated. They are not a Kubernetes getting-started course.

Who this topic is for

Platform engineers building Alibaba Cloud ACK, and FinOps teams who already run EKS, AKS, GKE or ACK and need chargeback that finance will accept.

Problems these pages cover

  • An ACK cluster is created before CIDRs, egress, encryption and state locking are decided.
  • The cluster invoice cannot be split by namespace or team.
  • Node-pool idle looks like application growth.

Recommended reading order

  1. Alibaba Cloud
  2. Building Secure Alibaba Cloud ACK Platforms
  3. Build a secure Alibaba Cloud ACK cluster with OpenTofu
  4. ACK node pools: subscription, Spot and autoscaling
  5. OpenTofu remote state and private GitOps on Alibaba Cloud
  6. What a cross-cloud security incident changed in a Kubernetes rebuild
  7. Cloud cost allocation fundamentals
  8. Kubernetes cost allocation

Source code: VigilesHQ Alibaba Cloud ACK repository

Guides in this topic

Ankit Mehta

OpenTofu remote state and private GitOps on Alibaba Cloud

Two people applying the same stack from two laptops will eventually both think they hold the latest state. One apply refreshes, the other writes an older serial, and a node pool disappears because the second plan never saw it. The fix is a private OSS object per stack and a TableStore row that only one OpenTofu process can hold. Do that before the migration. The first collision is too late.

Ankit Mehta

Alibaba Cloud ACK node pools: subscription, Spot and autoscaling

CoreDNS, the Terway daemon and the cluster autoscaler components have a different failure budget from the application. If a Spot node disappears, the API should reschedule. If the only node running CoreDNS disappears, every lookup in the cluster fails until a replacement is Ready. This page splits those two budgets for the private ACK cluster described in Build a secure Alibaba Cloud ACK cluster with OpenTofu.

Ankit Mehta

Build a secure Alibaba Cloud ACK cluster with OpenTofu

The example is a private API in ap-southeast-1, three zones, and pod egress that leaves nodes without a public address. The complete OpenTofu example is available in the VigilesHQ Alibaba Cloud ACK repository. VPC 172.21.0.0/16 and names such as vpc-example are stand-ins. A real apply uses the account GetCallerIdentity returns.

Ankit Mehta

Kubernetes cost allocation

The worksheet on this site is the Kubernetes cost allocation calculator. A spend jump on the cluster is Kubernetes cluster cost increase. The provider bills: It cannot see that namespace/payments used 30% of a node's CPU unless you export in-cluster usage and join it to the node SKU price. That join is cost allocation. The FinOps Framework calls this allocation. It is not the same as a discount.

Related runbooks

Related tools

Consulting

Scoped review for this topic: FinOps consulting.