A Kubernetes platform on vSphere with Tintri VMstore underneath usually fails its design review on one question: “when a database pod is slow, which object on the array do you look at, and who owns its QoS?” The honest answer for most estates is “the worker VM, and nobody”, because the storage design was inherited from whatever the installer defaulted to. This guide is how I run that engagement as a solutions architect: the discovery questions, the requirements and risks they produce, the platform and storage choices with a scored decision matrix, a worked sizing example with the arithmetic shown, the network and packet flows for both storage paths, a decisions register, and a read-only API collection that proves the running platform still matches the paper.

Level: advanced, solutions architect  ·  Stack: VMware vSphere 9.x / VCF 9.x, vSphere Kubernetes Service (VKS) or Red Hat OpenShift on vSphere or upstream Kubernetes on VMs, vSphere Container Storage Plug-in (vSphere CSI), Tintri VMstore CSI driver, Tintri VMstore and Tintri Global Center, Velero, Postman and newman  ·  APIs checked against: Kubernetes v1.37 API, vSphere Automation API 9.1.2, Virtual Infrastructure JSON API (vSAN service path, CnsVolumeManager), Tintri REST API v310.207 (TxOS 6.0.3)  ·  Build time: two to three workshops for discovery, two days to write the design, one hour to wire the conformance checks


Contents

  1. How a solutions architect runs this engagement
  2. Discovery: the questions that decide the design
  3. Requirements, constraints, assumptions and risks
  4. Workload profiling
  5. Platform choice: VKS, OpenShift or upstream on VMs
  6. Reference architecture
  7. Storage options A, B and C, and the decision matrix
  8. StorageClass and tier design mapped to Tintri
  9. Backup and DR
  10. Multi-tenancy
  11. Network design and packet flows
  12. Failure domains and topology
  13. Sizing, worked
  14. Security
  15. Observability
  16. Design decisions register
  17. Design to API: the conformance sequence
  18. The design conformance collection: Postman and newman
  19. API reference for this design
  20. Error shapes and what they mean
  21. End-to-end workflow
  22. Design document template
  23. Design review checklist
  24. Troubleshooting the design
  25. What’s next

01. How a solutions architect runs this engagement

This post sits on top of the vSphere on Tintri design guide (post 25), which owns the document conventions, cluster and HA sizing, datastore layout and VMstore QoS, snapshot and replication policy. This one adds the Kubernetes layer: what changes when the consumer of the datastore is a CSI driver, and what only the solutions architect will decide.

Four phases, in this order:

  1. Discover. Two workshops: one with the application owners (what runs, how it fails, what it costs when it is down), one with the infrastructure owners (what exists, what is fixed, who operates it). Output: requirements (R), constraints (C), assumptions (A) and risks (K).
  2. Decide. Platform, storage option, network, failure domains, tenancy and protection. Each choice becomes a KD entry with options, choice, justification and impact. Must-have requirements filter options first; only survivors are scored.
  3. Size. Capacity, performance, attach counts and network, with the arithmetic in the document so the next architect can redo it when the inputs change.
  4. Prove. Every KD gets a check that reads the running system through an API. If a decision cannot be checked, it gets rewritten until it can.

The deploy mechanics (cluster build, CSI install, PVC lifecycle, every controller hop) are in the companion post, post 28. The underlying stack is covered in the six-part series starting with Part 1: reference architecture and Part 2: network design.

02. Discovery: the questions that decide the design

Each question maps to a decision; a skipped question is a skipped decision.

#QuestionWhy it mattersFeeds
D1Which platform does the organisation already operate or license: VKS, OpenShift, Rancher, upstream?Operations skills and support contracts decide more than features do.KD-10
D2List every stateful workload: engine, replicas, volume sizes, IOPS, read/write mix, block size, latency target.Drives attach counts, IOPS sizing and which workloads need per-volume control.KD-04, KD-05, KD-13
D3Does anything need ReadWriteMany? Who wrote that requirement, and can it be ReadOnlyMany or object storage instead?RWX is the requirement most likely to change the storage option.KD-04
D4RPO and RTO per workload class. Is DR a second cluster, a restore, or a stretched cluster?Decides Velero versus array replication versus both.KD-07, KD-15
D5How many teams, and do they need hard storage limits, chargeback, or separate clusters?Namespaces and quotas, or vSphere Namespaces, or separate clusters.KD-09
D6Can worker VMs have an interface on a storage VLAN? Who approves that?Option B lives or dies on this answer.KD-08
D7How many VMstores, sites and vCenters? Is there a failure domain larger than a host?Topology zones and per-zone storage.KD-11
D8Which TxOS, vSphere and Kubernetes versions are fixed for the next 12 months?Feature availability: the VMstore Kubernetes APIs need v310.171, the Tintri CSI driver needs TxOS 5.6.0.1 or later.KD-10, KD-12
D9Who will be paged when a PVC is Pending at 02:00: platform team or storage team?Ownership of StorageClasses, quotas and VMstore QoS.KD-03, KD-13
D10What evidence does audit expect: change records, conformance reports, both?Whether the conformance collection runs in CI and who reads it.KD-16

03. Requirements, constraints, assumptions and risks

This is the worked engagement used for the rest of the post: one production Kubernetes platform on an existing six-host vSphere 9 cluster on Cisco UCS, backed by one Tintri VMstore with a second VMstore at a DR site. Replace the content, keep the shape.

IDTypeStatement
R-01RequirementRun 6 PostgreSQL clusters (3 instances each), a 3-broker Kafka, a 6-node OpenSearch and about 40 stateless services.
R-02RequirementDatabase p95 write latency at the VMstore under 2 ms at the design load.
R-03RequirementStorage consumption per team is capped and reported monthly.
R-04RequirementRPO 1 hour and RTO 4 hours for databases; RPO 24 hours for everything else.
R-05RequirementAn ML team needs a 2 TiB shared model cache mounted read-write by several pods (RWX).
R-06RequirementQA refreshes a 500 GiB test database from a production copy every night in under 15 minutes.
R-07RequirementThe storage team can answer “which PV is this vDisk” without asking the platform team.
C-01ConstraintNo vSAN. Tintri VMstore over NFS is the only shared storage.
C-02ConstraintExisting VLAN plan and Cisco UCS fabric (FI A/B, Nexus vPC); new VLANs need a change window.
C-03ConstraintThe organisation already runs OpenShift elsewhere and has a Red Hat subscription.
A-01Assumption2:1 data reduction on the VMstore for this mix. To be replaced by the measured value after 30 days.
A-02Assumption60% of provisioned PVC capacity is written within the first year.
A-03AssumptionThe VMstore can present a data address on a second VLAN for guest NFS. Confirm for the model and TxOS release.
K-01RiskOption A puts every PV on a worker VM into that worker’s VMstore QoS envelope; one noisy pod can throttle its neighbours.
K-02RiskGuest NFS (option B) exposes a storage network to worker VMs.
K-03RiskCSI snapshots that are left in place block volume expansion and deletion on vSphere CSI.
K-04RiskThe VMstore’s Kubernetes registration uses a client certificate that expires silently.

Filter before you score. R-05 (RWX) and R-06 (fast clone refresh) are must-haves. Any option that cannot meet a must-have is out before the weighted matrix in section 07 runs. Architects who score first and filter later end up recommending the option with the best average and the one fatal gap.

04. Workload profiling

Profile by I/O behaviour, not by team. Four classes cover almost everything I see on Tintri-backed Kubernetes platforms, and each has a different best answer.

ClassExamplesAccess modeI/O shapeWhat it needs from the design
Statelessweb front ends, APIs, workersnone or small RWOnegligibleNothing beyond node OS disks. Keep these off the database node pool.
Databases and queuesPostgreSQL, MySQL, Kafka, Redis with AOFRWOsmall random writes, fsync-heavy, latency-sensitivePredictable latency, a protected QoS envelope, application-consistent backup, fast restore.
Search and analyticsOpenSearch, Elasticsearch, ClickHouseRWOlarge sequential plus merge burstsThroughput, capacity, and a QoS ceiling so merges do not starve databases.
AI/ML and shared datamodel caches, notebooks, datasetsRWX or ROXlarge reads, shared across podsA file path that more than one node can mount, sized for read bandwidth.

Per stateful workload capture replicas, PVCs per replica, size, growth, steady and peak IOPS, I/O size, read percentage and RPO/RTO class. Section 13 multiplies this out. For workloads already on VMs, the VMstore per-VM and per-vDisk history is the best source you have.

05. Platform choice: VKS, OpenShift or upstream on VMs

VKS on vSphere SupervisorOpenShift on vSphereUpstream or Rancher on VMs
Current release (Dec 2026)VKS 3.8 with Kubernetes v1.37 (VCF 9.1)OpenShift 5.0, based on Kubernetes 1.36Kubernetes v1.37 (1.37.3); 1.35 and 1.36 still supported
vSphere CSIManaged by VKS (the release notes describe it as managed by the add-on framework)vSphere CSI Driver Operator installed by default, default class thin-csiYou install vSphere CSI 3.8.x (validated for Kubernetes 1.34 to 1.36)
Storage policy to namespacevSphere Namespace storage policies and limits, set in vCenterStorageClasses plus ResourceQuotaStorageClasses plus ResourceQuota
Second CSI driver (Tintri)Not the normal VKS pattern; confirm support with Broadcom and Tintri before planning on itTintri publishes an operator in the Red Hat catalog (vmstore-csi-file-driver-operator 1.1.0)Helm chart or manifests from the Tintri GitHub repo
RWXvSAN File Services through CNS; none on Tintri-only storageSame: RWO only without vSAN File ServicesSame, unless you add an NFS CSI path
Who operates itvSphere adminsPlatform team with Red Hat supportPlatform team, community support

Three things drive most decisions. vSphere CSI releases trail upstream Kubernetes: 3.8.0 lists 1.34 to 1.36, so pin upstream clusters to a listed minor rather than 1.37. ReadWriteMany through CNS means vSAN File Services on every platform, so with Tintri as the only shared storage (C-01) vSphere CSI offers no RWX. And OpenShift documents vSphere 8.0 Update 1 or later (or VCF 9), VM hardware version 15 or later, up to three vCenters (set at install only), and no third-party vSphere CSI driver alongside its own; the Tintri driver is a different driver, so that rule does not exclude it.

For the worked engagement C-03 decides it: OpenShift on vSphere (KD-10). The Tintri operator in the Red Hat catalog is a second reason. If you are on VKS instead, everything in sections 07 to 13 still applies for option A, and the VKS tutorial covers the Supervisor side. The existing stateful OpenShift on Tintri NFS design and runbook covers OpenShift-specific operations.

06. Reference architecture

Admin workstation Postman / newman 6.2.x kubectl, PowerCLI, govc VLAN 10, 10.0.10.0/24 vCenter Server 9.x CNS, SPBM, tags, Supervisor /api and /sdk on HTTPS 443 10.0.10.20, VLAN 10 Tintri Global Center service groups, fleet QoS HTTPS 443 10.0.10.40, VLAN 10 Kubernetes API endpoint VKS, OpenShift or upstream control plane VIP 10.0.50.10, TCP 6443 VLAN 50, routed to VLAN 10 management / API network (VLAN 10, routed) ESXi cluster: 6 hosts, vSphere 9.x, one vDS (MTU 9000) Kubernetes worker VMs (x12) eth0 vmxnet3: pg-k8s-nodes, VLAN 50, MTU 1500 eth1 vmxnet3: pg-k8s-nfs, VLAN 35, MTU 9000 (only when option B is in use) 4 x PVSCSI: up to 59 CNS volumes (option A) CSI node plugins: vSphere CSI, Tintri CSI Control plane VMs (x3) eth0: pg-k8s-nodes, VLAN 50, MTU 1500 kube-apiserver 6443, etcd 2379-2380 vSphere CSI controller -> vCenter 443 Tintri CSI controller -> VMstore 443 Velero, snapshot-controller ESXi host (one of six, identical) vmk0 management: VLAN 10, 10.0.10.0/24, MTU 1500 vmk1 vMotion: VLAN 20, 10.0.20.0/24, MTU 9000 vmk2 NFS: VLAN 30, 10.0.30.0/24, MTU 9000 -> mounts ds-tintri-k8s VM port groups: pg-k8s-nodes VLAN 50 (MTU 1500), pg-k8s-nfs VLAN 35 (MTU 9000) Uplinks: vmnic0 to fabric A, vmnic1 to fabric B, explicit failover order, no LACP NFS datastore ds-tintri-k8s (NFSv3, VMstore export /tintri) Option A PVs: CNS volumes, First Class Disk VMDKs, placed by storage policy Node VM folders: one VMDK per node OS disk, plus attached CNS volumes Tag category k8s-storage-tier on the datastore: gold, silver VMstore view: each PV is a vDisk of the worker VM it is attached to Cisco fabric UCS FI A fabric A, VIC vNIC UCS FI B fabric B, VIC vNIC Nexus 9000 vPC VLANs 10 20 30 35 40 50 MTU 9216 Tintri VMstore controllers: active / standby admin 10.0.10.50, VLAN 10 data 10.0.30.50, VLAN 30 data 10.0.35.50, VLAN 35 * repl 10.0.40.50, VLAN 40 /tintri: ESXi datastore /tintri/csi: option B share K8S cluster registered for PV to vDisk mapping * confirm for your TxOS DR VMstore replication VLAN 40 per-VM or service group policy (TGC) TCP 2049 replication VLAN plan (example values) VLAN Purpose Subnet MTU 10 management, vCenter, VMstore admin, TGC 10.0.10.0/24 1500 20 vMotion 10.0.20.0/24 9000 30 ESXi NFS to VMstore data (datastore traffic) 10.0.30.0/24 9000 35 guest NFS from worker VMs (option B only) 10.0.35.0/24 9000 40 VMstore replication 10.0.40.0/24 1500 50 Kubernetes node network and API VIP 10.0.50.0/24 1500 MTU must match on every hop of a VLAN: vmk or guest NIC, port group, vDS, UCS QoS class and vNIC, Nexus, VMstore interface. VLAN 35 exposes storage to guests: keep it separate from VLAN 30 and limit who can mount. data path control / API replication standby (fabric B) common failure
Figure 1. Reference architecture for Kubernetes on vSphere with Tintri VMstore: components, VLANs, subnets and MTU (example values).

