Frequently Asked Questions

Why Python instead of YAML, Kustomize or Helm?

YAML has no types, functions or tests. Kustomize and Helm add reuse by patching or templating text. Piceli builds manifests from typed Python objects, so you get autocompletion, validation before anything reaches the cluster, loops and functions for reuse, and ordinary unit tests for your infrastructure. It still accepts plain YAML/JSON, so you can migrate gradually.

Can I keep my existing YAML files?

Yes. A composition function can load a directory of YAML or JSON manifests (and Python modules of templates or kubernetes.client objects) with the loader, and mix them with a typed app:

from pathlib import Path

from piceli.k8s.ops import load_all
from piceli.k8s.ops import DeploymentComposition, component_from_objects

MANIFESTS = Path(__file__).parent / "manifests"


def build(ctx):
    objects = load_all(module_name="", module_path="", folder_path=str(MANIFESTS))
    return DeploymentComposition((component_from_objects("app", objects),))

piceli render infra.py:build shows what was loaded, and piceli release applies it. See Kubernetes Model.

Does Piceli patch my resources or recreate them?

It patches them. Every apply uses server-side apply with UID and resourceVersion preconditions. An object is deleted and recreated only when you name it explicitly with --replace Kind/name (for example to change an immutable field); see Releases from a spec (piceli release).

Which cluster does Piceli talk to?

Only the one you name. piceli release reads the kubeconfig file and context from the spec’s [target], and observe/operator take --kubeconfig/--context. Piceli never reads KUBECONFIG, ~/.kube/config or the current context. From Python you pass an ApiClient explicitly.

Does importing Piceli contact my cluster?

No. Importing modules, loading models and building plans are all side-effect free. Only explicit execution and observation commands make network calls.

Will Piceli delete resources I did not create?

Piceli only deletes objects that carry its owner annotation, and only when pruning is explicitly enabled and discovery coverage is complete. Namespaces, PersistentVolumes, PersistentVolumeClaims and Secrets are never deleted. Objects present in the namespace but not declared by a release are reported as undeclared; they are never adopted or removed automatically.

Does Piceli support custom resources (CRDs)?

Yes. piceli codegen crd generates typed pydantic models from a CRD file or a cluster, and app.resource(api_version, kind, name, spec) declares the object with a validated spec; cluster-scoped ones are managed per namespace. See Custom resources and any other kind. A composition also accepts any apiVersion/kind as a raw manifest in a ResourceIntent.

Does Piceli push images to a registry?

Only when you ask it to, and never implicitly. piceli artifacts deliver --to oci://host:port/repo pushes an image you have approved by config digest, and uploads only the layers the registry is missing. Plain HTTP is only allowed to loopback registries, for example an in-cluster registry reached through a port-forward. Without a registry, deliver can also import an image straight into a node’s containerd. See Image delivery.

Does Piceli do GitOps and per-branch environments?

Yes. piceli gitops enable installs a controller that polls a Git repository and keeps one environment per branch at its head, with the same plans, approvals and checks as piceli deploy; piceli env, piceli envs and piceli promote operate on them. The controller is experimental. See GitOps: Piceli’s controller and manifest export and Environments: one app for dev, staging and prod; the web UI shows both.

Can I try the web UI without a cluster?

Yes. From a source checkout with uv, Node.js and npm installed, run make ui. It builds the current frontend and opens a disposable sample workspace, normally at http://127.0.0.1:4178. Explore infrastructure, Sources and Cluster, or use Deployment history for saved plans, revision differences and captured logs. Ctrl+C stops the preview and removes its service state. See Piceli web application.

Where do previous plans and deployment logs appear?

Open Delivery → Deployment history, select an application, then choose Plans, Runs & logs or Compare revisions. The application’s Plans tab lists the same saved reviews. Open logs focuses the run’s captured-log panel; visual transitions and the raw journal remain alongside it. The archive includes expired plans and plans with no recorded run. Older incomplete snapshots or uncaptured output are shown as missing evidence; arbitrary CLI plan files are not imported. See Piceli web application for the task-to-page map.

How should I expose the web UI?

The local piceli ui serve process binds to loopback and uses its printed launch-token URL. Keep that local mode on the operator’s machine, or reach it through an SSH tunnel. The disposable make ui preview also stays local; automatic browser-session setup belongs to that fixture.

An installed UI can use a configured TLS gateway, OIDC login and namespace/ action grants. Observation is the default installed profile; source execution and deployment need their own configured permissions and approvals. Follow In-cluster Piceli UI installation template for the installation and exposure requirements. The older piceli observe serve and piceli operator serve interfaces remain loopback-only. See Piceli web application for the supported modes.

How does Piceli relate to Pynenc?

Both are developed within the Pynenc project, but Piceli does not depend on Pynenc and can deploy any workload.