Skip to main content
Version: Next

WebApplication

A WebApplication represents a web application component in OpenChoreo. It defines the deployment configuration for web application-type components by referencing a Workload and optionally a WebApplicationClass for platform-defined policies. WebApplications are typically frontend applications or web services that serve HTTP content.

API Version

openchoreo.dev/v1alpha1

Resource Definition

Metadata

WebApplications are namespace-scoped resources that must be created within an Organization's namespace and belong to a Component through the owner field.

apiVersion: openchoreo.dev/v1alpha1
kind: WebApplication
metadata:
name: <webapplication-name>
namespace: <org-namespace> # Organization namespace

Spec Fields

FieldTypeRequiredDefaultDescription
ownerWebApplicationOwnerYes-Ownership information linking the web application to a project and component
workloadNamestringYes-Name of the workload that this web application references
classNamestringNo"default"Name of the WebApplicationClass that provides deployment configuration

WebApplicationOwner

FieldTypeRequiredDefaultDescription
projectNamestringYes-Name of the project that owns this web application (min: 1)
componentNamestringYes-Name of the component that owns this web application (min: 1)

Examples

Basic WebApplication

apiVersion: openchoreo.dev/v1alpha1
kind: WebApplication
metadata:
name: frontend-app
namespace: default
spec:
owner:
projectName: my-project
componentName: frontend
workloadName: frontend-workload
className: default

WebApplication with Custom Class

apiVersion: openchoreo.dev/v1alpha1
kind: WebApplication
metadata:
name: admin-dashboard
namespace: default
spec:
owner:
projectName: my-project
componentName: admin-ui
workloadName: admin-ui-workload
className: production-webapp

Annotations

WebApplications support the following annotations:

AnnotationDescription
openchoreo.dev/display-nameHuman-readable name for UI display
openchoreo.dev/descriptionDetailed description of the web application