-
-
Notifications
You must be signed in to change notification settings - Fork 33
/
main.cue
45 lines (41 loc) · 888 Bytes
/
main.cue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package main
import (
ns "github.com/stefanprodan/flux-local-dev/cue/namespace"
podinfo "github.com/stefanprodan/flux-local-dev/cue/podinfo"
)
appsNamespace: ns.#AppNamespace & {
spec: {
name: "cue-apps"
role: "namespace-admin"
}
}
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: "cue-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
}
}
objects: [appsNamespace, app]