Skip to main content

Web Application

Source: application-xrd.yaml — group shoulders.io, scope Namespaced, version v1alpha1.

spec fields​

FieldTypeDescription
argsarray<string>Arguments to the container entrypoint.
commandarray<string>Container entrypoint command, overriding the image default.
envarrayEnvironment variables for the container (Kubernetes EnvVar style).
envFromarrayEnvironment variables sourced from ConfigMaps or Secrets (Kubernetes EnvFromSource style).
hoststringPublic hostname for Gateway API routing. Omit (with route.enabled set to false) for internal-only services.
imagestringContainer image repository for the application (without tag). (required)
imagePullPolicystringImage pull policy for the application container. (allowed: Always, IfNotPresent, Never)
livenessProbeobjectLiveness probe for the container (Kubernetes Probe style).
podSecurityContextobjectSecurity settings for the pod.
portintegerContainer port the Service targets. (default: 80)
readinessProbeobjectReadiness probe for the container (Kubernetes Probe style).
replicasintegerNumber of pod replicas in the Deployment. (required) (default: 1)
resourcesobjectCPU and memory requests and limits for the container.
routeobjectPublic Gateway API routing for the application.
route.enabledbooleanCreate the HTTPRoute when a host is set. Disable for internal-only services. (default: true)
route.gatewayNamestringGateway resource the HTTPRoute attaches to. (default: cilium-gateway)
route.gatewayNamespacestringNamespace of the Gateway resource. (default: kube-system)
securityContextobjectSecurity settings for the application container.
serviceobjectKubernetes Service fronting the Deployment.
service.portintegerService port exposed inside the cluster. (default: 80)
serviceAccountNamestringServiceAccount the application pods run as.
startupProbeobjectStartup probe for the container (Kubernetes Probe style).
tagstringImage tag to deploy. (required)
volumeMountsarrayVolume mounts for the application container.
volumesarrayVolumes for the pod, including Secret and emptyDir volumes.