The VMstore exports /tintri to every ESXi host over NFSv3 on VLAN 30 at MTU 9000; that is the datastore, and option A PVs are VMDK files on it. Workers sit on VLAN 50. Only with option B do they get a second NIC on VLAN 35 for guest NFS, deliberately not VLAN 30: the datastore network should never be reachable from a guest. CSI controllers on the control plane VMs talk HTTPS to vCenter (option A) and to the VMstore management address (option B).

The UCS and Nexus layer is unchanged from Part 2. Adding VLAN 35 means adding it to the vNIC templates on both fabrics and to the vPC, at the same MTU as VLAN 30.

07. Storage options A, B and C, and the decision matrix

Option A: vSphere CSI (CNS) on Tintri NFS datastore Option B: Tintri VMstore CSI, direct NFS from nodes Option C: mixed (A default, B by exception) Pod + PVC storageClassName: tintri-gold-csi StorageClass csi.vsphere.vmware.com, storagepolicyname vSphere CSI controller calls vCenter CNS (HTTPS 443) CNS volume (FCD VMDK) attached to worker VM via PVSCSI ESXi NFS client, vmk2 NFSv3 to VMstore data IP, VLAN 30 VMstore vDisk of the worker VM, per-VM QoS Pod + PVC storageClassName: tintri-csi-file StorageClass vmstore.csi.tintri.com Tintri CSI controller VMstore management API (HTTPS) Node plugin mount share /tintri/csi from data IP Guest NFS client, eth1 VLAN 35, privileged node pod VMstore one volume per PV, CSI managed object Snapshots and clones CSI snapshot = CNS (FCD) snapshot, 3 per volume by default, keep short Snapshots and clones CSI snapshot handled by the Tintri driver on the VMstore (README) Default class: option A RWO block for databases, queues, search, Prometheus mature path on VKS and OpenShift sizing limit: 59 volumes per node Exception class: option B per-PV stats, QoS and snapshots on the VMstore large clone and refresh workflows needs guest NFS VLAN and privileged pods RWX shares not from option A without vSAN File Services Tintri CSI lists RWO, ROX, RWOP only csi-driver-nfs: confirm support Governance one StorageClass per tier and option quota per class per namespace decision KD-04 records who may use B conformance run checks both paths VMstore sees both in one place Strength Weakness A: no guest storage network, VKS native, CNS UI A: VMstore QoS and snapshots are per worker VM B: per-volume visibility, QoS, clone on VMstore B: storage VLAN in the guest, smaller ecosystem C: right tool per workload C: two drivers to run and patch Access modes: A = RWO (RWX only with vSAN File Services). B = RWO, ROX, RWOP per the Tintri driver README.
Figure 2. Storage options A, B and C: what sits between a PVC and the VMstore in each.

Option A: vSphere CSI, CNS volumes on the Tintri NFS datastore

The vSphere CSI driver (provisioner csi.vsphere.vmware.com) asks vCenter’s Cloud Native Storage service to create a First Class Disk on a datastore that satisfies the StorageClass’s storage policy, then attaches it to the worker VM on a PVSCSI controller. The Broadcom documentation lists NFS 3 datastores (and NFS 4.1 datastores from vSphere 7.0 Update 2) among the supported storage, so a Tintri NFS datastore is a normal target. What the VMstore sees is a vDisk belonging to the worker VM it is attached to. Since API v310.171 (TxOS 5.4.2) the VMstore can also be told about the Kubernetes cluster itself, and then it reports each PV with its worker VM and vDisk (GET /v310/datastore/{uuid}/k8s/pv returns vdUuid, vmTintriUuid, pvcName, storageClassName).

The limits to design around: 59 RWO volumes per node VM with four PVSCSI controllers (one slot is the OS disk), 10,000 volumes per vCenter on NFS 3 datastores, three CSI snapshots per volume by default, and no expansion or deletion of a volume while it has snapshots. QoS on the VMstore is per VM in the v310 API (there is per-vDisk statistics and flash pinning, but no per-vDisk QoS call), so every PV on a worker shares that worker’s envelope. That is risk K-01, and section 08 turns it into a node-pool design rather than a problem.

Option B: Tintri VMstore CSI driver, direct NFS from the nodes

Tintri publishes the VMstore CSI driver at github.com/Tintri/vmstore-csi-driver (latest release v1.1.0, August 2025, which added the Helm chart and OpenShift support). The provisioner is vmstore.csi.tintri.com. The README lists static and dynamic provisioning, expansion, mount options, StorageClass secrets and topology as GA; access modes ReadWriteOnce, ReadOnlyMany and ReadWriteOncePod; and VMstore 5.6.0.1 or later. The node plugin mounts a VMstore folder shared over NFS (the README uses tintri/csi) inside the worker VM; the controller creates volumes through the VMstore management address. It needs privileged pods.

On the array side, the v310 API shows how those volumes become manageable objects: ApplianceCsiProperties tells the VMstore which directories and file extensions hold CSI volume files, and POST /v310/datastore/{uuid}/hypervisorManagerConfig/csi/refresh (since v310.191) “pushes the new CSI Managed Object to the filesystem and updates the VM and vDisk caches”. In other words each volume is tracked like a VM, which is where per-volume statistics, QoS and snapshots come from. Confirm the per-PV QoS semantics in the Tintri CSI documentation for your release.

Option C: mixed

Option A as the default class for everything RWO, option B as a named exception class for workloads that need per-volume control or fast array-side clones (R-06), and a separate, explicitly approved path for RWX (R-05). For RWX, neither A (no vSAN) nor B (no RWX in the driver’s access-mode list) qualifies. The two candidates are the upstream NFS CSI driver (nfs.csi.k8s.io, v4.13.6) pointed at an NFS gateway VM that lives on the Tintri datastore, or pointed directly at a VMstore share. The gateway VM is the conservative choice: it is an ordinary VM, so VMstore per-VM QoS, snapshots and replication apply to it unchanged. Pointing it directly at a VMstore share is a support question for Tintri; get the answer in writing first.

csi-driver-nfs snapshots are not array snapshots. The NFS CSI driver implements VolumeSnapshot by writing a .tar.gz (or .tar) archive of the directory onto the NFS server. That is fine for a model cache, and the wrong tool for anything with an RPO.

The decision matrix

Must-have filter first: R-05 (RWX) and R-06 (nightly 500 GiB clone in under 15 minutes). Option A fails both on its own. Option B fails R-05. Only C passes. The weighted score still shows what C costs, and that A would win without the must-haves.

CriterionWeightABCNotes
Supported path on the chosen platform20534A is the platform default everywhere; B depends on the Tintri operator for your OpenShift release
RWO database performance and maturity15545C uses A for databases
Per-PV visibility and QoS on the VMstore15354A gets per-PV visibility via the K8S registration, but QoS stays per worker VM
Snapshot and clone efficiency10354B clones on the array; A goes through CNS snapshots
Network and security exposure15523B needs a storage VLAN in the guest
Operational simplicity15532C runs two or three drivers
RWX available10113C via the approved NFS gateway path
Weighted score (of 500)100410330360Score = sum of weight x rating
Passes must-haves R-05, R-06nonoyesDecision: C (KD-04)

Write it this way: a reviewer who disagrees with a weight can change one number and see whether the outcome moves.

08. StorageClass and tier design mapped to Tintri

On one VMstore, two vSphere storage policies that both resolve to the same datastore do not give you two performance tiers. Be explicit about that in the design, because someone will assume otherwise. In this design the policy split is administrative (quota per class, reporting, and a hook for future placement on a second array). The performance tier is enforced on the VMstore, and since option A QoS is per worker VM, the unit of QoS is the node pool.

TierStorageClassOptionvSphere policy / Tintri objectQoS on the VMstoreSnapshots and DR
Gold (databases, queues)tintri-gold-csiApolicy k8s-tintri-gold; PVs are vDisks of db-pool workersdb-pool worker VMs in service group sg-k8s-db: a minimum reservation, no ceiling below 10,000Velero hourly with data mover; reclaim Retain
Silver (default)tintri-silver-csiApolicy k8s-tintri-silver; general-pool workersno minimum; ceiling on the general pool so merges and batch jobs cannot starve the db poolVelero daily; reclaim Delete
Clone (exception)tintri-csi-fileBshare /tintri/csi; one CSI managed object per PVper-volume, per the Tintri CSI documentationCSI snapshots on the VMstore; Velero for off-array copies
Shared (exception)nfs-sharedRWX via NFS gateway VMgateway VM on ds-tintri-k8sper-VM QoS on the gateway VMVMstore snapshots and replication of the gateway VM

Node pools become QoS domains (KD-13). Databases get a dedicated pool with a taint and a matching toleration, so their PVs only ever attach to db-pool workers. The VMstore then sees a small set of VMs whose combined per-VM statistics are the database tier, and TGC service group QoS can be applied to them as a group (see the TGC API guide for PUT /v310/servicegroup/{id}/qosConfig). The failure mode to avoid is a ceiling on a worker VM that someone set during an incident and never removed; every PV on that worker inherits it. The conformance collection checks for exactly that.

Template: vSphere CSI StorageClasses (option A)

# storageclasses-option-a.yaml
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: tintri-gold-csi
provisioner: csi.vsphere.vmware.com
parameters:
  storagepolicyname: "k8s-tintri-gold"     # tag-based policy; no datastoreurl (KD-06)
  csi.storage.k8s.io/fstype: "ext4"
reclaimPolicy: Retain                        # a deleted PVC must not delete database data
allowVolumeExpansion: true
volumeBindingMode: WaitForFirstConsumer      # place after scheduling, topology-safe
---
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: tintri-silver-csi
  annotations:
    storageclass.kubernetes.io/is-default-class: "true"
provisioner: csi.vsphere.vmware.com
parameters:
  storagepolicyname: "k8s-tintri-silver"
  csi.storage.k8s.io/fstype: "ext4"
reclaimPolicy: Delete
allowVolumeExpansion: true
volumeBindingMode: WaitForFirstConsumer
---
apiVersion: snapshot.storage.k8s.io/v1
kind: VolumeSnapshotClass
metadata:
  name: tintri-csi-snap
driver: csi.vsphere.vmware.com
deletionPolicy: Delete

On OpenShift, the operator creates thin-csi and marks it default. Exactly one default class is a design rule (KD-03); use the OpenShift “managing the default storage class” procedure for your release so the operator does not put the annotation back, rather than editing thin-csi by hand.

Template: Tintri VMstore CSI StorageClass and secret (option B)

# tintri-csi-config.tmpl.yaml  (rendered with envsubst, never committed rendered)
vmstore_map:
  vmstore01:
    mountPoint: /tintri-csi              # where the node plugin mounts the share
    dataIp: <VMSTORE_GUEST_NFS_IP>       # VMstore data address on VLAN 35
    managementAddress: vmstore01.lab.local
    vmstoreFS: /tintri/csi               # folder shared over NFS on the VMstore
    zone: zone-a                         # matches topology.vmstore.csi.tintri.com/zone
    username: ${TINTRI_CSI_USER}
    password: ${TINTRI_CSI_PASSWORD}
debug: false
# render, create the secret, remove the rendered file
export TINTRI_CSI_USER='svc-k8s-csi'
read -rs TINTRI_CSI_PASSWORD && export TINTRI_CSI_PASSWORD
envsubst < tintri-csi-config.tmpl.yaml > vmstore-csi-file-driver-config.yaml
kubectl -n <TINTRI_CSI_NAMESPACE> create secret generic vmstore-csi-file-driver-config \
  --from-file=vmstore-csi-file-driver-config.yaml
shred -u vmstore-csi-file-driver-config.yaml
# storageclass-option-b.yaml
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: tintri-csi-file
provisioner: vmstore.csi.tintri.com
allowVolumeExpansion: true
reclaimPolicy: Delete
allowedTopologies:
- matchLabelExpressions:
  - key: topology.vmstore.csi.tintri.com/zone
    values: ["zone-a"]
mountOptions:
  - <MOUNT_OPTIONS_FROM_TINTRI_CSI_DOCS>    # e.g. the NFS version Tintri recommends for your TxOS
---
apiVersion: snapshot.storage.k8s.io/v1
kind: VolumeSnapshotClass
metadata:
  name: tintri-vmstore-snap
driver: vmstore.csi.tintri.com
deletionPolicy: Delete

Key names are from the Tintri repository’s config, README and examples. The VMstore password ends up in a Secret, hence a dedicated account, encryption at rest and a namespace only the platform team can read (section 14).

09. Backup and DR

Protecting PV data, the Kubernetes objects that give it meaning, and the infrastructure VMs are three jobs with three tools.

