Skip to main content

A simple tool to create ephemeral AKS Clusters

Project description

Kina - Kubernetes in Azure

Inspired by kind, Kina aims to spawn Kubernetes clusters in Azure and add them to your local kubectl config with minimal fuss.

[!WARNING] These clusters are not suitable for production workloads and have several developer features enabled by default.

Installation

Kina is managed via uv. While tools like pip or pipx may work, only uv is officially supported.

$ uv tool install kina

If this is your first time using uv, make sure it's tools directory is in your PATH, e.g. ~/.local/bin.

Usage

Create an AKS Cluster

[!TIP] Kina reads your ~/.azure/azureProfile.json for configuration, specifically using the currently active Subscription ID as the base for resource creation.

$ kina create

This creates a Kubernetes cluster in uksouth using the latest version and sensible defaults for local development. You can override the location with the --location flag:

Create Multiple VNet-Peered AKS Clusters

To test multi-cluster service meshes (e.g. Linkerd, Istio) or eBPF-based solutions like Cilium, you can spawn multiple VNet-peered clusters:

$ kina create --locations="uksouth,ukwest,northeurope,westeurope"

Kina assigns IP ranges as follows:

  • Virtual Network CIDR: 10.0.0.0/16
  • Pod CIDR: 10.1.0.0/16
  • Service CIDR: 10.2.0.0/16

Subsequent locations increment accordingly:

  • Virtual Network CIDR: 10.3.0.0/16
  • Pod CIDR: 10.4.0.0/16
  • Service CIDR: 10.5.0.0/16

And so on.

Listing Kina Instances

List your Kina clusters with: $ kina list

You can specify output formats using --output, e.g. table, json, or names.

$ kina list
┏━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Name         Location(s)  Created By                       Created At           Status   ┃
┡━━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ kina-1eoyoe  uksouth      example@example.onmicrosoft.com  2025-05-12 16:12:19  Creating │
└─────────────┴─────────────┴─────────────────────────────────┴─────────────────────┴──────────┘

$ kina list -o json
[
  {
    "name": "kina-1eoyoe",
    "locations": "uksouth",
    "created_by": "example@example.onmicrosoft.com"
  }
]

$ kina list -o names
kina-1eoyoe

FAQs

Q: Sometimes I get a DNS lookup failure, e.g. Unable to connect to the server: dial tcp: lookup kina-277rtg-uksouth-ey6vbz58.hcp.uksouth.azmk8s.io: no such host:

A: Because we create the AKS Clusters asynchronously, sometimes we've actually configured kubectl before Microsoft has published a DNS record for the cluster. Wait a few minutes and try again.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kina-1.4.2.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kina-1.4.2-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file kina-1.4.2.tar.gz.

File metadata

  • Download URL: kina-1.4.2.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.8.0

File hashes

Hashes for kina-1.4.2.tar.gz
Algorithm Hash digest
SHA256 75042244a34015879567c7bdcab3408d5ce8255282165957da7aff3ccd89d673
MD5 afdbacba02570bc9feb3000a8454a8a5
BLAKE2b-256 7378dd7f21a0b29016db3557b2c77770686849517a1365f8e0cef982d9b94d61

See more details on using hashes here.

File details

Details for the file kina-1.4.2-py3-none-any.whl.

File metadata

  • Download URL: kina-1.4.2-py3-none-any.whl
  • Upload date:
  • Size: 14.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.8.0

File hashes

Hashes for kina-1.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6b0acec1bcf25d87c50a88809b6beb5cc38a98c35a08b4cd3cc606e57864ee20
MD5 c4368b43e554b7008b12b353af4ea3e1
BLAKE2b-256 729cb35826bfc9c2ee05ae01a5b2f88ea4d53985055ba861efb276a5706d9d24

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page