Skip to main content

Cozystack Platform

@magistr/cozystack-platformv2026.03.13.1· 1mo agoMODELS
01README

Cozystack platform management — install operator, deploy packages, manage apps/tenants, bootstrap CNI, and verify platform health

02Models1
@magistr/cozystack-platformv2026.03.13.1cozystack.ts
fn getOperatorStatus()
Check if Cozystack operator deployment exists and its rollout status
fn getFluxTenantsStatus()
Check flux-tenants deployment state (hostNetwork, tolerations)
fn getNodePodCIDRs()
Get current PodCIDR assignments on all nodes
fn getPlatformPackage()
Check if Platform Package CR exists and its status
fn listAppDefinitions()
List available application definitions (what can be deployed)
fn listApps(namespace: string)
List application instances in a namespace (tenant)
ArgumentTypeDescription
namespacestringNamespace (tenant) to list apps in
fn getApp(namespace: string, kind: string, name: string)
Get a specific application instance
ArgumentTypeDescription
namespacestringNamespace (tenant)
kindstringApp kind (e.g. postgres, kubernetes, redis)
namestringApp instance name
fn createApp(namespace: string, kind: string, name: string)
Create a Cozystack application (Kubernetes cluster, database, VM, etc.)
ArgumentTypeDescription
namespacestringNamespace (tenant) to deploy in
kindstringApp kind (e.g. Postgres, Kubernetes, Redis, VirtualMachine)
namestringName for the app instance
fn deleteApp(namespace: string, kind: string, name: string)
Delete a Cozystack application instance
ArgumentTypeDescription
namespacestringNamespace (tenant)
kindstringApp kind (e.g. postgres, kubernetes)
namestringApp instance name
fn listTenants()
List Cozystack tenants
fn createTenant(name: string)
Create a new Cozystack tenant
ArgumentTypeDescription
namestringTenant name
fn listPackages()
List installed Cozystack platform packages
fn listWorkloads()
List workloads and their resource usage across namespaces
fn getAppSecret(namespace: string, name: string)
Get credentials/secrets for an application (e.g. database passwords)
ArgumentTypeDescription
namespacestringNamespace (tenant)
namestringSecret name (usually matches app name)
fn getTenantKubeconfig()
Get kubeconfig for a tenant (to access the tenant's Kubernetes API)
fn updateApp(namespace: string, kind: string, name: string)
Update an existing Cozystack application spec
ArgumentTypeDescription
namespacestringNamespace (tenant)
kindstringApp kind (e.g. postgres, kubernetes)
namestringApp instance name
fn install()
Install Cozystack operator via Helm and apply platform ConfigMap (idempotent)
fn waitReady()
Wait for Cozystack operator deployment to be ready
fn applyPackage(host: string, podCIDR: string, podGateway: string, serviceCIDR: string, joinCIDR: string)
Create or update the Platform Package CR that triggers full platform deployment
ArgumentTypeDescription
hoststringRoot host domain (e.g. tapok.local)
podCIDRstringPod CIDR
podGatewaystringPod gateway
serviceCIDRstringService CIDR
joinCIDRstringJoin CIDR
fn patchFluxTenants()
Patch flux-tenants deployment with hostNetwork and tolerations for bootstrap (needed before CNI is ready)
fn assignPodCIDRs()
Assign PodCIDRs to nodes (needed for Cilium IPAM=kubernetes when allocate-node-cidrs=false)
fn listHelmReleases(readyOnly: boolean, notReadyOnly: boolean)
List HelmRelease status across all namespaces
ArgumentTypeDescription
readyOnlybooleanOnly show ready releases
notReadyOnlybooleanOnly show not-ready releases
fn configurePlatform()
Idempotent platform configuration (enable ingress, monitoring, etcd on root tenant)

Resources

appDef(infinite)— Cozystack application definition
app(infinite)— Cozystack application instance
workload(infinite)— Cozystack workload status
package(infinite)— Cozystack platform package
tenant(infinite)— Cozystack tenant
result(infinite)— Operation result
secret(infinite)— Application secret (credentials)
03Stats
Downloads
0
Archive size
16.3 KB

Not yet scored.

A score will be generated the next time this extension is published. The owner can also trigger scoring manually.

04Platforms
05Labels