WhatMechanismRPO / RTO in this designWhy not the alternative
Database PVs (option A)Velero schedule, CSI snapshot, data mover to S3-compatible object storage replicated to the DR site; restore into the DR cluster on the DR VMstore1 h / 4 h (R-04)VMstore replication of a worker VM captures whatever happens to be attached to it, not a PVC with its namespace and objects
Tighter database RPODatabase-native replication (for example PostgreSQL streaming) to a standby cluster at DRminutesStorage-level copies of a running database are crash-consistent at best
Option B PVsCSI snapshots on the VMstore for fast local restore; Velero data mover for the off-array copy1 h / 4 hArray snapshots alone are on the same array
RWX gateway VMVMstore snapshots and replication through a TGC service groupper service group policyIt is a VM, so the VM-level tools fit
Cluster objectsGitOps repository plus Velero resource backupsper commit / 1 hetcd snapshots restore a whole cluster, not a namespace
Worker and control plane VMsRebuilt from the installer or machine setsn/aReplicating disposable nodes wastes replication bandwidth

Two vSphere CSI rules shape the Velero design (KD-07). The default is three snapshots per volume, and a volume with snapshots can be neither expanded nor deleted. So CSI snapshots must be short-lived: the data mover copies them to object storage, and you confirm in the first test backup that no VolumeSnapshot is left behind afterwards. Velero has had CSI support built in since 1.14 (no separate plugin) and v1.19.0 is current; enable it with the CSI feature flag and use the node agent for data movement. Note that the Velero project’s GitHub location moved to github.com/velero-io/velero, which matters for anyone pinning images or Go modules.

# Velero with CSI snapshots and the data mover (Velero 1.19.x)
velero install \
  --provider aws \
  --plugins velero/velero-plugin-for-aws:<PLUGIN_VERSION> \
  --bucket <BUCKET> \
  --secret-file ./credentials-velero \
  --backup-location-config region=<REGION>,s3ForcePathStyle=true,s3Url=https://<S3_ENDPOINT> \
  --use-node-agent \
  --features=EnableCSI

# hourly, data moved off the array, 72 h retention (R-04)
velero schedule create db-hourly \
  --schedule="0 * * * *" \
  --include-namespaces team-a,team-b \
  --snapshot-move-data \
  --ttl 72h0m0s

10. Multi-tenancy

One namespace per team, a ResourceQuota per namespace with a storage line per StorageClass, and a zero quota on the exception classes for every namespace that has not been approved for them. That last trick is the cheapest governance control in Kubernetes: an unapproved team can see the class but cannot consume a byte of it.

# quota-team-a.yaml
apiVersion: v1
kind: ResourceQuota
metadata:
  name: storage
  namespace: team-a
spec:
  hard:
    requests.storage: "6Ti"
    persistentvolumeclaims: "60"
    tintri-gold-csi.storageclass.storage.k8s.io/requests.storage: "4Ti"
    tintri-silver-csi.storageclass.storage.k8s.io/requests.storage: "2Ti"
    tintri-csi-file.storageclass.storage.k8s.io/requests.storage: "0"     # not approved for option B
    nfs-shared.storageclass.storage.k8s.io/requests.storage: "0"          # not approved for RWX

On VKS the same intent is set one level up: a vSphere Namespace carries storage_specs, each a storage policy with a limit, and the guest clusters in that namespace inherit it. The vSphere Automation API returns those specs from GET /api/vcenter/namespaces/instances/{namespace}, which is what KD-09 checks on VKS. For hard isolation (different security zones, regulated data) use separate clusters, not namespaces; the storage design does not change.

11. Network design and packet flows

The single most useful thing to understand about the two storage options is where NFS starts. In option A the pod’s I/O is SCSI until it reaches ESXi; the guest never sees the storage network. In option B the worker VM is the NFS client and the storage network is inside the guest.

Option A: pod to VMstore through a CNS volume (storage I/O stays SCSI inside the VM; NFS starts at ESXi) Inside the worker VM (guest) Pod write() to /data on PVC mount 1 Guest kernel ext4 / xfs on /dev/sdX (PV) 2 PVSCSI vHBA SCSI command no IP, no VLAN 3 ESXi host (VMkernel) VMDK on NFS FCD file on ds-tintri-k8s 4 NFS client NFSv3, TCP 2049 VAAI-NAS plugin 5 vmk2 VLAN 30 tag on port group, MTU 9000 6 vmnic0 / VIC vNIC fabric A, 802.1Q VLAN 30 tagged 7 UCS FI A end-host mode QoS class MTU 9216 8 Nexus 9000 vPC VLAN 30, MTU 9216 port-channel to array 9 VMstore data IP 10.0.30.50:2049 VLAN 30 10 VMstore /tintri, vDisk of the worker VM 11 UCS FI B standby for VLAN 30 on fabric A loss Common failure: MTU black hole between hops 6 and 9 One hop left at 1500 (UCS QoS class, vDS, Nexus VLAN or VMstore port): small NFS ops and the mount work, 8 KB+ writes are dropped, the pod hangs in D state and ESXi logs NFS timeouts. Test: vmkping -I vmk2 -d -s 8972 10.0.30.50 on every host. Fabric B must carry VLAN 30 at the same MTU, or failover is an outage. data path control / API replication standby (fabric B) common failure
Figure 4. Packet flow, option A: pod to VMstore through a CNS volume on the Tintri NFS datastore.
Option B: pod to VMstore over guest NFS (the worker VM is the NFS client; ESXi only switches frames) Inside the worker VM (guest) Pod write() to /data bind mount 1 Node mount /tintri-csi from VMstore share 2 NFS client guest kernel, TCP 2049, mountOptions 3 eth1 vmxnet3 10.0.35.21/24 untagged, MTU 9000 4 ESXi host (vDS only) pg-k8s-nfs vDS tags VLAN 35 MTU 9000 on vDS 5 vmnic0 VIC vNIC fabric A VLAN 35 allowed 6 UCS FI A VLAN 35 in vNIC template, MTU 9216 7 Nexus 9000 vPC VLAN 35, MTU 9216 no routing for NFS 8 VMstore data IP 10.0.35.50:2049 * share /tintri/csi 9 VMstore volume per PV CSI managed object 10 Tintri CSI controller pod control plane VM, eth0 VLAN 50 CreateVolume, snapshots VMstore admin 10.0.10.50 HTTPS 443 (API) HTTPS, routed VLAN 50 to 10 Common failures on this path Wrong or missing VLAN on pg-k8s-nfs or in the UCS vNIC template: mount hangs, then times out. Guest eth1 at 9000 but one hop at 1500: mount succeeds, large writes stall (same black hole as option A). Share not exported to the node subnet, or root squash vs fsGroup: “access denied” or permission errors. NFS routed through a firewall instead of staying on VLAN 35: latency jumps and state tables fill. * A VMstore data address on a second VLAN is an assumption here: confirm data interface options for your model and TxOS release before committing to VLAN 35. data path control / API common failure
Figure 5. Packet flow, option B: pod to VMstore over guest NFS with the Tintri VMstore CSI driver.

Ports and paths

FromToProtocol / portPurposeStatus
ESXi vmk2 (VLAN 30)VMstore data IPNFSv3, TCP 2049Datastore I/O (option A)Verified
Worker eth1 (VLAN 35)VMstore data IP on VLAN 35NFS, TCP 2049Guest NFS (option B)Port verified; NFSv3 also uses portmapper and mountd, so confirm the full list for your TxOS
vSphere CSI controllervCenterHTTPS 443CNS create, attach, snapshotVerified
Tintri CSI controllerVMstore management addressHTTPSVolume create and delete through the VMstore APIPort 443 assumed; confirm
VMstore admin (VLAN 10)Kubernetes API VIPTCP 6443K8S registration: VMstore reads PVs, PVCs, pods6443 verified on kubernetes.io; the VMstore side is per the v310 K8sConfig DTO
Admin workstationvCenter, VMstore, TGC, kube-apiserverHTTPS 443, TCP 6443Postman, kubectl, PowerCLIVerified
kube-apiserverkubeletTCP 10250exec, logs, metricsVerified
vCenterESXiTCP 443 and 902Management and attach operationsVerified
VMstoreDR VMstore (VLAN 40)TCP 1304 (async), 1338 (sync)ReplicationFrom older public Tintri guidance; confirm for TxOS 6.0.x
Velero node agentObject storageHTTPS 443Data mover uploadsEndpoint-specific

MTU must match on every hop of a VLAN. For VLAN 35 that means guest eth1, the pg-k8s-nfs port group, the vDS, the UCS QoS system class and vNIC template, the Nexus VLAN and the VMstore interface. A mismatch does not fail the mount; it fails the first large write, which is why it gets misdiagnosed as a storage performance problem. The jumbo frame check across every host covers VLAN 30; run the guest equivalent (ping -M do -s 8972 <VMSTORE_GUEST_NFS_IP>) from one worker per host for VLAN 35. Keep NFS on its own layer-2 segment: routing guest NFS through a firewall adds latency and fills state tables during a node drain.

Nothing on the node network should reach VLAN 30, and only the control plane nodes running the vSphere CSI controller need vCenter on 443.

12. Failure domains and topology

Phase 1 of the worked design is a single zone: one vSphere cluster, one VMstore, one Kubernetes cluster, with vSphere HA and DRS anti-affinity doing the work inside it (control plane VMs on three different hosts; db-pool workers spread so that one host failure removes at most one database replica). Phase 2 adds a second zone only when there is a second, independent VMstore; a zone that shares the array is not a failure domain for storage.

PlatformZone mechanismStorage consequence
vSphere CSI (upstream, OpenShift)vSphere tag categories such as k8s-region and k8s-zone, listed in [Labels] topology-categories; nodes get topology.csi.vmware.com/k8s-zone labelsEvery node VM must carry a tag in each listed category or registration fails. A PV lives in one zone; pods follow it.
OpenShiftFailure domains across up to three vCenters, defined at installOne VMstore datastore per failure domain; storage policies per zone
VKSvSphere Zones on the Supervisor; a namespace can span up to threeZonal storage policies; each zone needs its own datastore
Tintri CSI (option B)zone per VMstore in vmstore_map, label topology.vmstore.csi.tintri.com/zoneallowedTopologies in the class pins volumes to the VMstore of that zone

WaitForFirstConsumer is not optional once zones exist. With Immediate binding the volume is created before the scheduler has chosen a node, and you get a PV in zone A for a pod that can only run in zone B.

13. Sizing, worked

Inputs come from the workload profile in section 04. Assumptions are flagged so they can be replaced with measured values. Compute and HA sizing for the ESXi cluster itself follows post 25 and is not repeated.

WorkloadPVCsSize eachProvisionedIOPS each (steady)
PostgreSQL data (6 clusters x 3)18200 GiB3,600 GiB3,000 primary / 800 replica
PostgreSQL WAL1850 GiB900 GiB(in the figure above)
Kafka brokers31,024 GiB3,072 GiB2,500
OpenSearch data nodes62,048 GiB12,288 GiB1,500
Prometheus (HA pair)2500 GiB1,000 GiB1,000
Small application PVCs12010 GiB1,200 GiB50
RWO total16722,060 GiB
RWX model cache (gateway VM)12,048 GiB2,048 GiB1,500
Node OS disks (3 control plane + 12 workers)15 VMDKs120 GiB1,800 GiB100
STEP 1  Attach counts (option A, vSphere CSI limit 59 per node VM)
  RWO PVCs                         167
  workers                           12   (2 per host on 6 hosts)
  average per worker               167 / 12 = 13.9
  after losing one host (2 workers) 167 / 10 = 16.7
  skew factor 2 (anti-affinity is not perfect)  2 x 16.7 = 33.4
  design budget (KD-05)            40 per node, about 70% of 59
  33.4 <= 40  -> OK. Revisit when RWO PVCs pass 200 (2 x 200/10 = 40).

STEP 2  Capacity
  provisioned  = 22,060 (RWO) + 2,048 (RWX) + 1,800 (node disks) = 25,908 GiB  (25.3 TiB)
  written yr 1 = 25,908 x 0.60 (A-02)                              = 15,545 GiB
  + snapshot and change reserve 20%  = 15,545 x 1.20              = 18,654 GiB
  3-year growth at 30%/yr            = 1.30^3 = 2.197
  logical at year 3                  = 18,654 x 2.197             = 40,982 GiB  (40.0 TiB)
  physical at 2:1 reduction (A-01)   = 40,982 / 2                 = 20,491 GiB  (20.0 TiB)
  usable needed at 80% ceiling       = 20,491 / 0.80              = 25,614 GiB  (25.0 TiB)

STEP 3  IOPS
  PostgreSQL primaries   6 x 3,000 = 18,000
  PostgreSQL replicas   12 x   800 =  9,600
  Kafka                  3 x 2,500 =  7,500
  OpenSearch             6 x 1,500 =  9,000
  small PVCs           120 x    50 =  6,000
  Prometheus             2 x 1,000 =  2,000
  RWX gateway VM                   =  1,500
  node OS disks         15 x   100 =  1,500
  steady total                     = 55,100
  peak (x1.5)                      = 82,650   -> compare with the VMstore model's
                                                 published capability at your block size

STEP 4  Per-worker QoS envelope (option A: QoS is per worker VM)
  worst db-pool worker: 2 PG primaries + 1 OpenSearch + 10 small + 1 Prometheus
                        = 6,000 + 1,500 + 500 + 1,000 = 9,000 IOPS
  rule (KD-13): no ceiling on a db-pool worker below 10,000 normalized IOPS;
  any minimum reservation is set on the service group, and the sum of minimums
  stays inside the VMstore's QoS budget (see post 25 for qosInfo).

STEP 5  Network
  average I/O 16 KiB (measured on the VM estate; replace with yours)
  steady  55,100 x 16,384 B = 902.8 MB/s = 7.2 Gb/s
  peak    x 1.5             = 10.8 Gb/s
  per host (6 hosts, even)  = 1.8 Gb/s peak on VLAN 30 + VLAN 35
  -> 2 x 25 GbE per host and the VMstore data ports are not the constraint;
     replication on VLAN 40 is sized separately (post 25, step 6).

STEP 6  Object counts
  CNS volumes        167 (+ growth) against 10,000 per vCenter on NFS 3: no concern
  CSI snapshots      167 x 3 default max = 501 at worst; the design keeps them transient
  VMstore objects    15 node VMs + gateway VM + option B volumes (CSI managed objects)

For the executive summary: about 25 TiB usable VMstore capacity at year three under the stated assumptions, and the attach budget, not capacity or IOPS, is the first limit you hit.

14. Security

  • Least privilege per consumer (KD-16). Separate accounts for vSphere CSI (only the CNS privileges its documentation lists), the Tintri CSI driver, and the read-only conformance runs. The CNS query needs Cns.Searchable on the root folder.
  • Secrets. vsphere-config-secret (namespace vmware-system-csi on upstream; managed by the operator on OpenShift) and vmstore-csi-file-driver-config both hold passwords. Encrypt Secrets at rest, restrict access to those namespaces, rotate with the accounts.
  • Privileged pods. The Tintri CSI node plugin needs them; on OpenShift, scope the security context constraint to the driver’s service accounts.
  • NFS exposure (K-02). VLAN 35 carries only guest NFS. Share /tintri/csi to the VLAN 35 node subnet only, never to VLAN 30 or the node network. Decide root squash and the pod fsGroup policy together; the Tintri StorageClass parameter mountPointPermissions defaults to 0777, so set it deliberately.
  • VMstore to Kubernetes trust (K-04). The VMstore holds a client certificate for the cluster. Bind it to a read-only ClusterRole and rotate before clientCertValidUntil.
  • Audit token. The conformance service account gets a short-lived token from kubectl create token, stored in the CI secret store, never in the Postman environment file.
  • TLS. Trust the vCenter, VMstore and Kubernetes CAs on the runner. --insecure is for a lab only.

15. Observability

Correlation is the design question: one slow pod followed to a vDisk. The keys are the PV name (Kubernetes), the CNS volume ID (spec.csi.volumeHandle), and the VMstore’s vdUuid and vmTintriUuid from GET /v310/datastore/{uuid}/k8s/pv.

16. Design decisions register

Same format as post 25: option set, choice, justification, impact, and the check that proves it. The last column is the request name in the Postman collection.

IDDecisionJustificationImpact / riskCheck
KD-01Kubernetes PVs land on ds-tintri-k8s, selected by a tag-based storage policyPlacement follows policy, so a second array later is a policy change, not a StorageClass rewriteTag must exist on the datastore before the first PVCvCenter: design NFS datastore
KD-02Storage policies k8s-tintri-gold and k8s-tintri-silverQuota and reporting per class; VKS namespaces bind to policiesBoth resolve to one datastore today; not a performance tiervCenter: storage policies
KD-03Classes gold (Retain), silver (default, Delete), clone (B), shared (RWX); WaitForFirstConsumer; expansion on; exactly one defaultRetain protects databases from a deleted PVC; late binding is topology-safeRetain leaves released PVs to clean upKD-03 gold StorageClass
KD-04Storage option C: A default, B by exception, RWX through csi-driver-nfs to an NFS gateway VMOnly option passing R-05 and R-06 (section 07)Two or three drivers to patch; exception approval process neededK8s: CSI drivers installed
KD-05Attach budget 40 RWO volumes per worker (vSphere CSI limit 59)Headroom for a host failure with skew (section 13, step 1)Above 200 RWO PVCs add workersKD-05 attach headroom per node
KD-06No datastoreurl in any class; all CNS volumes on the design datastoreAvoid hard-wired placement that survives a migrationOff-design volumes show up in the CNS queryKD-06 CNS volumes on the design datastore
KD-07CSI snapshots are transient; Velero data mover copies them off-arrayvSphere CSI: 3 snapshots per volume by default; snapshots block expansion and deletionObject storage at both sitesKD-07 VolumeSnapshotClass present
KD-08Option B only on VLAN 35 via a dedicated eth1; Tintri CSI in its own namespace with a dedicated VMstore accountKeeps the datastore VLAN out of guests (K-02)New VLAN through the UCS and Nexus change processKD-08 option B: CSI properties
KD-09Namespace per team, per-class storage quota, zero quota on exception classes; vSphere Namespace storage limits on VKSR-03Quota changes go through the platform teamKD-09 storage quota / vSphere Namespace storage specs
KD-10OpenShift 5.0 on vSphere 9 (VCF 9.x)C-03; Tintri operator available in the Red Hat catalogConfirm the OpenShift and VCF support matrix for 5.0 before go-livevCenter: version; K8s: version
KD-11Single zone in phase 1; a zone is added only with its own VMstoreA zone sharing the array is not a storage failure domainNo storage-level site resilience in phase 1 (DR is restore)manual review
KD-12Register the cluster on the VMstore (K8S manager) with a read-only client certificateR-07: PV to vDisk mapping on the arrayCertificate expiry (K-04) is checkedKD-12 cluster registered; PV-to-vDisk map
KD-13Node pools are QoS domains; db-pool workers have no ceiling below 10,000 normalized IOPSOption A QoS is per worker VM (K-01)Taints and tolerations must be kept correctKD-13 worker VM QoS ceiling
KD-14VMstore used capacity below 80%Headroom for snapshots, growth and rebuildsProcurement trigger at 70%KD-14 capacity under the ceiling
KD-15DR by Velero restore into a DR cluster; database-native replication where RPO is under 1 hour; worker VMs are not replicatedR-04; Kubernetes owns the PV lifecycleRestore must be rehearsed quarterlyrestore test record
KD-16Least-privilege accounts per consumer; short-lived audit token; TLS verification onAudit and blast radiusMore accounts to rotate401/403 tests in every folder

17. Design to API: the conformance sequence

Figure 3 is the order the collection reads each KD back.

newman / script Postman runner kube-apiserver TCP 6443, Bearer vCenter Server /api and /sdk, 443 Tintri VMstore /api/v310, 443 1 GET /version 200 gitVersion 2 GET /apis/storage.k8s.io/v1/storageclasses 200 provisioner, parameters 3 GET /apis/storage.k8s.io/v1/csinodes 200 drivers[].allocatable.count 4 GET /api/v1/persistentvolumes 200 spec.csi.volumeHandle 5 POST /api/session (Basic) 201 “<session-id>” 6 GET /api/vcenter/storage/policies 200 policy, name 7 POST /sdk/vim25/{rel}/vsan/CnsVolumeManager/cns-volume-manager/CnsQueryVolume 200 volumes[].datastoreUrl 8 GET /api/info (no auth) 200 supportedVersionSet 9 POST /api/v310/session/login (fullApiVersion) 200 role, Set-Cookie JSESSIONID 10 GET /api/v310/datastore/default/hypervisorManagerConfig 200 hypervisorType K8S entry 11 GET /api/v310/datastore/default/k8s/pv 200 name, vdUuid, vmTintriUuid 12 GET /api/v310/virtualDisk/{vmId}/{vdiskId}/statsRealtime 200 latency, IOPS per PV 13 POST /api/v310/session/logout 204 14 DELETE /api/session 204 401: re-login Branches: 401 from any endpoint: re-run the login for that endpoint once, then stop. 403 from kube-apiserver: the reader ClusterRole is not bound. 409 never expected: the collection is read-only. Step 11 returns no items: the Kubernetes cluster is not registered on the VMstore (step 10), so PV-to-vDisk checks are skipped.
Figure 3. The design conformance API sequence across the Kubernetes API, vCenter and the VMstore, with failure branches.

Auth first: Kubernetes token, vCenter session, VMstore session

The Kubernetes API takes a bearer token on every request; there is no login call. Create a dedicated service account with a read-only ClusterRole and mint a short-lived token for each run.

# k8s-design-audit.yaml
apiVersion: v1
kind: Namespace
metadata:
  name: k8s-audit
---
apiVersion: v1
kind: ServiceAccount
metadata:
  name: k8s-design-audit
  namespace: k8s-audit
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: k8s-design-audit-read
rules:
- apiGroups: [""]
  resources: ["persistentvolumes", "persistentvolumeclaims", "resourcequotas", "nodes", "namespaces"]
  verbs: ["get", "list"]
- apiGroups: ["storage.k8s.io"]
  resources: ["storageclasses", "csidrivers", "csinodes", "volumeattachments"]
  verbs: ["get", "list"]
