This directory contains a CUE module and tooling for generating podinfo's Kubernetes resources.
The module contains a podinfo.#App
definition which takes podinfo.#AppSpec
as input.
Install CUE with:
brew install cue
Configure the application in main.cue
:
app: podinfo.#App & {
spec: {
meta: {
name: "podinfo"
namespace: appsNamespace.spec.name
}
image: tag: "6.2.0"
resources: requests: {
cpu: "100m"
memory: "16Mi"
}
hpa: {
enabled: true
maxReplicas: 3
}
ingress: {
enabled: true
className: "nginx"
host: "podinfo.flux.local"
tls: true
annotations: {
"nginx.ingress.kubernetes.io/ssl-redirect": "false"
"nginx.ingress.kubernetes.io/force-ssl-redirect": "false"
"cert-manager.io/cluster-issuer": "self-signed"
}
}
serviceMonitor: enabled: true
}
}
cue gen