Skip to content

Instantly share code, notes, and snippets.

@binura-g
Created September 24, 2025 00:36
Show Gist options
  • Save binura-g/ec94a969f95421d1a6c6e2502834ae98 to your computer and use it in GitHub Desktop.
Save binura-g/ec94a969f95421d1a6c6e2502834ae98 to your computer and use it in GitHub Desktop.
package webapp
# This can be a 'normal' YAML as well. CUE can import raw YAMLs directly.
app: {
name: "react"
image: "ghcr.io/acme/react-app:main"
replicas: 2
ingressClass: "nginx"
serviceType: "ClusterIP"
gatewayName: "default-gateway"
endpoints: [
{
name: "react-app"
host: "app.foo.com"
path: "/"
port: 8080
type: "ingress"
},
{
name: "react-app-api1"
host: "api.foo.com"
path: "/api1/"
port: 8080
type: "managedAPI"
},
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment