microservice block. The Add Microservice form writes it for you and keeps it in sync as you fill the form, so you never have to write it by hand — but the script is the stored definition, it is what appears in release diffs, and Edit script directly hands it to you.
The XanoScript language service does not yet know the
microservice type, so editor validation is suppressed while the script is a form-driven mirror, and re-enabled once you take it over with Edit script directly.Built-in deployment
pull_secret line is added naming the microservice-owned secret Xano provisions:
Helm deployment
Reference
Top level
The block is opened withmicroservice followed by an identifier. The identifier is the microservice name sanitized: lowercased, with each run of non-alphanumeric characters collapsed to a single underscore, and leading and trailing underscores stripped. A microservice named Echo Docker yields the identifier echo_docker.
Optional. Shown next to the name in the microservices list. Omitted from the script entirely when blank.
"helm" for a bring-your-own-chart microservice. Omitted for the built-in type, which is the default."auto" or "manual". Both ship the microservice with a tenant release; "manual" does not deploy it in the tenant automatically. See Releases and tenants.deployment
Present for the built-in type. Holds one or morecontainer blocks, each opened with container followed by an identifier — for a single-container microservice this matches the microservice identifier.
The pull secret for a private image. Xano provisions a microservice-owned secret named
<identifier>-pull; this line is emitted only when private-registry credentials are configured. See Private registries.An array of port objects.
servicePort is the port Xano exposes and the one you address from the function stack; containerPort is what the application listens on inside the container, defaulting to servicePort.CPU and RAM allocation as raw Kubernetes resource strings — CPU in millicores, RAM in mebibytes.The form’s presets map to
100m/128Mi (Tiny), 250m/512Mi (Small), 500m/1024Mi (Medium), 1000m/2048Mi (Large), and 3500m/7168Mi (X-Large).chart
Present whenkind = "helm", in place of deployment.
The chart version. Omitted for a direct
.tgz URL, where the version is already in the filename.