| Component | Version |
|---|---|
| Ansible | v2.22.0rc2 |
| cert-manager CLI | v2.6.2 |
| Helm | v4.3.1 |
| K9s | v0.51.0 |
| Kops | v1.37.0-beta.1 |
| Kpt | v1.0.2-pre.2 |
| Kubectl | v1.38.0-alpha.3 |
| Kustomize | 5.8.3 |
| OpenTofu | 1.13.2 |
| Sofka | v0.33.0 |
| SwarmCLI | v2.2.1 |
| Terraform | 1.17.1 |
| Terragrunt | v1.2.1 |
| UpCloud CLI | v3.37.0 |
🔄 Last updated: 2026-10-28T20:17:48+01:00 · Build #187
This repository provides a fully automated preparation of containerized UpCloud environment using Docker-in-Docker architecture.
| Tool | Description |
|---|---|
| Ansible CLI | Configuration management and automation |
| UpCloud CLI | Official UpCloud command-line interface (upctl) |
| cert-manager CLI | cert-manager CLI |
| CNPG CLI | CloudNativePG CLI |
| Docker CLI | Container management CLI |
| HELM CLI | Kubernetes package manager |
| kops CLI | Kubernetes cluster management |
| kpt CLI | Package-centric toolchain for Kubernetes configuration |
| kubectl CLI | Kubernetes command-line tool |
| k9s CLI | Terminal UI for Kubernetes |
| OpenTofu CLI | Open-source Infrastructure as Code tool (Terraform fork) |
| Sofka CLI | Terminal UI for Kubernetes (Rust) |
| SwarmCLI | Terminal UI for Docker Swarm |
| Terraform CLI | Infrastructure as Code tool |
| Terragrunt CLI | Terraform wrapper for DRY configurations |
Note
Every script and file is reasonably well commented and relevant details can be found there.
Important
Check details before taking any action.
Caution
User is responsible for any modification and execution of any parts from this repository.
GitHub Actions workflow file covers all necessary activities which are fully automated in GitHub (re-using Docker container approach as base for automation):
- Gathering and propagating latest available tools versions to Docker preparation process
- Building Docker hardened image
Docker build wrapper script covers creation of a container built from a multistage Dockerfile using parallel execution of several builders to speed up preparation. Generated image contains all mentioned tools with pre-enabled Bash completions. Docker run wrapper simplifies application execution.
| File | Description |
|---|---|
Dockerfile |
Recipe for preparation of Docker container |
.docker |
Directory for configuration data persistency (can be mapped into container) |
.config |
Directory for UpCloud CLI configuration data persistency (can be mapped into container) |
| Registry | Network Support | Pull Command |
|---|---|---|
| DockerHub CR | IPv4 & IPv6 | docker pull developmententity/upcloud-tools:initial |
| GitHub CR | IPv4 only | docker pull ghcr.io/stefanbosak/upcloud-tools:initial |
UpCloud can be accessed via the upcloud-tools container which is automatically generated and available within ghcr.io. The dedicated run.sh script pulls and runs the up-to-date container.
Configure credentials for upctl (recommended: an API token) via one of the following, in order of precedence:
# 1. environment variable (recommended for containers)
export UPCLOUD_TOKEN="<your-api-token>"
# 2. config file (default ~/.config/upctl.yaml, mapped from this repo's .config directory)
cat <<EOF > .config/upctl.yaml
token: "<your-api-token>"
EOF
# 3. username/password environment variables (legacy fallback)
export UPCLOUD_USERNAME="<your-username>"
export UPCLOUD_PASSWORD="<your-password>"API access is configured in the UpCloud Hub, on the Account page for the main account, or on the Permissions tab of the People page for sub-accounts. A dedicated sub-account with API-only permissions is recommended.
Verify access and fetch a Managed Kubernetes (UKS) cluster kubeconfig, if needed:
# verify access, print account balance and resource limits
upctl account show
# list clusters, then merge the chosen cluster's kubeconfig into ~/.kube/config
upctl kubernetes list
upctl kubernetes config <UUID/Name> --output yaml --write ~/.kube/configNote
upctl (unlike otc-cli) covers day-2 operations natively across most UpCloud resources — servers, networks, storage, managed databases, Kubernetes (UKS) clusters, and object storage credentials. See the command reference for the full list.
Made with ❤️ for ☁️ UpCloud ecosystem and 🔒 security