Configuring a Kubernetes Manifest component
To configure a Kubernetes manifest component, specify a namespace and the manifest files to deploy.components/kubernetes_manifest.toml
Multiple Resources in a Single Manifest
Kubernetes manifest Components support multiple resources separated by the standard YAML document separator---
:
components/deployment.yaml
Using Nuon Context Variables
Kubernetes manifest Components support Nuon’s templating system, allowing you to access variables and outputs from other components:components/configmap.yaml
Common Use Cases
Deploying with Custom Images
components/app-deployment.yaml
Creating Ingress Resources
components/ingress.yaml
Using AWS Load Balancer Controller
components/nlb-service.yaml
Nuon Managed Sandbox Components
Theaws-eks-sandbox
managed Sandbox ships with standard Components that your Kubernetes manifests can leverage:
The Sandboxes are open source and can be customized, if these Components do not work for your application.
Best Practices
Namespace Management
Always specify namespaces explicitly in your manifests. If not provided, it defaults to the namespace specified in the config. If both the component configuration and manifest are missing namespace specifications, the component deployment will fail:components/namespace.yaml
Kubernetes manifest Components are processed in the order they appear in your repository. If you have dependencies between resources, ensure they are ordered appropriately or use proper Kubernetes resource dependencies.