- apiGroups: ["snapshot.storage.k8s.io"]
  resources: ["volumesnapshotclasses", "volumesnapshots", "volumesnapshotcontents"]
  verbs: ["get", "list"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: k8s-design-audit-read
subjects:
- kind: ServiceAccount
  name: k8s-design-audit
  namespace: k8s-audit
roleRef:
  kind: ClusterRole
  name: k8s-design-audit-read
  apiGroup: rbac.authorization.k8s.io
kubectl apply -f k8s-design-audit.yaml
export K8S_TOKEN=$(kubectl -n k8s-audit create token k8s-design-audit --duration=1h)

Raw HTTP, then curl, then PowerShell, for the first real call:

GET /apis/storage.k8s.io/v1/storageclasses/tintri-gold-csi HTTP/1.1
Host: 10.0.50.10:6443
Authorization: Bearer <K8S_TOKEN>
Accept: application/json

HTTP/1.1 200 OK
{
  "kind": "StorageClass",
  "apiVersion": "storage.k8s.io/v1",
  "metadata": { "name": "tintri-gold-csi" },
  "provisioner": "csi.vsphere.vmware.com",
  "parameters": { "csi.storage.k8s.io/fstype": "ext4", "storagepolicyname": "k8s-tintri-gold" },
  "reclaimPolicy": "Retain",
  "allowVolumeExpansion": true,
  "volumeBindingMode": "WaitForFirstConsumer"
}
K8S=https://10.0.50.10:6443
curl -sS --cacert ./k8s-ca.crt -H "Authorization: Bearer $K8S_TOKEN" \
  "$K8S/apis/storage.k8s.io/v1/storageclasses/tintri-gold-csi" |
  jq '{provisioner, parameters, reclaimPolicy, volumeBindingMode}'
# PowerShell 7.2+
$token = ConvertTo-SecureString $env:K8S_TOKEN -AsPlainText -Force
Invoke-RestMethod -Uri 'https://10.0.50.10:6443/apis/storage.k8s.io/v1/storageclasses/tintri-gold-csi' `
  -Authentication Bearer -Token $token |
  Select-Object provisioner, reclaimPolicy, volumeBindingMode

The vCenter session is POST /api/session with Basic auth; the 201 body is the session ID as a JSON string, sent afterwards as vmware-api-session-id, and ended with DELETE /api/session (204). From vSphere 8.0 Update 3 the same header also works on the Virtual Infrastructure JSON API under /sdk/vim25/..., which is how one session covers the CNS query below. The VMstore login is a RestApiCredentials POST with fullApiVersion set (v310.207 for TxOS 6.0.3); the session is the JSESSIONID cookie and the logout is POST /api/v310/session/logout.

KD-06: CNS volumes for this cluster, through the VI JSON API

There is no /api/... endpoint for CNS volumes. The query lives on the vSAN service path of the Virtual Infrastructure JSON API, managed object cns-volume-manager, and works on NFS datastores like any other: CNS is a vCenter service, not a vSAN feature. The filter takes containerClusterIds (the CSI cluster-id), datastores, names, labels, health and compliance filters, up to 1,000 volume IDs, and a cursor for paging. It needs Cns.Searchable.

POST /sdk/vim25/9.0.0.0/vsan/CnsVolumeManager/cns-volume-manager/CnsQueryVolume HTTP/1.1
Host: vcenter01.lab.local
vmware-api-session-id: <session-id>
Content-Type: application/json

{ "filter": { "_typeName": "CnsQueryFilter", "containerClusterIds": ["k8s-prod-01"] } }

HTTP/1.1 200 OK        (trimmed, values illustrative)
{
  "_typeName": "CnsQueryResult",
  "volumes": [ {
    "volumeId": { "id": "<cns-volume-id>" },
    "name": "pvc-6b2c0d1e-....",
    "volumeType": "BLOCK",
    "datastoreUrl": "ds:///vmfs/volumes/<datastore-id>/",
    "storagePolicyId": "<policy-id>",
    "backingObjectDetails": { "capacityInMb": 204800 },
    "healthStatus": "<status>",
    "datastoreAccessibilityStatus": "<status>"
  } ],
  "cursor": { "offset": 1, "limit": 1, "totalRecords": 1 }
}
VC=https://vcenter01.lab.local
SID=$(curl -sS -X POST -u "$VC_USER:$VC_PASSWORD" "$VC/api/session" | tr -d '"')
curl -sS -X POST "$VC/sdk/vim25/9.0.0.0/vsan/CnsVolumeManager/cns-volume-manager/CnsQueryVolume" \
  -H "vmware-api-session-id: $SID" -H 'Content-Type: application/json' \
  -d '{"filter":{"_typeName":"CnsQueryFilter","containerClusterIds":["k8s-prod-01"]}}' |
  jq -r '.volumes[] | [.name, .datastoreUrl, .backingObjectDetails.capacityInMb] | @tsv'
curl -sS -X DELETE -H "vmware-api-session-id: $SID" "$VC/api/session" -o /dev/null -w '%{http_code}\n'
# PowerShell 7.2+
$vc   = 'https://vcenter01.lab.local'
$cred = [pscredential]::new($env:VC_USER, (ConvertTo-SecureString $env:VC_PASSWORD -AsPlainText -Force))
$sid  = Invoke-RestMethod "$vc/api/session" -Method Post -Authentication Basic -Credential $cred
$h    = @{ 'vmware-api-session-id' = $sid }
$body = @{ filter = @{ _typeName = 'CnsQueryFilter'; containerClusterIds = @('k8s-prod-01') } } | ConvertTo-Json -Depth 5
$r = Invoke-RestMethod "$vc/sdk/vim25/9.0.0.0/vsan/CnsVolumeManager/cns-volume-manager/CnsQueryVolume" `
       -Method Post -Headers $h -Body $body -ContentType 'application/json'
$r.volumes | Select-Object name, datastoreUrl, @{n='GiB';e={$_.backingObjectDetails.capacityInMb/1024}}
Invoke-RestMethod "$vc/api/session" -Method Delete -Headers $h

Use the release path your vCenter reports (the operation’s reference is written against schema 9.1.1.0). Before vSphere 8.0 Update 3 the VI JSON API needs its own login, covered in post 21.

KD-12: the PV-to-vDisk map from the VMstore

Once the cluster is registered on the VMstore (a hypervisorManagerConfig entry of type K8S, carrying apiEndpointUrl, the CA and client certificate, clusterName and a tanzuCluster flag), the VMstore exposes the cluster’s namespaces, deployments, pods, containers, PVs and PVCs under /v310/datastore/{uuid}/k8s/..., all since v310.171.

GET /api/v310/datastore/default/k8s/pv HTTP/1.1
Host: vmstore01.lab.local
Cookie: JSESSIONID=<opaque>

HTTP/1.1 200 OK        (trimmed, values illustrative)
{
  "typeId": "com.tintri.api.rest.v310.dto.Page",
  "filteredTotal": 167,
  "items": [ {
    "typeId": "com.tintri.api.rest.v310.dto.domain.beans.k8s.PersistentVolume",
    "name": "pvc-6b2c0d1e-....",
    "clusterName": "k8s-prod-01",
    "pvcName": "data-pg-orders-0", "pvcNamespace": "team-a",
    "storageClassName": "tintri-gold-csi",
    "accessModes": ["ReadWriteOnce"],
    "vmName": "k8s-prod-01-w-db-03",
    "vmTintriUuid": "<tintri-vm-uuid>",
    "vdUuid": "<tintri-vdisk-uuid>",
    "statusPhase": "Bound"
  } ]
}
# curl: the PV map as TSV (session from the login in post 22)
curl -sS -b "JSESSIONID=$TSID" "https://vmstore01.lab.local/api/v310/datastore/default/k8s/pv" |
  jq -r '.items[] | [.pvcNamespace, .pvcName, .name, .vmName, .vdUuid] | @tsv'
# Python 3: PV -> worker VM -> vDisk, then that vDisk's realtime stats
import os, requests
base = "https://vmstore01.lab.local/api/v310"
s = requests.Session(); s.verify = os.environ.get("VMSTORE_CA", True)
s.post(f"{base}/session/login", json={
    "typeId": "com.tintri.api.rest.vcommon.dto.rbac.RestApiCredentials",
    "username": os.environ["TINTRI_USER"], "password": os.environ["TINTRI_PASSWORD"],
    "fullApiVersion": "v310.207"}, timeout=60).raise_for_status()
try:
    pvs = s.get(f"{base}/datastore/default/k8s/pv", timeout=60).json().get("items", [])
    for pv in pvs:
        if not pv.get("vdUuid"):
            continue
        st = s.get(f"{base}/virtualDisk/{pv['vmTintriUuid']}/{pv['vdUuid']}/statsRealtime", timeout=60).json()
        last = (st.get("items") or [{}])[-1]
        print(pv["pvcNamespace"], pv["pvcName"], pv["vmName"], str(last)[:160])
finally:
    s.post(f"{base}/session/logout", timeout=30)

Print one stats slice and pick the latency and IOPS fields you trend. An empty PV list while the cluster has PVs means a missing registration or an expired certificate: the first branch in Figure 3.

If you are on older releases. The /k8s/... calls need v310.171 (TxOS 5.4.2); csiProperties and the CSI refresh need v310.191 (TxOS 5.6.0). On vSphere 9.1 GET /api/vcenter/namespace-management/clusters is deprecated in favour of GET /api/vcenter/namespace-management/supervisors/summaries; use the latter everywhere. Scripts that log out of the VMstore with GET or log in without fullApiVersion should be updated.

18. The design conformance collection: Postman and newman

31 read-only requests in five folders, in the order of Figure 3: 01 Auth, 02 Discover, 03 Verify (one request per KD), 04 Troubleshoot, 05 Logout. A collection-level pre-request script attaches the bearer token to Kubernetes URLs, the session header to vCenter URLs (both /api and /sdk) and the cookie to VMstore URLs, so the requests run unattended in Collection Runner or newman. Requests that do not apply skip themselves with pm.execution.skipRequest(): the VKS-only checks when platform is not vks, the PV-map checks when no K8S manager is registered on the VMstore, and the option B check when optionB is false.

Import and run

  1. Postman: Import, select both files, pick the environment, fill password, tintriPassword and k8sToken (all secret type, empty in the file), and set datastoreUrl from the first CNS query result.
  2. Run the folders in order with Collection Runner. 01 Auth must pass before anything else means anything.
  3. newman needs 6.1.0 or later because of pm.execution.skipRequest; 6.2.3 is current. Pass secrets on the command line from the CI secret store, never in the environment file.
  4. In CI, run it nightly and after every change window. A failed KD test is a design drift ticket, not a monitoring alert.
npm install -g newman@6
export K8S_TOKEN=$(kubectl -n k8s-audit create token k8s-design-audit --duration=1h)
newman run 27-vmware-kubernetes-tintri-solutions-architect-design-guide.postman_collection.json \
  -e 27-vmware-kubernetes-tintri-solutions-architect-design-guide.postman_environment.json \
  --env-var "password=$VC_PASSWORD" \
  --env-var "tintriPassword=$TINTRI_PASSWORD" \
  --env-var "k8sToken=$K8S_TOKEN" \
  --ssl-extra-ca-certs ./lab-ca-bundle.pem \
  --reporters cli,junit --reporter-junit-export results/k8s-tintri-conformance.xml
# lab only, self-signed certificates and no CA bundle: add --insecure

Save the JSON below as 27-vmware-kubernetes-tintri-solutions-architect-design-guide.postman_collection.json and import it into Postman. The environment file ships next to it; its variables are listed after the collection.

{
  "info": {
    "_postman_id": "6ae65b81-a29b-590f-a21a-6b016801a18d",
    "name": "VMware vSphere + Kubernetes on Tintri VMstore - design conformance",
    "description": "Read-only checks that a Kubernetes platform on vSphere with Tintri VMstore still matches its design (KD-01 to KD-14). Run folders in order. Checked against Kubernetes API v1.37 (storage.k8s.io/v1, snapshot.storage.k8s.io/v1), vSphere Automation API 9.1.2, Virtual Infrastructure JSON API (vSAN service path, CnsVolumeManager), Tintri REST API v310.207 (TxOS 6.0.3). Uses pm.execution.skipRequest, so newman 6.1.0 or later is required. From vmwareblogs.co.in post 27.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "noauth"
  },
  "event": [
    {
      "listen": "prerequest",
      "script": {
        "type": "text/javascript",
        "exec": [
          "// Attach the right credential per endpoint. Nothing secret is stored in the collection.",
          "const u = pm.request.url.toString();",
          "const k8s = pm.environment.get('k8sApiUrl');",
          "const vc = pm.environment.get('baseUrl');",
          "const ts = pm.environment.get('tintriBaseUrl');",
          "if (k8s && u.startsWith(k8s)) {",
          "  pm.request.headers.upsert({ key: 'Authorization', value: 'Bearer ' + pm.environment.get('k8sToken') });",
          "}",
          "const isLogin = pm.request.method === 'POST' && u.endsWith('/api/session');",
          "if (vc && u.startsWith(vc) && pm.environment.get('vcSession') && !isLogin) {",
          "  pm.request.headers.upsert({ key: 'vmware-api-session-id', value: pm.environment.get('vcSession') });",
          "}",
          "if (ts && u.startsWith(ts) && pm.environment.get('tintriSession') && !u.endsWith('/session/login')) {",
          "  pm.request.headers.upsert({ key: 'Cookie', value: 'JSESSIONID=' + pm.environment.get('tintriSession') });",
          "}"
        ]
      }
    },
    {
      "listen": "test",
      "script": {
        "type": "text/javascript",
        "exec": [
          "if (pm.response.code === 401) { console.warn('401 from ' + pm.request.url.toString() + ': session or token missing or expired; re-run 01 Auth'); }",
          "if (pm.response.code === 403) { console.warn('403 from ' + pm.request.url.toString() + ': authenticated but not authorised; check the reader role'); }"
        ]
      }
    }
  ],
  "item": [
    {
      "name": "01 Auth",
      "description": "Kubernetes bearer token check, vCenter session, VMstore session.",
      "item": [
        {
          "name": "K8s: version (token check)",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{k8sApiUrl}}/version",
              "host": [
                "{{k8sApiUrl}}"
              ],
              "path": [
                "version"
              ]
            }
          },
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (!pm.environment.get('k8sToken')) { console.warn('k8sToken empty: skipping'); pm.execution.skipRequest(); }"
                ]
              }
            },
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('kube-apiserver answers 200', () => pm.response.to.have.status(200));",
                  "const v = pm.response.json();",
                  "pm.test('gitVersion present', () => pm.expect(v.gitVersion).to.match(/^v1\\./));",
                  "pm.environment.set('k8sVersion', v.gitVersion);",
                  "console.log('Kubernetes ' + v.gitVersion);"
                ]
              }
            }
          ],
          "_postman_id": "9dc39d68-3e74-57fd-acfe-a8d0053ab54b"
        },
        {
          "name": "vCenter: create session",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/session",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "session"
              ]
            },
            "auth": {
              "type": "basic",
              "basic": [
                {
                  "key": "username",
                  "value": "{{username}}",
                  "type": "string"
                },
                {
                  "key": "password",
                  "value": "{{password}}",
                  "type": "string"
                }
              ]
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('vCenter session created (201)', () => pm.response.to.have.status(201));",
                  "const t = pm.response.json();",
                  "pm.test('token is a non-empty string', () => pm.expect(t).to.be.a('string').and.not.empty);",
                  "pm.environment.set('vcSession', t);"
                ]
              }
            }
          ],
          "_postman_id": "41ef60c3-5833-51e4-a879-c2b1a1b6d98c"
        },
        {
          "name": "VMstore: API version (no auth)",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{tintriBaseUrl}}/api/info",
              "host": [
                "{{tintriBaseUrl}}"
              ],
              "path": [
                "api",
                "info"
              ]
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('200', () => pm.response.to.have.status(200));",
                  "const i = pm.response.json();",
                  "pm.test('supportedVersionSet returned', () => pm.expect(i.supportedVersionSet).to.be.an('array').that.is.not.empty);",
                  "console.log('VMstore preferredVersion ' + i.preferredVersion);"
                ]
              }
            }
          ],
          "_postman_id": "4de14352-6fd0-5a80-910c-b8c92e78ab36"
        },
        {
          "name": "VMstore: login",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{tintriBaseUrl}}/api/v310/session/login",
              "host": [
                "{{tintriBaseUrl}}"
              ],
              "path": [
                "api",
                "v310",
                "session",
                "login"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"typeId\": \"com.tintri.api.rest.vcommon.dto.rbac.RestApiCredentials\",\n  \"username\": \"{{tintriUsername}}\",\n  \"password\": \"{{tintriPassword}}\",\n  \"fullApiVersion\": \"{{tintriApiVersion}}\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('login 200', () => pm.response.to.have.status(200));",
                  "let sid = pm.cookies.get('JSESSIONID');",
                  "if (!sid) { const m = (pm.response.headers.get('Set-Cookie') || '').match(/JSESSIONID=([^;]+)/); sid = m ? m[1] : ''; }",
                  "pm.test('JSESSIONID captured', () => pm.expect(sid).to.not.be.empty);",
                  "pm.environment.set('tintriSession', sid);"
                ]
              }
            }
          ],
          "_postman_id": "006331a6-7ca4-5eec-b7e0-17a43dfe6dfb"
        },
        {
          "name": "VMstore: current session (expiry)",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{tintriBaseUrl}}/api/v310/session/current",
              "host": [
                "{{tintriBaseUrl}}"
              ],
              "path": [
                "api",
                "v310",
                "session",
                "current"
              ]
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('200', () => pm.response.to.have.status(200));",
                  "const s = pm.response.json();",
                  "console.log('VMstore session expires ' + s.expirationTime + ', roles ' + JSON.stringify(s.roles));"
                ]
              }
            }
          ],
          "_postman_id": "4c2e34f1-b08f-5a84-9d2c-0dcf3fc8ef85"
        }
      ]
    },
    {
      "name": "02 Discover",
      "description": "What is installed: CSI drivers, StorageClasses, vCenter version, Supervisors, policies, datastore, VMstore and its registered managers.",
      "item": [
        {
          "name": "K8s: CSI drivers installed",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{k8sApiUrl}}/apis/storage.k8s.io/v1/csidrivers",
              "host": [
                "{{k8sApiUrl}}"
              ],
              "path": [
                "apis",
                "storage.k8s.io",
                "v1",
                "csidrivers"
              ]
            }
          },
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (!pm.environment.get('k8sToken')) { console.warn('k8sToken empty: skipping'); pm.execution.skipRequest(); }"
                ]
              }
            },
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('200', () => pm.response.to.have.status(200));",
                  "const names = pm.response.json().items.map(d => d.metadata.name);",
                  "const want = (pm.environment.get('expectedCsiDrivers') || '').split(',').filter(Boolean);",
                  "want.forEach(w => pm.test('CSIDriver ' + w + ' registered', () => pm.expect(names).to.include(w)));",
                  "console.log('CSIDrivers: ' + names.join(', '));"
                ]
              }
            }
          ],
          "_postman_id": "34ad3232-59df-5cf4-a2f9-a0ce4d909100"
        },
        {
          "name": "K8s: StorageClasses",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{k8sApiUrl}}/apis/storage.k8s.io/v1/storageclasses",
              "host": [
                "{{k8sApiUrl}}"
              ],
              "path": [
                "apis",
                "storage.k8s.io",
                "v1",
                "storageclasses"
              ]
            }
          },
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (!pm.environment.get('k8sToken')) { console.warn('k8sToken empty: skipping'); pm.execution.skipRequest(); }"
                ]
              }
            },
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('200', () => pm.response.to.have.status(200));",
                  "const sc = pm.response.json().items;",
                  "const defs = sc.filter(s => (s.metadata.annotations || {})['storageclass.kubernetes.io/is-default-class'] === 'true');",
                  "pm.test('exactly one default StorageClass (KD-03)', () => pm.expect(defs.length).to.eql(1));",
                  "sc.forEach(s => console.log(s.metadata.name + ' -> ' + s.provisioner + ' ' + JSON.stringify(s.parameters || {})));"
                ]
              }
            }
          ],
          "_postman_id": "6803dcd2-a99a-5419-9ff6-d71c6cd1ae5e"
        },
        {
          "name": "vCenter: version",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/appliance/system/version",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "appliance",
                "system",
                "version"
              ]
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('200', () => pm.response.to.have.status(200));",
                  "const v = pm.response.json();",
                  "console.log('vCenter ' + v.version + ' build ' + v.build);"
                ]
              }
            }
          ],
          "_postman_id": "2dd8d605-469f-53ff-aaa1-ad8205ae9ac8"
        },
        {
          "name": "vCenter: Supervisors (VKS only)",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/vcenter/namespace-management/supervisors/summaries",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "vcenter",
                "namespace-management",
                "supervisors",
                "summaries"
              ]
            }
          },
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (pm.environment.get('platform') !== 'vks') { pm.execution.skipRequest(); }"
                ]
              }
            },
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('200', () => pm.response.to.have.status(200));",
                  "const items = pm.response.json().items || [];",
                  "pm.test('at least one Supervisor', () => pm.expect(items.length).to.be.above(0));",
                  "items.forEach(i => pm.test('Supervisor ' + i.info.name + ' config_status RUNNING', () => pm.expect(i.info.config_status).to.eql('RUNNING')));"
                ]
              }
            }
          ],
          "_postman_id": "d31360ca-9570-579a-8e0d-aa610de0a297"
        },
        {
          "name": "vCenter: storage policies",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/vcenter/storage/policies",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "vcenter",
                "storage",
                "policies"
              ]
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('200', () => pm.response.to.have.status(200));",
                  "const p = pm.response.json();",
                  "const gold = p.find(x => x.name === pm.environment.get('policyGold'));",
                  "pm.test('design policy exists (KD-02)', () => pm.expect(gold).to.not.be.undefined);",
                  "if (gold) { pm.environment.set('policyGoldId', gold.policy); }"
                ]
              }
            }
          ],
          "_postman_id": "29f021fd-1f05-5708-a837-7e4cb15ae599"
        },
        {
          "name": "vCenter: design NFS datastore",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/vcenter/datastore?names={{datastoreName}}&types=NFS",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "vcenter",
                "datastore"
              ],
              "query": [
                {
                  "key": "names",
                  "value": "{{datastoreName}}"
                },
                {
                  "key": "types",
                  "value": "NFS"
                }
              ]
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('200', () => pm.response.to.have.status(200));",
                  "const d = pm.response.json();",
                  "pm.test('one NFS datastore with the design name (KD-01)', () => pm.expect(d.length).to.eql(1));",
                  "if (d.length) { pm.environment.set('datastoreId', d[0].datastore); console.log('free GiB ' + Math.round(d[0].free_space / 1073741824)); }"
                ]
              }
            }
          ],
          "_postman_id": "fc70bbc0-723e-5cd2-a475-554cad3214a4"
        },
        {
          "name": "VMstore: appliance info",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{tintriBaseUrl}}/api/v310/appliance/default/info",
              "host": [
                "{{tintriBaseUrl}}"
              ],
              "path": [
                "api",
                "v310",
                "appliance",
                "default",
                "info"
              ]
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('200', () => pm.response.to.have.status(200));",
                  "const a = pm.response.json();",
                  "console.log('VMstore ' + a.modelName + ' TxOS ' + a.osVersion);"
                ]
              }
            }
          ],
          "_postman_id": "26de0802-0c52-5a36-bc4e-c115934fa4c6"
        },
        {
          "name": "VMstore: registered managers (vCenter and K8S)",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{tintriBaseUrl}}/api/v310/datastore/default/hypervisorManagerConfig",
              "host": [
                "{{tintriBaseUrl}}"
              ],
              "path": [
                "api",
                "v310",
                "datastore",
                "default",
                "hypervisorManagerConfig"
              ]
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('200', () => pm.response.to.have.status(200));",
                  "const m = pm.response.json();",
                  "pm.test('vCenter registered (hypervisorType VMWARE)', () => pm.expect(m.some(x => x.hypervisorType === 'VMWARE')).to.be.true);",
                  "const k = m.filter(x => x.hypervisorType === 'K8S');",
                  "pm.environment.set('vmstoreK8sRegistered', k.length ? 'true' : 'false');",
                  "if (!k.length) { console.warn('No K8S manager on this VMstore: PV-to-vDisk checks will be skipped (KD-12)'); }"
                ]
              }
            }
          ],
          "_postman_id": "8ce2f812-da64-5d5f-9ccb-245d3753bafa"
        }
      ]
    },
    {
      "name": "03 Verify (design conformance)",
      "description": "One request per design decision (KD-xx). Read-only.",
      "item": [
        {
          "name": "KD-03 gold StorageClass matches the design",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{k8sApiUrl}}/apis/storage.k8s.io/v1/storageclasses/{{scGold}}",
              "host": [
                "{{k8sApiUrl}}"
              ],
              "path": [
                "apis",
                "storage.k8s.io",
                "v1",
                "storageclasses",
                "{{scGold}}"
              ]
            }
          },
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (!pm.environment.get('k8sToken')) { console.warn('k8sToken empty: skipping'); pm.execution.skipRequest(); }"
                ]
              }
            },
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('200', () => pm.response.to.have.status(200));",
                  "const s = pm.response.json();",
                  "pm.test('provisioner is vSphere CSI', () => pm.expect(s.provisioner).to.eql('csi.vsphere.vmware.com'));",
                  "pm.test('storagepolicyname is the design policy', () => pm.expect((s.parameters || {}).storagepolicyname).to.eql(pm.environment.get('policyGold')));",
                  "pm.test('expansion allowed', () => pm.expect(s.allowVolumeExpansion).to.be.true);",
                  "pm.test('WaitForFirstConsumer (topology-safe)', () => pm.expect(s.volumeBindingMode).to.eql('WaitForFirstConsumer'));",
                  "pm.test('reclaimPolicy as designed', () => pm.expect(s.reclaimPolicy).to.eql(pm.environment.get('scGoldReclaim') || 'Delete'));"
                ]
              }
            }
          ],
          "_postman_id": "4a3375ac-f78a-52ac-9037-cc5adc576eaa"
        },
        {
          "name": "KD-05 attach headroom per node",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{k8sApiUrl}}/apis/storage.k8s.io/v1/volumeattachments",
              "host": [
                "{{k8sApiUrl}}"
              ],
              "path": [
                "apis",
                "storage.k8s.io",
                "v1",
                "volumeattachments"
              ]
            }
          },
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (!pm.environment.get('k8sToken')) { console.warn('k8sToken empty: skipping'); pm.execution.skipRequest(); }"
                ]
              }
            },
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('200', () => pm.response.to.have.status(200));",
                  "const per = {};",
                  "pm.response.json().items.filter(a => a.spec.attacher === 'csi.vsphere.vmware.com' && a.status && a.status.attached)",
                  "  .forEach(a => { per[a.spec.nodeName] = (per[a.spec.nodeName] || 0) + 1; });",
                  "const budget = Number(pm.environment.get('attachBudget') || 40);",
                  "const worst = Math.max(0, ...Object.values(per));",
                  "console.log('CNS attachments per node: ' + JSON.stringify(per));",
                  "pm.test('busiest node at or under the design budget of ' + budget, () => pm.expect(worst).to.be.at.most(budget));"
                ]
              }
            }
          ],
          "_postman_id": "ffe609c9-e4ad-589b-a713-44b4b7ae1fc8"
        },
        {
          "name": "KD-05 CSINode allocatable count",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{k8sApiUrl}}/apis/storage.k8s.io/v1/csinodes",
              "host": [
                "{{k8sApiUrl}}"
              ],
              "path": [
                "apis",
                "storage.k8s.io",
                "v1",
                "csinodes"
              ]
            }
          },
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (!pm.environment.get('k8sToken')) { console.warn('k8sToken empty: skipping'); pm.execution.skipRequest(); }"
                ]
              }
            },
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('200', () => pm.response.to.have.status(200));",
                  "pm.response.json().items.forEach(n => {",
                  "  const d = (n.spec.drivers || []).find(x => x.name === 'csi.vsphere.vmware.com');",
                  "  if (d && d.allocatable) { console.log(n.metadata.name + ' allocatable ' + d.allocatable.count); }",
                  "});"
                ]
              }
            }
          ],
          "_postman_id": "fce7a2fa-c58a-5459-892a-a851a72dda78"
        },
        {
          "name": "KD-07 VolumeSnapshotClass present",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{k8sApiUrl}}/apis/snapshot.storage.k8s.io/v1/volumesnapshotclasses",
              "host": [
                "{{k8sApiUrl}}"
              ],
              "path": [
                "apis",
                "snapshot.storage.k8s.io",
                "v1",
                "volumesnapshotclasses"
              ]
            }
          },
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (!pm.environment.get('k8sToken')) { console.warn('k8sToken empty: skipping'); pm.execution.skipRequest(); }"
                ]
              }
            },
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('200 (snapshot CRDs installed)', () => pm.response.to.have.status(200));",
                  "const c = pm.response.json().items;",
                  "pm.test('a class for vSphere CSI exists', () => pm.expect(c.some(x => x.driver === 'csi.vsphere.vmware.com')).to.be.true);",
                  "pm.test('deletionPolicy Delete on CSI classes (Velero data mover)', () => pm.expect(c.filter(x => x.driver === 'csi.vsphere.vmware.com').every(x => x.deletionPolicy === 'Delete')).to.be.true);"
                ]
              }
            }
          ],
          "_postman_id": "908c9f87-9c66-501d-bc79-80ecac7e2edb"
        },
        {
          "name": "KD-09 storage quota in every tenant namespace",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{k8sApiUrl}}/api/v1/resourcequotas",
              "host": [
                "{{k8sApiUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "resourcequotas"
              ]
            }
          },
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (!pm.environment.get('k8sToken')) { console.warn('k8sToken empty: skipping'); pm.execution.skipRequest(); }"
                ]
              }
            },
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('200', () => pm.response.to.have.status(200));",
                  "const q = pm.response.json().items;",
                  "const tenants = (pm.environment.get('tenantNamespaces') || '').split(',').filter(Boolean);",
                  "tenants.forEach(ns => pm.test(ns + ' has a per-class storage quota', () => {",
                  "  const hard = q.filter(x => x.metadata.namespace === ns).map(x => Object.keys(x.spec.hard || {})).flat();",
                  "  pm.expect(hard.some(k => k.endsWith('.storageclass.storage.k8s.io/requests.storage'))).to.be.true;",
                  "}));"
                ]
              }
            }
          ],
          "_postman_id": "ba073033-9b7b-51a1-ad1f-7a37bab8cc22"
        },
        {
          "name": "KD-06 CNS volumes on the design datastore",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/sdk/vim25/{{vimRelease}}/vsan/CnsVolumeManager/cns-volume-manager/CnsQueryVolume",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "sdk",
                "vim25",
                "{{vimRelease}}",
                "vsan",
                "CnsVolumeManager",
                "cns-volume-manager",
                "CnsQueryVolume"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"filter\": {\n    \"_typeName\": \"CnsQueryFilter\",\n    \"containerClusterIds\": [\n      \"{{k8sClusterId}}\"\n    ]\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "VI JSON API, vSAN service path. Needs Cns.Searchable on the root folder. One vCenter session serves /api and /sdk on vSphere 8.0 U3 and later."
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('200', () => pm.response.to.have.status(200));",
                  "const v = pm.response.json().volumes || [];",
                  "const want = pm.environment.get('datastoreUrl');",
                  "const off = v.filter(x => want && x.datastoreUrl !== want);",
                  "console.log('CNS volumes for cluster: ' + v.length + ', off-design datastore: ' + off.length);",
                  "pm.test('every CNS volume sits on the design datastore', () => pm.expect(off.length).to.eql(0));"
                ]
              }
            }
          ],
          "_postman_id": "be70a98d-41d9-526a-af64-3e8e0d08a12c"
        },
        {
          "name": "KD-09 vSphere Namespace storage specs (VKS only)",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/vcenter/namespaces/instances/{{vsphereNamespace}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "vcenter",
                "namespaces",
                "instances",
                "{{vsphereNamespace}}"
              ]
            }
          },
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (pm.environment.get('platform') !== 'vks') { pm.execution.skipRequest(); }"
                ]
              }
            },
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('200', () => pm.response.to.have.status(200));",
                  "const n = pm.response.json();",
                  "pm.test('storage policy assigned', () => pm.expect(n.storage_specs).to.be.an('array').that.is.not.empty);",
                  "pm.test('design policy among storage_specs', () => pm.expect(n.storage_specs.map(s => s.policy)).to.include(pm.environment.get('policyGoldId')));",
                  "pm.test('storage limit set (not unlimited)', () => pm.expect(n.storage_specs.every(s => s.limit !== undefined && s.limit !== null)).to.be.true);"
                ]
              }
            }
          ],
          "_postman_id": "7589f5d0-d048-56d3-a918-d9766d0705b5"
        },
        {
          "name": "KD-12 cluster registered on VMstore, certs valid",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{tintriBaseUrl}}/api/v310/datastore/default/hypervisorManagerConfig",
              "host": [
                "{{tintriBaseUrl}}"
              ],
              "path": [
                "api",
                "v310",
                "datastore",
                "default",
                "hypervisorManagerConfig"
              ]
            }
          },
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (pm.environment.get('vmstoreK8sRegistered') !== 'true') { console.warn('cluster not registered on VMstore: skipping'); pm.execution.skipRequest(); }"
                ]
              }
            },
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('200', () => pm.response.to.have.status(200));",
                  "const k = pm.response.json().filter(x => x.hypervisorType === 'K8S');",
                  "const mine = k.find(x => x.k8sConfig && x.k8sConfig.clusterName === pm.environment.get('k8sClusterName'));",
                  "pm.test('this cluster is registered', () => pm.expect(mine).to.not.be.undefined);",
                  "if (mine) {",
                  "  const until = new Date(mine.k8sConfig.clientCertValidUntil);",
                  "  const days = (until - new Date()) / 86400000;",
                  "  console.log('client cert valid for ' + Math.floor(days) + ' days');",
                  "  pm.test('client cert valid for 30+ days', () => pm.expect(days).to.be.above(30));",
                  "}"
                ]
              }
            }
          ],
          "_postman_id": "13c2b7e7-7057-51fd-850e-8f00c43feee9"
        },
        {
          "name": "KD-12 PV-to-vDisk map on VMstore",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{tintriBaseUrl}}/api/v310/datastore/default/k8s/pv",
              "host": [
                "{{tintriBaseUrl}}"
              ],
              "path": [
                "api",
                "v310",
                "datastore",
                "default",
                "k8s",
                "pv"
              ]
            }
          },
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (pm.environment.get('vmstoreK8sRegistered') !== 'true') { console.warn('cluster not registered on VMstore: skipping'); pm.execution.skipRequest(); }"
                ]
              }
            },
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('200', () => pm.response.to.have.status(200));",
                  "const items = pm.response.json().items || [];",
                  "pm.test('VMstore sees PVs', () => pm.expect(items.length).to.be.above(0));",
                  "const withDisk = items.filter(p => p.vdUuid && p.vmTintriUuid);",
                  "if (withDisk.length) { pm.environment.set('sampleVdUuid', withDisk[0].vdUuid); pm.environment.set('sampleVmTintriUuid', withDisk[0].vmTintriUuid); }",
                  "console.log('PVs on VMstore: ' + items.length + ', mapped to a vDisk: ' + withDisk.length);"
                ]
              }
            }
          ],
          "_postman_id": "7f6b11bd-eb90-508f-963a-11404b7cfcd8"
        },
        {
          "name": "KD-13 worker VM QoS ceiling not below floor",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{tintriBaseUrl}}/api/v310/vm?live=TRUE&limit=500",
              "host": [
                "{{tintriBaseUrl}}"
              ],
              "path": [
                "api",
                "v310",
                "vm"
              ],
              "query": [
                {
                  "key": "live",
                  "value": "TRUE"
                },
                {
                  "key": "limit",
                  "value": "500"
                }
              ]
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('200', () => pm.response.to.have.status(200));",
                  "const prefix = pm.environment.get('workerVmPrefix');",
                  "const floor = Number(pm.environment.get('workerMaxIopsFloor') || 10000);",
                  "const w = (pm.response.json().items || []).filter(v => v.vmware && v.vmware.name && v.vmware.name.startsWith(prefix));",
                  "const bad = w.filter(v => v.qosConfig && v.qosConfig.maxNormalizedIops > 0 && v.qosConfig.maxNormalizedIops < floor);",
                  "console.log('workers: ' + w.length + ', capped below floor: ' + bad.map(v => v.vmware.name).join(','));",
                  "pm.test('workers found by prefix', () => pm.expect(w.length).to.be.above(0));",
                  "pm.test('no worker capped below ' + floor + ' normalized IOPS', () => pm.expect(bad.length).to.eql(0));"
                ]
              }
            }
          ],
          "_postman_id": "53949be6-643b-5e5c-ae11-d24bc931591e"
        },
        {
          "name": "KD-14 capacity under the ceiling",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{tintriBaseUrl}}/api/v310/datastore/default/statsSummary",
              "host": [
                "{{tintriBaseUrl}}"
              ],
              "path": [
                "api",
                "v310",
                "datastore",
                "default",
                "statsSummary"
              ]
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('200', () => pm.response.to.have.status(200));",
                  "const s = pm.response.json();",
                  "const pct = 100 * s.spaceUsedGiB / s.spaceTotalGiB;",
                  "const ceil = Number(pm.environment.get('capacityCeilingPct') || 80);",
                  "console.log('VMstore used ' + pct.toFixed(1) + '%, latencyTotalMs ' + s.latencyTotalMs);",
                  "pm.test('used below ' + ceil + '%', () => pm.expect(pct).to.be.below(ceil));"
                ]
              }
            }
          ],
          "_postman_id": "4cfefd3e-3528-57da-9fef-89c1933fba3b"
        },
        {
          "name": "KD-08 option B: CSI properties (only if option B)",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{tintriBaseUrl}}/api/v310/appliance/default/csiProperties",
              "host": [
                "{{tintriBaseUrl}}"
              ],
              "path": [
                "api",
                "v310",
                "appliance",
                "default",
                "csiProperties"
              ]
            }
          },
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (pm.environment.get('optionB') !== 'true') { pm.execution.skipRequest(); }"
                ]
              }
            },
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('200', () => pm.response.to.have.status(200));",
                  "const c = pm.response.json();",
                  "console.log('csiProperties ' + JSON.stringify(c));",
                  "pm.test('CSI volume discovery enabled', () => pm.expect(c.isEnabled).to.be.true);"
                ]
              }
            }
          ],
          "_postman_id": "85f5e37d-f502-5cf0-995e-2f4ae2bf7230"
        }
      ]
    },
    {
      "name": "04 Troubleshoot",
      "description": "Pending PVCs, attach errors, one PV's vDisk stats, VMstore alerts.",
      "item": [
        {
          "name": "K8s: PVCs not Bound",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{k8sApiUrl}}/api/v1/persistentvolumeclaims",
              "host": [
                "{{k8sApiUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "persistentvolumeclaims"
              ]
            }
          },
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (!pm.environment.get('k8sToken')) { console.warn('k8sToken empty: skipping'); pm.execution.skipRequest(); }"
                ]
              }
            },
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('200', () => pm.response.to.have.status(200));",
                  "const bad = pm.response.json().items.filter(c => c.status.phase !== 'Bound');",
                  "bad.forEach(c => console.warn(c.metadata.namespace + '/' + c.metadata.name + ' is ' + c.status.phase + ' (class ' + c.spec.storageClassName + ')'));",
                  "pm.test('no PVC stuck outside Bound', () => pm.expect(bad.length).to.eql(0));"
                ]
              }
            }
          ],
          "_postman_id": "aae2e1c0-2831-5ef0-a1b7-4febe9eacecf"
        },
        {
          "name": "K8s: attach errors",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{k8sApiUrl}}/apis/storage.k8s.io/v1/volumeattachments",
              "host": [
                "{{k8sApiUrl}}"
              ],
              "path": [
                "apis",
                "storage.k8s.io",
                "v1",
                "volumeattachments"
              ]
            }
          },
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (!pm.environment.get('k8sToken')) { console.warn('k8sToken empty: skipping'); pm.execution.skipRequest(); }"
                ]
              }
            },
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('200', () => pm.response.to.have.status(200));",
                  "const e = pm.response.json().items.filter(a => a.status && (a.status.attachError || a.status.detachError));",
                  "e.forEach(a => console.warn(a.spec.nodeName + ' ' + a.spec.source.persistentVolumeName + ': ' + JSON.stringify(a.status.attachError || a.status.detachError)));",
                  "pm.test('no attach or detach errors', () => pm.expect(e.length).to.eql(0));"
                ]
              }
            }
          ],
          "_postman_id": "3a158029-3181-5492-88fd-5d2f8e5173e9"
        },
        {
          "name": "VMstore: one PV's vDisk, realtime stats",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{tintriBaseUrl}}/api/v310/virtualDisk/{{sampleVmTintriUuid}}/{{sampleVdUuid}}/statsRealtime",
              "host": [
                "{{tintriBaseUrl}}"
              ],
              "path": [
                "api",
                "v310",
                "virtualDisk",
                "{{sampleVmTintriUuid}}",
                "{{sampleVdUuid}}",
                "statsRealtime"
              ]
            }
          },
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (!pm.environment.get('sampleVdUuid')) { pm.execution.skipRequest(); }"
                ]
              }
            },
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('200', () => pm.response.to.have.status(200));",
                  "const items = pm.response.json().items || [];",
                  "const last = items.length ? items[items.length - 1] : {};",
                  "console.log('latest slice: ' + JSON.stringify(last).slice(0, 400));"
                ]
              }
            }
          ],
          "_postman_id": "4de36da3-9701-54ea-adc2-6e2a904a7763"
        },
        {
          "name": "VMstore: alerts",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{tintriBaseUrl}}/api/v310/alert",
              "host": [
                "{{tintriBaseUrl}}"
              ],
              "path": [
                "api",
                "v310",
                "alert"
              ]
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('200', () => pm.response.to.have.status(200));",
                  "const a = pm.response.json().items || [];",
                  "console.log('alerts on page: ' + a.length);"
                ]
              }
            }
          ],
          "_postman_id": "8185510d-46db-5b71-8e50-a79f3eda5cdf"
        }
      ]
    },
    {
      "name": "05 Logout",
      "description": "End the VMstore and vCenter sessions. The Kubernetes token simply expires.",
      "item": [
        {
          "name": "VMstore: logout",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{tintriBaseUrl}}/api/v310/session/logout",
              "host": [
                "{{tintriBaseUrl}}"
              ],
              "path": [
                "api",
                "v310",
                "session",
                "logout"
              ]
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('logged out (204)', () => pm.expect(pm.response.code).to.be.oneOf([200, 204]));",
                  "pm.environment.unset('tintriSession');"
                ]
              }
            }
          ],
          "_postman_id": "b75f57cb-fda4-53a7-be7c-500485854337"
        },
        {
          "name": "vCenter: delete session",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/session",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "session"
              ]
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('session deleted (204)', () => pm.response.to.have.status(204));",
                  "pm.environment.unset('vcSession');"
                ]
              }
            }
          ],
          "_postman_id": "c9131fcb-a7f8-5452-ae63-bac19cfd178c"
        }
      ]
    }
  ]
}
VariableExampleMeaning
baseUrlhttps://vcenter01.lab.localvCenter
username / passwordsvc-k8s-design-audit@vsphere.local / (secret)read-only vCenter account with Cns.Searchable
vimRelease9.0.0.0VI JSON release path for the CNS query
k8sApiUrl / k8sTokenhttps://10.0.50.10:6443 / (secret)Kubernetes API and audit token
k8sClusterName, k8sClusterIdk8s-prod-01name registered on the VMstore; CSI cluster-id in CNS
platformopenshift | vks | upstreamturns VKS-only checks on or off
scGold, scGoldReclaim, policyGoldtintri-gold-csi, Retain, k8s-tintri-goldKD-02, KD-03
tenantNamespaces, vsphereNamespaceteam-a,team-b / team-aKD-09
attachBudget40KD-05
datastoreName, datastoreUrlds-tintri-k8s / ds:///vmfs/volumes/…KD-01, KD-06
tintriBaseUrl, tintriApiVersionhttps://vmstore01.lab.local, v310.207VMstore and fullApiVersion
workerVmPrefix, workerMaxIopsFloork8s-prod-01-w, 10000KD-13
capacityCeilingPct80KD-14
optionBfalseKD-08

