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
- How a solutions architect runs this engagement
- Discovery: the questions that decide the design
- Requirements, constraints, assumptions and risks
- Workload profiling
- Platform choice: VKS, OpenShift or upstream on VMs
- Reference architecture
- Storage options A, B and C, and the decision matrix
- StorageClass and tier design mapped to Tintri
- Backup and DR
- Multi-tenancy
- Network design and packet flows
- Failure domains and topology
- Sizing, worked
- Security
- Observability
- Design decisions register
- Design to API: the conformance sequence
- The design conformance collection: Postman and newman
- API reference for this design
- Error shapes and what they mean
- End-to-end workflow
- Design document template
- Design review checklist
- Troubleshooting the design
- 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:
- 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).
- 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.
- Size. Capacity, performance, attach counts and network, with the arithmetic in the document so the next architect can redo it when the inputs change.
- 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.
| # | Question | Why it matters | Feeds |
|---|---|---|---|
| D1 | Which platform does the organisation already operate or license: VKS, OpenShift, Rancher, upstream? | Operations skills and support contracts decide more than features do. | KD-10 |
| D2 | List 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 |
| D3 | Does 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 |
| D4 | RPO 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 |
| D5 | How many teams, and do they need hard storage limits, chargeback, or separate clusters? | Namespaces and quotas, or vSphere Namespaces, or separate clusters. | KD-09 |
| D6 | Can worker VMs have an interface on a storage VLAN? Who approves that? | Option B lives or dies on this answer. | KD-08 |
| D7 | How many VMstores, sites and vCenters? Is there a failure domain larger than a host? | Topology zones and per-zone storage. | KD-11 |
| D8 | Which 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 |
| D9 | Who 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 |
| D10 | What 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.
| ID | Type | Statement |
|---|---|---|
| R-01 | Requirement | Run 6 PostgreSQL clusters (3 instances each), a 3-broker Kafka, a 6-node OpenSearch and about 40 stateless services. |
| R-02 | Requirement | Database p95 write latency at the VMstore under 2 ms at the design load. |
| R-03 | Requirement | Storage consumption per team is capped and reported monthly. |
| R-04 | Requirement | RPO 1 hour and RTO 4 hours for databases; RPO 24 hours for everything else. |
| R-05 | Requirement | An ML team needs a 2 TiB shared model cache mounted read-write by several pods (RWX). |
| R-06 | Requirement | QA refreshes a 500 GiB test database from a production copy every night in under 15 minutes. |
| R-07 | Requirement | The storage team can answer “which PV is this vDisk” without asking the platform team. |
| C-01 | Constraint | No vSAN. Tintri VMstore over NFS is the only shared storage. |
| C-02 | Constraint | Existing VLAN plan and Cisco UCS fabric (FI A/B, Nexus vPC); new VLANs need a change window. |
| C-03 | Constraint | The organisation already runs OpenShift elsewhere and has a Red Hat subscription. |
| A-01 | Assumption | 2:1 data reduction on the VMstore for this mix. To be replaced by the measured value after 30 days. |
| A-02 | Assumption | 60% of provisioned PVC capacity is written within the first year. |
| A-03 | Assumption | The VMstore can present a data address on a second VLAN for guest NFS. Confirm for the model and TxOS release. |
| K-01 | Risk | Option A puts every PV on a worker VM into that worker’s VMstore QoS envelope; one noisy pod can throttle its neighbours. |
| K-02 | Risk | Guest NFS (option B) exposes a storage network to worker VMs. |
| K-03 | Risk | CSI snapshots that are left in place block volume expansion and deletion on vSphere CSI. |
| K-04 | Risk | The 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.
| Class | Examples | Access mode | I/O shape | What it needs from the design |
|---|---|---|---|---|
| Stateless | web front ends, APIs, workers | none or small RWO | negligible | Nothing beyond node OS disks. Keep these off the database node pool. |
| Databases and queues | PostgreSQL, MySQL, Kafka, Redis with AOF | RWO | small random writes, fsync-heavy, latency-sensitive | Predictable latency, a protected QoS envelope, application-consistent backup, fast restore. |
| Search and analytics | OpenSearch, Elasticsearch, ClickHouse | RWO | large sequential plus merge bursts | Throughput, capacity, and a QoS ceiling so merges do not starve databases. |
| AI/ML and shared data | model caches, notebooks, datasets | RWX or ROX | large reads, shared across pods | A 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 Supervisor | OpenShift on vSphere | Upstream 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.36 | Kubernetes v1.37 (1.37.3); 1.35 and 1.36 still supported |
| vSphere CSI | Managed by VKS (the release notes describe it as managed by the add-on framework) | vSphere CSI Driver Operator installed by default, default class thin-csi | You install vSphere CSI 3.8.x (validated for Kubernetes 1.34 to 1.36) |
| Storage policy to namespace | vSphere Namespace storage policies and limits, set in vCenter | StorageClasses plus ResourceQuota | StorageClasses plus ResourceQuota |
| Second CSI driver (Tintri) | Not the normal VKS pattern; confirm support with Broadcom and Tintri before planning on it | Tintri 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 |
| RWX | vSAN File Services through CNS; none on Tintri-only storage | Same: RWO only without vSAN File Services | Same, unless you add an NFS CSI path |
| Who operates it | vSphere admins | Platform team with Red Hat support | Platform 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
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 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.
| Criterion | Weight | A | B | C | Notes |
|---|---|---|---|---|---|
| Supported path on the chosen platform | 20 | 5 | 3 | 4 | A is the platform default everywhere; B depends on the Tintri operator for your OpenShift release |
| RWO database performance and maturity | 15 | 5 | 4 | 5 | C uses A for databases |
| Per-PV visibility and QoS on the VMstore | 15 | 3 | 5 | 4 | A gets per-PV visibility via the K8S registration, but QoS stays per worker VM |
| Snapshot and clone efficiency | 10 | 3 | 5 | 4 | B clones on the array; A goes through CNS snapshots |
| Network and security exposure | 15 | 5 | 2 | 3 | B needs a storage VLAN in the guest |
| Operational simplicity | 15 | 5 | 3 | 2 | C runs two or three drivers |
| RWX available | 10 | 1 | 1 | 3 | C via the approved NFS gateway path |
| Weighted score (of 500) | 100 | 410 | 330 | 360 | Score = sum of weight x rating |
| Passes must-haves R-05, R-06 | no | no | yes | Decision: 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.
| Tier | StorageClass | Option | vSphere policy / Tintri object | QoS on the VMstore | Snapshots and DR |
|---|---|---|---|---|---|
| Gold (databases, queues) | tintri-gold-csi | A | policy k8s-tintri-gold; PVs are vDisks of db-pool workers | db-pool worker VMs in service group sg-k8s-db: a minimum reservation, no ceiling below 10,000 | Velero hourly with data mover; reclaim Retain |
| Silver (default) | tintri-silver-csi | A | policy k8s-tintri-silver; general-pool workers | no minimum; ceiling on the general pool so merges and batch jobs cannot starve the db pool | Velero daily; reclaim Delete |
| Clone (exception) | tintri-csi-file | B | share /tintri/csi; one CSI managed object per PV | per-volume, per the Tintri CSI documentation | CSI snapshots on the VMstore; Velero for off-array copies |
| Shared (exception) | nfs-shared | RWX via NFS gateway VM | gateway VM on ds-tintri-k8s | per-VM QoS on the gateway VM | VMstore 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.
| What | Mechanism | RPO / RTO in this design | Why 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 VMstore | 1 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 RPO | Database-native replication (for example PostgreSQL streaming) to a standby cluster at DR | minutes | Storage-level copies of a running database are crash-consistent at best |
| Option B PVs | CSI snapshots on the VMstore for fast local restore; Velero data mover for the off-array copy | 1 h / 4 h | Array snapshots alone are on the same array |
| RWX gateway VM | VMstore snapshots and replication through a TGC service group | per service group policy | It is a VM, so the VM-level tools fit |
| Cluster objects | GitOps repository plus Velero resource backups | per commit / 1 h | etcd snapshots restore a whole cluster, not a namespace |
| Worker and control plane VMs | Rebuilt from the installer or machine sets | n/a | Replicating 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.
Ports and paths
| From | To | Protocol / port | Purpose | Status |
|---|---|---|---|---|
| ESXi vmk2 (VLAN 30) | VMstore data IP | NFSv3, TCP 2049 | Datastore I/O (option A) | Verified |
| Worker eth1 (VLAN 35) | VMstore data IP on VLAN 35 | NFS, TCP 2049 | Guest NFS (option B) | Port verified; NFSv3 also uses portmapper and mountd, so confirm the full list for your TxOS |
| vSphere CSI controller | vCenter | HTTPS 443 | CNS create, attach, snapshot | Verified |
| Tintri CSI controller | VMstore management address | HTTPS | Volume create and delete through the VMstore API | Port 443 assumed; confirm |
| VMstore admin (VLAN 10) | Kubernetes API VIP | TCP 6443 | K8S registration: VMstore reads PVs, PVCs, pods | 6443 verified on kubernetes.io; the VMstore side is per the v310 K8sConfig DTO |
| Admin workstation | vCenter, VMstore, TGC, kube-apiserver | HTTPS 443, TCP 6443 | Postman, kubectl, PowerCLI | Verified |
| kube-apiserver | kubelet | TCP 10250 | exec, logs, metrics | Verified |
| vCenter | ESXi | TCP 443 and 902 | Management and attach operations | Verified |
| VMstore | DR VMstore (VLAN 40) | TCP 1304 (async), 1338 (sync) | Replication | From older public Tintri guidance; confirm for TxOS 6.0.x |
| Velero node agent | Object storage | HTTPS 443 | Data mover uploads | Endpoint-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.
| Platform | Zone mechanism | Storage 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 labels | Every node VM must carry a tag in each listed category or registration fails. A PV lives in one zone; pods follow it. |
| OpenShift | Failure domains across up to three vCenters, defined at install | One VMstore datastore per failure domain; storage policies per zone |
| VKS | vSphere Zones on the Supervisor; a namespace can span up to three | Zonal storage policies; each zone needs its own datastore |
| Tintri CSI (option B) | zone per VMstore in vmstore_map, label topology.vmstore.csi.tintri.com/zone | allowedTopologies 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.
| Workload | PVCs | Size each | Provisioned | IOPS each (steady) |
|---|---|---|---|---|
| PostgreSQL data (6 clusters x 3) | 18 | 200 GiB | 3,600 GiB | 3,000 primary / 800 replica |
| PostgreSQL WAL | 18 | 50 GiB | 900 GiB | (in the figure above) |
| Kafka brokers | 3 | 1,024 GiB | 3,072 GiB | 2,500 |
| OpenSearch data nodes | 6 | 2,048 GiB | 12,288 GiB | 1,500 |
| Prometheus (HA pair) | 2 | 500 GiB | 1,000 GiB | 1,000 |
| Small application PVCs | 120 | 10 GiB | 1,200 GiB | 50 |
| RWO total | 167 | 22,060 GiB | ||
| RWX model cache (gateway VM) | 1 | 2,048 GiB | 2,048 GiB | 1,500 |
| Node OS disks (3 control plane + 12 workers) | 15 VMDKs | 120 GiB | 1,800 GiB | 100 |
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.Searchableon the root folder. - Secrets.
vsphere-config-secret(namespacevmware-system-csion upstream; managed by the operator on OpenShift) andvmstore-csi-file-driver-configboth 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/csito the VLAN 35 node subnet only, never to VLAN 30 or the node network. Decide root squash and the podfsGrouppolicy together; the Tintri StorageClass parametermountPointPermissionsdefaults 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.
--insecureis 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.
- Pod and PVC: kubelet volume statistics and the CSI sidecar metrics, collected as in OTel part 5 or, on OpenShift, OpenTelemetry on OpenShift on vSphere.
- Datastore and host: NFS latency per host as in NFS datastore latency with OpenTelemetry, and APD warnings from ESXi logs.
- CNS: volume health and datastore accessibility per volume from CnsQueryVolume (
healthStatus,datastoreAccessibilityStatus). - VMstore: per-VM and per-vDisk latency breakdown (
GET /v310/virtualDisk/{vmId}/{vdiskId}/statsRealtime), with the method in per-VM latency from the VMstore API and the vSphere and VMstore correlation script. - End to end: OTel part 6 walks a trace from request to datastore latency.
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.
| ID | Decision | Justification | Impact / risk | Check |
|---|---|---|---|---|
| KD-01 | Kubernetes PVs land on ds-tintri-k8s, selected by a tag-based storage policy | Placement follows policy, so a second array later is a policy change, not a StorageClass rewrite | Tag must exist on the datastore before the first PVC | vCenter: design NFS datastore |
| KD-02 | Storage policies k8s-tintri-gold and k8s-tintri-silver | Quota and reporting per class; VKS namespaces bind to policies | Both resolve to one datastore today; not a performance tier | vCenter: storage policies |
| KD-03 | Classes gold (Retain), silver (default, Delete), clone (B), shared (RWX); WaitForFirstConsumer; expansion on; exactly one default | Retain protects databases from a deleted PVC; late binding is topology-safe | Retain leaves released PVs to clean up | KD-03 gold StorageClass |
| KD-04 | Storage option C: A default, B by exception, RWX through csi-driver-nfs to an NFS gateway VM | Only option passing R-05 and R-06 (section 07) | Two or three drivers to patch; exception approval process needed | K8s: CSI drivers installed |
| KD-05 | Attach 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 workers | KD-05 attach headroom per node |
| KD-06 | No datastoreurl in any class; all CNS volumes on the design datastore | Avoid hard-wired placement that survives a migration | Off-design volumes show up in the CNS query | KD-06 CNS volumes on the design datastore |
| KD-07 | CSI snapshots are transient; Velero data mover copies them off-array | vSphere CSI: 3 snapshots per volume by default; snapshots block expansion and deletion | Object storage at both sites | KD-07 VolumeSnapshotClass present |
| KD-08 | Option B only on VLAN 35 via a dedicated eth1; Tintri CSI in its own namespace with a dedicated VMstore account | Keeps the datastore VLAN out of guests (K-02) | New VLAN through the UCS and Nexus change process | KD-08 option B: CSI properties |
| KD-09 | Namespace per team, per-class storage quota, zero quota on exception classes; vSphere Namespace storage limits on VKS | R-03 | Quota changes go through the platform team | KD-09 storage quota / vSphere Namespace storage specs |
| KD-10 | OpenShift 5.0 on vSphere 9 (VCF 9.x) | C-03; Tintri operator available in the Red Hat catalog | Confirm the OpenShift and VCF support matrix for 5.0 before go-live | vCenter: version; K8s: version |
| KD-11 | Single zone in phase 1; a zone is added only with its own VMstore | A zone sharing the array is not a storage failure domain | No storage-level site resilience in phase 1 (DR is restore) | manual review |
| KD-12 | Register the cluster on the VMstore (K8S manager) with a read-only client certificate | R-07: PV to vDisk mapping on the array | Certificate expiry (K-04) is checked | KD-12 cluster registered; PV-to-vDisk map |
| KD-13 | Node pools are QoS domains; db-pool workers have no ceiling below 10,000 normalized IOPS | Option A QoS is per worker VM (K-01) | Taints and tolerations must be kept correct | KD-13 worker VM QoS ceiling |
| KD-14 | VMstore used capacity below 80% | Headroom for snapshots, growth and rebuilds | Procurement trigger at 70% | KD-14 capacity under the ceiling |
| KD-15 | DR by Velero restore into a DR cluster; database-native replication where RPO is under 1 hour; worker VMs are not replicated | R-04; Kubernetes owns the PV lifecycle | Restore must be rehearsed quarterly | restore test record |
| KD-16 | Least-privilege accounts per consumer; short-lived audit token; TLS verification on | Audit and blast radius | More accounts to rotate | 401/403 tests in every folder |
17. Design to API: the conformance sequence
Figure 3 is the order the collection reads each KD back.
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);csiPropertiesand the CSI refresh need v310.191 (TxOS 5.6.0). On vSphere 9.1GET /api/vcenter/namespace-management/clustersis deprecated in favour ofGET /api/vcenter/namespace-management/supervisors/summaries; use the latter everywhere. Scripts that log out of the VMstore with GET or log in withoutfullApiVersionshould 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
- Postman: Import, select both files, pick the environment, fill
password,tintriPasswordandk8sToken(all secret type, empty in the file), and setdatastoreUrlfrom the first CNS query result. - Run the folders in order with Collection Runner. 01 Auth must pass before anything else means anything.
- 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. - 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"
}
]
}
]
}
| Variable | Example | Meaning |
|---|---|---|
baseUrl | https://vcenter01.lab.local | vCenter |
username / password | svc-k8s-design-audit@vsphere.local / (secret) | read-only vCenter account with Cns.Searchable |
vimRelease | 9.0.0.0 | VI JSON release path for the CNS query |
k8sApiUrl / k8sToken | https://10.0.50.10:6443 / (secret) | Kubernetes API and audit token |
k8sClusterName, k8sClusterId | k8s-prod-01 | name registered on the VMstore; CSI cluster-id in CNS |
platform | openshift | vks | upstream | turns VKS-only checks on or off |
scGold, scGoldReclaim, policyGold | tintri-gold-csi, Retain, k8s-tintri-gold | KD-02, KD-03 |
tenantNamespaces, vsphereNamespace | team-a,team-b / team-a | KD-09 |
attachBudget | 40 | KD-05 |
datastoreName, datastoreUrl | ds-tintri-k8s / ds:///vmfs/volumes/… | KD-01, KD-06 |
tintriBaseUrl, tintriApiVersion | https://vmstore01.lab.local, v310.207 | VMstore and fullApiVersion |
workerVmPrefix, workerMaxIopsFloor | k8s-prod-01-w, 10000 | KD-13 |
capacityCeilingPct | 80 | KD-14 |
optionB | false | KD-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.
| Method | Path | Purpose | Key fields | Since |
|---|---|---|---|---|
| GET | /version | Token and reachability check | gitVersion | Kubernetes 1.x |
| GET | /apis/storage.k8s.io/v1/storageclasses[/{name}] | KD-03 class settings | provisioner, parameters, reclaimPolicy, volumeBindingMode | storage.k8s.io/v1 |
| GET | /apis/storage.k8s.io/v1/csidrivers | Drivers installed | metadata.name | storage.k8s.io/v1 (Kubernetes 1.18) |
| GET | /apis/storage.k8s.io/v1/csinodes | Per-node attach limit | spec.drivers[].allocatable.count | storage.k8s.io/v1 (Kubernetes 1.17) |
| GET | /apis/storage.k8s.io/v1/volumeattachments | KD-05 attachments per node; attach errors | spec.nodeName, status.attached, status.attachError | storage.k8s.io/v1 |
| GET | /api/v1/persistentvolumes | PV to CNS volume ID | spec.csi.volumeHandle | core v1 |
| GET | /api/v1/persistentvolumeclaims | Pending PVCs | status.phase | core v1 |
| GET | /api/v1/resourcequotas | KD-09 per-class quotas | spec.hard | core v1 |
| GET | /apis/snapshot.storage.k8s.io/v1/volumesnapshotclasses | KD-07 | driver, deletionPolicy | snapshot.storage.k8s.io/v1 (external-snapshotter, v8.7.1 current) |
| POST / DELETE | /api/session | vCenter session | 201 token string / 204 | vSphere 7.0 U2 (/api paths) |
| GET | /api/appliance/system/version | vCenter version | version, build | vSphere 7.0 U2 (/api paths) |
| GET | /api/vcenter/namespace-management/supervisors/summaries | Supervisors (VKS) | items[].supervisor, info.config_status, info.kubernetes_status | items since vSphere API 8.0.0.1 |
| GET | /api/vcenter/namespaces/instances/{namespace} | KD-09 on VKS | storage_specs[].policy, storage_specs[].limit | vSphere API 7.0.0.0 |
| GET | /api/vcenter/storage/policies | KD-02 | policy, name, description (max 1,024 returned) | vSphere API 6.7 |
| GET | /api/vcenter/datastore?names=&types=NFS | KD-01 | datastore, type, free_space, capacity | vSphere 7.0 U2 (/api paths) |
| POST | /sdk/vim25/{release}/vsan/CnsVolumeManager/cns-volume-manager/CnsQueryVolume | KD-06 CNS volumes | volumes[].datastoreUrl, healthStatus, cursor | VI JSON API from 8.0 U1; CnsQueryVolume from 6.7 U3 |
| GET | /api/info | VMstore versions (no auth) | supportedVersionSet, preferredVersion | v310 |
| POST | /api/v310/session/login | VMstore session | fullApiVersion; JSESSIONID cookie | v310 |
| GET | /api/v310/datastore/{uuid}/hypervisorManagerConfig | vCenter and K8S registrations | hypervisorType, k8sConfig.clusterName, clientCertValidUntil | v310.21 (K8S type: check your release) |
| GET | /api/v310/datastore/{uuid}/k8s/pv | KD-12 PV to vDisk | vdUuid, vmTintriUuid, pvcName, storageClassName | v310.171 |
| GET | /api/v310/datastore/{uuid}/k8s/pvc | PVC view on the array | volumeName, vdUuid, status | v310.171 |
| GET | /api/v310/virtualDisk/{vmId}/{vdiskId}/statsRealtime | Per-PV latency (option A) | page of stat slices | v310 (no since stated) |
| GET | /api/v310/appliance/{uuid}/csiProperties | KD-08 option B discovery settings | isEnabled, directoryNames, fileExtensions | v310.191 |
| GET | /api/v310/vm?live=TRUE | KD-13 worker QoS | qosConfig.maxNormalizedIops | v310 |
| GET | /api/v310/datastore/{uuid}/statsSummary | KD-14 capacity | spaceUsedGiB, spaceTotalGiB, latencyTotalMs | v310 |
| POST | /api/v310/session/logout | End VMstore session | 204 | v310 (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" }
| Status | Kubernetes | vCenter (/api and /sdk) | VMstore | Admin action |
|---|---|---|---|---|
| 400 | Malformed request or field selector | INVALID_ARGUMENT | Validation failed | Fix the request |
| 401 | Token missing, expired or wrong audience | Session missing or expired | Not logged in or session expired | Mint a new token or re-run 01 Auth; check clocks |
| 403 | RBAC: the ClusterRole is not bound or lacks a resource | Privilege missing (for example Cns.Searchable) | Bad credentials or missing licence | Fix the role, not the collection |
| 404 | Resource or API group absent (snapshot CRDs not installed returns 404 on volumesnapshotclasses) | Wrong object ID | Path newer than the TxOS, or wrong UUID | Check versions with /version, system/version and /api/info |
| 409 | AlreadyExists (never expected here) | ALREADY_EXISTS | Object exists | The collection is read-only; investigate the caller |
| 500 | API server error | VI JSON faults (InvalidArgument, CnsFault) come back as 500 | TintriError, for example ERR-API-9904 on /k8s/pv | Read 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.
- Confirm versions.
kubectl version,GET /api/appliance/system/version,GET /api/infoon the VMstore. Expect Kubernetes within the vSphere CSI release’s validated range, vCenter 9.x, andv310.207(or the version you pinned) insupportedVersionSet. - 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), thenNew-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-goldreturns onlyds-tintri-k8s. - Network (KD-08, section 11).
vmkping -I vmk2 -d -s 8972 10.0.30.50on 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”. - StorageClasses and snapshot class (KD-03, KD-07).
kubectl apply -f storageclasses-option-a.yaml. Check:kubectl get scshows exactly one(default). - 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 csidriverslistsvmstore.csi.tintri.comand the node pods are Running on every worker. - Quotas (KD-09). Apply one quota file per namespace. Check:
kubectl describe quota storage -n team-ashows the per-class lines, with 0 on the exception classes. - Velero (KD-07, KD-15). Install and create the schedule. Check:
velero backup-location getshows Available; the first scheduled backup completes with data uploads. - 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/hypervisorManagerConfigcontains aK8Sentry with yourclusterName. - Smoke test. Create a 1 GiB PVC on
tintri-silver-csiand a pod that writes to it. Check: the PVC is Bound, CnsQueryVolume returns it onds-tintri-k8s, and/k8s/pvon the VMstore lists it with avdUuid. - 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
| # | Check | Pass when |
|---|---|---|
| 1 | Every must-have requirement is traced to a KD and a check | No R-xx without a KD; no KD without a check or a named manual review |
| 2 | Platform and CSI versions are inside each other’s validated ranges | Kubernetes minor listed by the vSphere CSI release in use; TxOS meets the Tintri CSI minimum (5.6.0.1) |
| 3 | RWX has an approved path or is explicitly out of scope | Not assumed from vSphere CSI on Tintri-only storage |
| 4 | Attach budget calculated with a host failure and skew | Worst case under the budget; re-size trigger written down |
| 5 | QoS unit is understood | Document states that option A QoS is per worker VM and how node pools enforce tiers |
| 6 | Snapshot lifecycle cannot block expansion | CSI snapshots transient; data mover configured |
| 7 | DR tested, not described | A dated restore of one namespace into the DR cluster |
| 8 | Storage network is not reachable from guests unless option B is approved | VLAN 30 absent from every VM port group; VLAN 35 only on approved workers |
| 9 | MTU verified end to end on every storage VLAN | vmkping and guest ping with DF at 8972 bytes pass from every host |
| 10 | Secrets and accounts are least privilege and rotated | Dedicated accounts; Secrets encrypted at rest; rotation dates recorded |
| 11 | VMstore registration certificate expiry is monitored | KD-12 check passes with more than 30 days left |
| 12 | Exactly one default StorageClass | KD-03 check passes |
| 13 | Quotas exist for every tenant, with zero on exception classes | KD-09 check passes |
| 14 | Capacity at year 3 under the ceiling | Sizing step 2 and KD-14 agree |
| 15 | Conformance runs on a schedule and someone reads it | Named owner and a ticket on failure |
24. Troubleshooting the design
| Symptom | Likely cause | Check | Fix |
|---|---|---|---|
| PVC stays Pending, event mentions no compatible datastore | Storage policy tag missing from ds-tintri-k8s, or wrong policy name in the class | Get-SpbmCompatibleStorage; KD-02 and KD-03 checks | Tag the datastore; correct storagepolicyname |
| PVC Pending with WaitForFirstConsumer | Normal until a pod uses it; or the pod cannot schedule | kubectl describe pod | Fix scheduling (taints, zones, resources) |
| Pod stuck ContainerCreating, attach timeout | Node at the 59-volume PVSCSI limit, or vCenter task backlog | KD-05 check; csinodes allocatable; vCenter tasks | Add workers or rebalance; raise the budget only with a new calculation |
| Multi-Attach error | RWO volume still attached to a failed node | volumeattachments for the PV | Let the attach-detach controller time out, or clean up the node; never force RWX |
| Expansion or deletion of a PVC fails | The volume still has CSI snapshots (vSphere CSI rule) | kubectl get volumesnapshot -A | Delete or move the snapshots; check the Velero data mover |
| Option B mount hangs, then times out | VLAN 35 missing on the port group or UCS vNIC template | Guest ping to the VMstore data IP | Add the VLAN on both fabrics and the vPC |
| Option B mount: access denied or permission errors | Share not exported to the node subnet; root squash vs fsGroup | VMstore share settings; pod security context | Export to VLAN 35 subnet; align mountPointPermissions and fsGroup |
| Large writes stall, small ones succeed | MTU mismatch on one hop | vmkping or guest ping with DF at 8972 | Fix MTU on the offending hop |
| All pods on one worker slow at once | VMstore QoS ceiling on that worker VM (option A) | KD-13 check; VMstore throttle latency for the VM | Remove the ceiling; keep tiers at node-pool level |
/k8s/pv on the VMstore returns nothing | Cluster not registered, or client certificate expired | KD-12 check | Re-register or rotate the certificate |
| CnsQueryVolume returns 403 or a fault | Account lacks Cns.Searchable; wrong release path | Role on the root folder; vimRelease | Grant the privilege; use your vCenter’s release |
newman: pm.execution.skipRequest is not a function | newman older than 6.1.0 | newman --version | Upgrade 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