Files
zero-scale-platform/internal/platform/testdata/spof/pods.json
Stephen Schuresko 3a0ec17c7b Treat node-local storage as temporary data only
StorageClasses that keep data on one node's disk (hostpath, local-path,
OpenEBS local PV, Longhorn with 1 replica and strict-local) are now
marked node-local:

- init never records one as platform storage, even with --allow-non-ha.
- doctor lists PVCs on node-local classes that running pods mount. One
  annotated zero-scale.io/data=temporary is a note; one whose workload
  runs on 2+ nodes (a database cluster with a local volume per member)
  is accepted; any other is a failure, and pins its Ingress backend.
- doctor warns when a node-local class is a default StorageClass and
  prints the annotate command that removes the default.
- App volumes take a :tmp mode: scratch space on the gateway pod's own
  disk instead of the shared RWX volume.

doctor also now reports Ingress backends whose Service does not exist,
host+path routed by several Ingresses to different Services, Knative
DomainMappings with no Ingress rule, and judges recorded platform
choices instead of asking for them again.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-27 07:24:02 -04:00

16 lines
2.9 KiB
JSON

{"items":[
{"metadata":{"namespace":"default","name":"gw-1","labels":{"app":"zero-scale-gateway"}},"spec":{"nodeName":"steve-disks"},"status":{"phase":"Running"}},
{"metadata":{"namespace":"qa","name":"gw-a","labels":{"app":"zero-scale-gateway"}},"spec":{"nodeName":"sv2d"},"status":{"phase":"Running"}},
{"metadata":{"namespace":"qa","name":"gw-b","labels":{"app":"zero-scale-gateway"}},"spec":{"nodeName":"didi-macbookpro14-3"},"status":{"phase":"Running"}},
{"metadata":{"namespace":"default","name":"o-1","labels":{"app":"oauth2-proxy-mdm"}},"spec":{"nodeName":"sv2d"},"status":{"phase":"Running"}},
{"metadata":{"namespace":"default","name":"o-2","labels":{"app":"oauth2-proxy-mdm"}},"spec":{"nodeName":"sv2d"},"status":{"phase":"Running"}},
{"metadata":{"namespace":"default","name":"o-old","labels":{"app":"oauth2-proxy-mdm"}},"spec":{"nodeName":"steve-disks"},"status":{"phase":"Failed"}},
{"metadata":{"namespace":"default","name":"hoppscotch-web-1","labels":{"app":"hoppscotch-web"}},"spec":{"nodeName":"didi-macbookpro14-3"},"status":{"phase":"Running"}},
{"metadata":{"namespace":"nextcloud","name":"nextcloud-1","labels":{"app":"nextcloud"},"ownerReferences":[{"kind":"ReplicaSet","name":"nextcloud-5d8"}]},"spec":{"nodeName":"didi-macbookpro14-3","volumes":[{"name":"nextcloud-pvc","persistentVolumeClaim":{"claimName":"nextcloud-pvc"}}]},"status":{"phase":"Running"}},
{"metadata":{"namespace":"default","name":"prometheus-server-1","labels":{"app":"prometheus"},"ownerReferences":[{"kind":"ReplicaSet","name":"prometheus-server-7f"}]},"spec":{"nodeName":"steve-disks","volumes":[{"name":"prometheus-server","persistentVolumeClaim":{"claimName":"prometheus-server"}}]},"status":{"phase":"Running"}},
{"metadata":{"namespace":"default","name":"cache-1","labels":{"app":"cache"},"ownerReferences":[{"kind":"ReplicaSet","name":"cache-6b"}]},"spec":{"nodeName":"sv2d","volumes":[{"name":"scratch","persistentVolumeClaim":{"claimName":"scratch"}}]},"status":{"phase":"Running"}},
{"metadata":{"namespace":"qa","name":"qa-pxc-pxc-0","labels":{"app.kubernetes.io/component":"pxc"},"ownerReferences":[{"kind":"StatefulSet","name":"qa-pxc-pxc"}]},"spec":{"nodeName":"sv2d","volumes":[{"name":"datadir-qa-pxc-pxc-0","persistentVolumeClaim":{"claimName":"datadir-qa-pxc-pxc-0"}}]},"status":{"phase":"Running"}},
{"metadata":{"namespace":"qa","name":"qa-pxc-pxc-1","labels":{"app.kubernetes.io/component":"pxc"},"ownerReferences":[{"kind":"StatefulSet","name":"qa-pxc-pxc"}]},"spec":{"nodeName":"steve-disks","volumes":[{"name":"datadir-qa-pxc-pxc-1","persistentVolumeClaim":{"claimName":"datadir-qa-pxc-pxc-1"}}]},"status":{"phase":"Running"}},
{"metadata":{"namespace":"qa","name":"qa-pxc-pxc-2","labels":{"app.kubernetes.io/component":"pxc"},"ownerReferences":[{"kind":"StatefulSet","name":"qa-pxc-pxc"}]},"spec":{"nodeName":"didi-macbookpro14-3","volumes":[{"name":"datadir-qa-pxc-pxc-2","persistentVolumeClaim":{"claimName":"datadir-qa-pxc-pxc-2"}}]},"status":{"phase":"Running"}}
]}