19. API reference for this design

Checked against: Kubernetes v1.37 API reference; vSphere Automation API 9.1.2 (latest listed); Virtual Infrastructure JSON API reference for the vSAN service path (schema 9.1.1.0); Tintri REST API v310.207 (TxOS 6.0.3). All calls are read-only.

MethodPathPurposeKey fieldsSince
GET/versionToken and reachability checkgitVersionKubernetes 1.x
GET/apis/storage.k8s.io/v1/storageclasses[/{name}]KD-03 class settingsprovisioner, parameters, reclaimPolicy, volumeBindingModestorage.k8s.io/v1
GET/apis/storage.k8s.io/v1/csidriversDrivers installedmetadata.namestorage.k8s.io/v1 (Kubernetes 1.18)
GET/apis/storage.k8s.io/v1/csinodesPer-node attach limitspec.drivers[].allocatable.countstorage.k8s.io/v1 (Kubernetes 1.17)
GET/apis/storage.k8s.io/v1/volumeattachmentsKD-05 attachments per node; attach errorsspec.nodeName, status.attached, status.attachErrorstorage.k8s.io/v1
GET/api/v1/persistentvolumesPV to CNS volume IDspec.csi.volumeHandlecore v1
GET/api/v1/persistentvolumeclaimsPending PVCsstatus.phasecore v1
GET/api/v1/resourcequotasKD-09 per-class quotasspec.hardcore v1
GET/apis/snapshot.storage.k8s.io/v1/volumesnapshotclassesKD-07driver, deletionPolicysnapshot.storage.k8s.io/v1 (external-snapshotter, v8.7.1 current)
POST / DELETE/api/sessionvCenter session201 token string / 204vSphere 7.0 U2 (/api paths)
GET/api/appliance/system/versionvCenter versionversion, buildvSphere 7.0 U2 (/api paths)
GET/api/vcenter/namespace-management/supervisors/summariesSupervisors (VKS)items[].supervisor, info.config_status, info.kubernetes_statusitems since vSphere API 8.0.0.1
GET/api/vcenter/namespaces/instances/{namespace}KD-09 on VKSstorage_specs[].policy, storage_specs[].limitvSphere API 7.0.0.0
GET/api/vcenter/storage/policiesKD-02policy, name, description (max 1,024 returned)vSphere API 6.7
GET/api/vcenter/datastore?names=&types=NFSKD-01datastore, type, free_space, capacityvSphere 7.0 U2 (/api paths)
POST/sdk/vim25/{release}/vsan/CnsVolumeManager/cns-volume-manager/CnsQueryVolumeKD-06 CNS volumesvolumes[].datastoreUrl, healthStatus, cursorVI JSON API from 8.0 U1; CnsQueryVolume from 6.7 U3
GET/api/infoVMstore versions (no auth)supportedVersionSet, preferredVersionv310
POST/api/v310/session/loginVMstore sessionfullApiVersion; JSESSIONID cookiev310
GET/api/v310/datastore/{uuid}/hypervisorManagerConfigvCenter and K8S registrationshypervisorType, k8sConfig.clusterName, clientCertValidUntilv310.21 (K8S type: check your release)
GET/api/v310/datastore/{uuid}/k8s/pvKD-12 PV to vDiskvdUuid, vmTintriUuid, pvcName, storageClassNamev310.171
GET/api/v310/datastore/{uuid}/k8s/pvcPVC view on the arrayvolumeName, vdUuid, statusv310.171
GET/api/v310/virtualDisk/{vmId}/{vdiskId}/statsRealtimePer-PV latency (option A)page of stat slicesv310 (no since stated)
GET/api/v310/appliance/{uuid}/csiPropertiesKD-08 option B discovery settingsisEnabled, directoryNames, fileExtensionsv310.191
GET/api/v310/vm?live=TRUEKD-13 worker QoSqosConfig.maxNormalizedIopsv310
GET/api/v310/datastore/{uuid}/statsSummaryKD-14 capacityspaceUsedGiB, spaceTotalGiB, latencyTotalMsv310
POST/api/v310/session/logoutEnd VMstore session204v310 (GET form deprecated)

