Created
September 24, 2025 00:36
-
-
Save binura-g/ec94a969f95421d1a6c6e2502834ae98 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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