Skip to main content

K8sToAzureContainerApp

Overview

K8sToAca is a Python tool designed to streamline the process of transitioning Kubernetes namespaces into Azure Container App environments. Leveraging the Kubernetes API, this tool retrieves all deployment objects within the specified namespace and generates Azure Container Apps deployment in YAMLs, JSON or Terraform(in Beta). Additionally, it provides a shell script containing commands necessary for deploying the generated deployment files using the Azure CLI.

Parameters

Parameter Mandatory Description
namespace True The Kubernetes namespace to be migrated.
context True The name of the Kubernetes config context for the cluster.
aca_resource_group True The Azure Resource Group where the Container App Environment exists.
aca_environment True The name of the Azure Container App Environment.
output False Output format values (yaml, json, terraform). Terraform output is in preview. Default value: yaml
outputpath False Output folder. Default value: current path

Features

K8sToAzureContainerApp can generate deployment scripts in YAML format from a specified Kubernetes namespace. Currently, it supports migrating the following objects:

  • POD:
    • Deployment
    • Pod
    • Horizontal Pod Autoscaler
  • Configuration:
    • Secrets
  • Storage:
    • Volumes
  • Network/Exposure:
    • Ingress
    • Service
    • Endpoint

Installation

You can install K8sToAca using pip:

  1. pip install: Run the following command:

    pip3 install k8s-to-azure-container-app
    
  2. Generate a package:

    Alternatively, you can download the source code and follow these steps for a manual installation:

    pip install -e .
    

Usage

Run K8sToAca using the following command:

K8sToAca --namespace my_name_space --context cluster_context --aca_resource_group target_resource_group --aca_environment target_container_app_environment_name

Replace the placeholders with your actual values.

Deploy to Azure deployment script:

./deployment.sh 

Recomendation

Install Azure CLI using https://learn.microsoft.com/en-us/cli/azure/install-azure-cli

Ensure your Azure CLI and the Azure Container Apps extension are up to date by executing the following commands:

az upgrade
az extension add -n containerapp --upgrade

License

This tool is licensed under the MIT License. See the LICENSE file for more information.

Metadata

Release files for k8s-to-azure-container-app 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for k8s-to-azure-container-app 0.1.0
File Size Uploaded Provenance Actions
k8s_to_azure_container_app-0.1.0.tar.gz 10.9 kB Without provenance Details for k8s_to_azure_container_app-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for k8s-to-azure-container-app 0.1.0
File Interpreter ABI Platform Actions
k8s_to_azure_container_app-0.1.0-py3-none-any.whl Python 3 none any Details for k8s_to_azure_container_app-0.1.0-py3-none-any.whl

Total release size: 24.7 kB

Release files / k8s_to_azure_container_app-0.1.0.tar.gz

Download URL k8s_to_azure_container_app-0.1.0.tar.gz
Size 10.9 kB
Tags Source
SHA-256 checksum
How to use checksums
eb36d37ec8755225fb972838deeac266724a68764a9617f3772c6388a51aaa3b
BLAKE2b-256 checksum
How to use checksums
68e9a9bd445d324c172563f27232ec58fe6237fc4b1bf5644b79c71d2e843e06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.4

Release files / k8s_to_azure_container_app-0.1.0-py3-none-any.whl

Download URL k8s_to_azure_container_app-0.1.0-py3-none-any.whl
Size 13.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d5892ef947436e5841da562aee9e34e136e4eb6e01cb1198acb61863834a48a7
BLAKE2b-256 checksum
How to use checksums
5a36bf4df271f232640b645c72ddcfbf17b8187217225f1ecefd1c5fb933ac3a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.4

Security for k8s-to-azure-container-app 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page