20. Error shapes and what they mean

# Kubernetes: a Status object
HTTP/1.1 403 Forbidden
{ "kind": "Status", "apiVersion": "v1", "status": "Failure", "reason": "Forbidden", "code": 403,
  "message": "storageclasses.storage.k8s.io is forbidden: User \"system:serviceaccount:k8s-audit:k8s-design-audit\" cannot list resource \"storageclasses\" in API group \"storage.k8s.io\" at the cluster scope" }

# vCenter /api
HTTP/1.1 401 Unauthorized
{ "error_type": "UNAUTHENTICATED", "messages": [] }

# VMstore
HTTP/1.1 500 Internal Server Error
{ "typeId": "com.tintri.api.rest.v310.dto.domain.beans.TintriError",
  "code": "ERR-API-9904", "message": "Get persistent volumes failed" }
StatusKubernetesvCenter (/api and /sdk)VMstoreAdmin action
400Malformed request or field selectorINVALID_ARGUMENTValidation failedFix the request
401Token missing, expired or wrong audienceSession missing or expiredNot logged in or session expiredMint a new token or re-run 01 Auth; check clocks
403RBAC: the ClusterRole is not bound or lacks a resourcePrivilege missing (for example Cns.Searchable)Bad credentials or missing licenceFix the role, not the collection
404Resource or API group absent (snapshot CRDs not installed returns 404 on volumesnapshotclasses)Wrong object IDPath newer than the TxOS, or wrong UUIDCheck versions with /version, system/version and /api/info
409AlreadyExists (never expected here)ALREADY_EXISTSObject existsThe collection is read-only; investigate the caller
500API server errorVI JSON faults (InvalidArgument, CnsFault) come back as 500TintriError, for example ERR-API-9904 on /k8s/pvRead the message; for /k8s/pv check the K8S registration

