1. The app's files
The files are global-app-layer/baseconfig in confighub/examples, which the realistic-app example builds on. The images come from Cubbychat, a small chat app.
backend.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: backend
namespace: confighubplaceholder
spec:
replicas: 1
selector:
matchLabels:
app: backend
template:
metadata:
labels:
app: backend
spec:
containers:
- name: backend
image: ghcr.io/confighub/cubbychat/backend:1.1.7
ports:
- containerPort: 8080
env:
- name: OLLAMA_URL
value: "http://ollama:11434"
- name: OLLAMA_ENABLED
value: "false" # AI features disabled by default (ollama container is heavyweight)
- name: DATABASE_URL
value: "postgres://admin:password@postgres:5432/chatdb"
- name: CHAT_TITLE
value: "Cubby Chat"
- name: PORT
value: "8080"
- name: REGION
value: "dev"
- name: ROLE
value: "development"
resources:
requests:
memory: "100Mi"
limits:
memory: "200Mi"
---
apiVersion: v1
kind: Service
metadata:
name: backend
namespace: confighubplaceholder
spec:
selector:
app: backend
ports:
- protocol: TCP
port: 8080
targetPort: 8080
type: ClusterIP
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: backend-ingress
annotations:
nginx.ingress.kubernetes.io/enable-websockets: "true"
nginx.ingress.kubernetes.io/proxy-read-timeout: "3600"
nginx.ingress.kubernetes.io/proxy-send-timeout: "3600"
namespace: confighubplaceholder
spec:
ingressClassName: nginx
rules:
- host: base.local.cubby.bz
http:
paths:
- path: /api
pathType: Prefix
backend:
service:
name: backend
port:
number: 8080
frontend.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: frontend
namespace: confighubplaceholder
spec:
replicas: 1
selector:
matchLabels:
app: frontend
template:
metadata:
labels:
app: frontend
spec:
containers:
- name: frontend
image: ghcr.io/confighub/cubbychat/frontend:1.1.7
ports:
- containerPort: 80
resources:
requests:
memory: "100Mi"
limits:
memory: "200Mi"
---
apiVersion: v1
kind: Service
metadata:
name: frontend
namespace: confighubplaceholder
spec:
selector:
app: frontend
ports:
- protocol: TCP
port: 80
targetPort: 80
type: ClusterIP
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: frontend-ingress
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
namespace: confighubplaceholder
spec:
ingressClassName: nginx
rules:
- host: base.local.cubby.bz
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: frontend
port:
number: 80
postgres.yaml
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: postgres
namespace: confighubplaceholder
spec:
serviceName: "postgres"
replicas: 1
selector:
matchLabels:
app: postgres
template:
metadata:
labels:
app: postgres
spec:
containers:
- name: postgres
image: postgres:16
env:
- name: POSTGRES_DB
value: "chatdb"
- name: POSTGRES_USER
value: "admin"
- name: POSTGRES_PASSWORD
value: "password"
ports:
- containerPort: 5432
volumeMounts:
- name: postgres-storage
mountPath: /var/lib/postgresql/data
resources:
requests:
memory: "100Mi"
limits:
memory: "200Mi"
volumeClaimTemplates:
- metadata:
name: postgres-storage
namespace: confighubplaceholder
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 5Gi
---
apiVersion: v1
kind: Service
metadata:
name: postgres
namespace: confighubplaceholder
spec:
selector:
app: postgres
ports:
- protocol: TCP
port: 5432
targetPort: 5432
2. What the app needs
Each check reads one file, so the first line joins the three with a --- line between them. The check names what a platform must provide. It runs nothing.
New to cub? Install the cub CLI first. Public catalog packages pull and render anonymously, and you sign in only once a command saves or changes ConfigHub data.
$ awk 'FNR == 1 && NR > 1 { print "---" } 1' backend.yaml frontend.yaml postgres.yaml > realistic-app.yaml
$ cub app check realistic-app.yaml
App: realistic-app
Rendering the workload (free, no infrastructure)
Installs
8 objects: 2 Deployment, 3 Service, 2 Ingress, 1 StatefulSet
namespaces that must already exist: confighubplaceholder
Dependencies (this app needs a platform to provide these)
[NEEDS] an ingress controller
Ingress backend-ingress (class nginx)
Ingress frontend-ingress (class nginx)
Install onto a platform that carries those services (for example a cub stack such
as web-platform), then your Argo CD or Flux reconciles it.Both Ingresses name the nginx class, so the cluster must run an ingress controller. The files also name the namespace confighubplaceholder. It is a word ConfigHub's examples use for a value you set, and loading the app sets a real namespace for each variant.
3. What it installs
The second check looks for the work a chart usually hides, and checks every object against its schema. This app has none of that work, and all 8 objects are valid.
$ cub config check realistic-app.yaml
Config: realistic-app
Inspecting local Kubernetes objects (static, no infrastructure)
Installs
8 objects: 2 Deployment, 2 Ingress, 3 Service, 1 StatefulSet
namespaces that must already exist: confighubplaceholder
Lifecycle work
[PASS] CRDs: 0
[PASS] Helm hooks: 0
[PASS] setup Jobs: 0
[PASS] admission webhooks needing a certificate: 0
[PASS] images tagged latest or not tagged: 0
Schema
[PASS] schema validation: 8 object(s) valid against the default and ecosystem catalogs (flux-schema/0.16.0)
Free look before you install. Compose it into a cub stack, or run it as a cub app.4. What the checks do not catch
The backend's DATABASE_URL and the database's POSTGRES_PASSWORD both hold the password in plain text. Neither check mentions it. Move the password into a Secret that the cluster supplies before you deliver the app.
5. Technical notes and disclaimers
- Both checks ran on 2026-10-27 with cub v0.9.0 and Workshop plugin 0.6.61. The recorded files and their receipt hold every input and output.
- Neither check contacts a cluster. A check that passes is not proof the app runs.