app-service

AppService CRD, GVK: apps.demo.orkestra.io/v1alpha1, Kind=AppService

healthy app-platform 0.1.0 uptime 52h47m21s

Overview

app-service is a custom resource managed by the app-platform operator running on Orkestra. Resources of this type are namespace-scoped.

FieldValue
API Versionapps.demo.orkestra.io/v1alpha1
KindAppService
GVR (plural)apps.demo.orkestra.io/v1alpha1, Resource=appservices
ScopeNamespaced

Reconcile Mode

This CRD runs in dynamic mode. Orkestra works directly with the raw unstructured Kubernetes object — no Go code is required. Reconcile logic is expressed declaratively in the Katalog YAML using template expressions like {{ .spec.field }}.

The Generic Reconciler manages the full CR lifecycle: it ensures managed labels are set on every reconcile, adds and removes finalizers, runs onCreate and onReconcile template blocks, emits events, increments metrics, and reports health status.


Configuration

The operator maintains 3 worker goroutines to process reconcile events concurrently. Each worker dequeues one CR key at a time, reconciles it, and returns. The queue has a maximum depth of 100 events.

Orkestra resyncs all managed resources every 15s by re-enqueueing every CR key. This ensures drift caused by external changes is corrected even without a Kubernetes watch event.


Child Resources

When the operator reconciles a app-service instance it creates and manages the following Kubernetes resources on its behalf. These are owned by the CR via owner references and are deleted automatically when the CR is deleted (unless deletion protection is active).

Resources listed under onCreate are created on the first reconcile. Resources listed under onReconcile are re-applied on every reconcile cycle. A resource appearing in both phases is created once and kept in sync thereafter.

Kind Count Lifecycle phases
ConfigMap 1 onCreate
Service 1 onCreate

To see the actual child resources created for a running instance, navigate to the instance's detail page from the app-platform control panel.


kubectl Reference

Use the commands below to interact with app-service resources from the command line.

List resources

kubectl get appservice -n <namespace>

Describe a resource

kubectl describe appservice <name> -n <namespace>

Get YAML

kubectl get appservice <name> -n <namespace> -o yaml

Watch for changes

kubectl get appservice -n <namespace> -w

Delete a resource

kubectl delete appservice <name> -n <namespace>

Filter by Orkestra managed label

kubectl get appservice -l orkestra.orkspace.io/managed=true -n <namespace>

Access Control

The operator holds the following RBAC permissions to manage app-service resources. 1 appservices, 1 appservices/status, 1 configmaps, 1 services

API GroupsResourcesVerbs
apps.demo.orkestra.io appservices get list watch create update patch delete
apps.demo.orkestra.io appservices/status get update patch
core services get list watch create update patch delete
core configmaps get list watch create update patch delete