21. End-to-end workflow

From a signed-off design document to a green conformance run. Each step has a check and what a pass looks like.

  1. Confirm versions. kubectl version, GET /api/appliance/system/version, GET /api/info on the VMstore. Expect Kubernetes within the vSphere CSI release’s validated range, vCenter 9.x, and v310.207 (or the version you pinned) in supportedVersionSet.
  2. Tag and policies (KD-01, KD-02). New-TagCategory -Name k8s-storage -Cardinality Single -EntityType Datastore, New-Tag -Name tintri-k8s -Category k8s-storage, New-TagAssignment -Tag tintri-k8s -Entity (Get-Datastore ds-tintri-k8s), then New-SpbmStoragePolicy -Name k8s-tintri-gold -AnyOfRuleSets (New-SpbmRuleSet -AllOfRules (New-SpbmRule -AnyOfTags (Get-Tag tintri-k8s))) and the same for silver. Check: Get-SpbmCompatibleStorage -StoragePolicy k8s-tintri-gold returns only ds-tintri-k8s.
  3. Network (KD-08, section 11). vmkping -I vmk2 -d -s 8972 10.0.30.50 on every host: 0% loss. If option B: ping -M do -s 8972 <VMSTORE_GUEST_NFS_IP> from one worker per host: replies, no “message too long”.
  4. StorageClasses and snapshot class (KD-03, KD-07). kubectl apply -f storageclasses-option-a.yaml. Check: kubectl get sc shows exactly one (default).
  5. Option B driver (KD-04, KD-08). Install the Tintri operator (OpenShift) or Helm chart, create the secret from the template, apply storageclass-option-b.yaml. Check: kubectl get csidrivers lists vmstore.csi.tintri.com and the node pods are Running on every worker.
  6. Quotas (KD-09). Apply one quota file per namespace. Check: kubectl describe quota storage -n team-a shows the per-class lines, with 0 on the exception classes.
  7. Velero (KD-07, KD-15). Install and create the schedule. Check: velero backup-location get shows Available; the first scheduled backup completes with data uploads.
  8. Register the cluster on the VMstore (KD-12). Use the VMstore UI or the procedure in the Tintri documentation for your TxOS, with a read-only client certificate. Check: GET /api/v310/datastore/default/hypervisorManagerConfig contains a K8S entry with your clusterName.
  9. Smoke test. Create a 1 GiB PVC on tintri-silver-csi and a pod that writes to it. Check: the PVC is Bound, CnsQueryVolume returns it on ds-tintri-k8s, and /k8s/pv on the VMstore lists it with a vdUuid.
  10. Conformance run. newman run ... as in section 18. Expect every KD test to pass, skipped requests only where the platform or option does not apply, and a JUnit file for the change record.

22. Design document template

# <PLATFORM NAME>: Kubernetes on VMware vSphere with Tintri VMstore - Design
Version <x.y>   Status <draft|review|approved>   Owner <name/role>   Reviewers <names>

1  Executive summary          the decision in five lines, capacity at year 3, first limit hit
2  Scope and out of scope     clusters, sites, workloads; what this document does not decide
3  Discovery record           D1..D10 answers, dated, with who answered
4  Requirements               R-xx   (must-have flag on each)
5  Constraints                C-xx
6  Assumptions                A-xx   (each with how and when it will be measured)
7  Risks                      K-xx   (likelihood, impact, mitigation, owner)
8  Workload profile           class, PVCs, size, IOPS, mix, RPO/RTO per workload
9  Platform decision          VKS | OpenShift | upstream, with versions pinned
10 Conceptual design          one diagram: consumers, platform, storage, protection
11 Logical design             StorageClasses, policies, node pools, namespaces, quotas
12 Physical design            VLANs, subnets, MTU per hop, ports, VMstore interfaces
13 Storage options            A / B / C, must-have filter, weighted matrix
14 Sizing                     steps 1-6 with the arithmetic and the re-size triggers
15 Data protection and DR     per class: mechanism, RPO, RTO, test cadence
16 Security                   accounts, secrets, privileged workloads, NFS exposure, certs
17 Observability              correlation keys, dashboards, alerts
18 Decisions register         KD-xx: options, choice, justification, impact, check
19 Conformance                collection name, schedule, where results go, who reads them
20 Operational handover       runbooks, owners, escalation, change process
Appendix A  Version matrix    Kubernetes, CSI drivers, vSphere, TxOS, TGC, Velero, newman
Appendix B  Change log

23. Design review checklist

#CheckPass when
1Every must-have requirement is traced to a KD and a checkNo R-xx without a KD; no KD without a check or a named manual review
2Platform and CSI versions are inside each other’s validated rangesKubernetes minor listed by the vSphere CSI release in use; TxOS meets the Tintri CSI minimum (5.6.0.1)
3RWX has an approved path or is explicitly out of scopeNot assumed from vSphere CSI on Tintri-only storage
4Attach budget calculated with a host failure and skewWorst case under the budget; re-size trigger written down
5QoS unit is understoodDocument states that option A QoS is per worker VM and how node pools enforce tiers
6Snapshot lifecycle cannot block expansionCSI snapshots transient; data mover configured
7DR tested, not describedA dated restore of one namespace into the DR cluster
8Storage network is not reachable from guests unless option B is approvedVLAN 30 absent from every VM port group; VLAN 35 only on approved workers
9MTU verified end to end on every storage VLANvmkping and guest ping with DF at 8972 bytes pass from every host
10Secrets and accounts are least privilege and rotatedDedicated accounts; Secrets encrypted at rest; rotation dates recorded
11VMstore registration certificate expiry is monitoredKD-12 check passes with more than 30 days left
12Exactly one default StorageClassKD-03 check passes
13Quotas exist for every tenant, with zero on exception classesKD-09 check passes
14Capacity at year 3 under the ceilingSizing step 2 and KD-14 agree
15Conformance runs on a schedule and someone reads itNamed owner and a ticket on failure

24. Troubleshooting the design

SymptomLikely causeCheckFix
PVC stays Pending, event mentions no compatible datastoreStorage policy tag missing from ds-tintri-k8s, or wrong policy name in the classGet-SpbmCompatibleStorage; KD-02 and KD-03 checksTag the datastore; correct storagepolicyname
PVC Pending with WaitForFirstConsumerNormal until a pod uses it; or the pod cannot schedulekubectl describe podFix scheduling (taints, zones, resources)
Pod stuck ContainerCreating, attach timeoutNode at the 59-volume PVSCSI limit, or vCenter task backlogKD-05 check; csinodes allocatable; vCenter tasksAdd workers or rebalance; raise the budget only with a new calculation
Multi-Attach errorRWO volume still attached to a failed nodevolumeattachments for the PVLet the attach-detach controller time out, or clean up the node; never force RWX
Expansion or deletion of a PVC failsThe volume still has CSI snapshots (vSphere CSI rule)kubectl get volumesnapshot -ADelete or move the snapshots; check the Velero data mover
Option B mount hangs, then times outVLAN 35 missing on the port group or UCS vNIC templateGuest ping to the VMstore data IPAdd the VLAN on both fabrics and the vPC
Option B mount: access denied or permission errorsShare not exported to the node subnet; root squash vs fsGroupVMstore share settings; pod security contextExport to VLAN 35 subnet; align mountPointPermissions and fsGroup
Large writes stall, small ones succeedMTU mismatch on one hopvmkping or guest ping with DF at 8972Fix MTU on the offending hop
All pods on one worker slow at onceVMstore QoS ceiling on that worker VM (option A)KD-13 check; VMstore throttle latency for the VMRemove the ceiling; keep tiers at node-pool level
/k8s/pv on the VMstore returns nothingCluster not registered, or client certificate expiredKD-12 checkRe-register or rotate the certificate
CnsQueryVolume returns 403 or a faultAccount lacks Cns.Searchable; wrong release pathRole on the root folder; vimReleaseGrant the privilege; use your vCenter’s release
newman: pm.execution.skipRequest is not a functionnewman older than 6.1.0newman --versionUpgrade to 6.2.x

25. What’s next

Post 28 builds this design: CSI installs, every controller hop from kubectl to the VMstore, and the PV lifecycle (expand, snapshot, restore, clone, delete) with the APIs behind each. The vSphere layer is in the vSphere on Tintri design guide, the vSphere Automation API deploy guide, the VMstore API guide, the TGC API guide, VCF 9 on Tintri NFS by API and API-driven troubleshooting. For the fabric and hosts underneath, start at Part 1 and use Part 4 for the host build and Part 5 when something breaks. Platform-specific reading: the VKS tutorial, the stateful OpenShift on Tintri NFS design and four-layer runbook, and building VCF 9 on Tintri NFS storage. For the array-side audits referenced here: auditing Tintri per-VM QoS, VMstore snapshot sprawl and the daily Tintri fleet sweep.

Leave a Reply