Skip to content

Instantly share code, notes, and snippets.

View shalini-b's full-sized avatar

Shalini Bhaskara shalini-b

  • VMware
  • Sunnyvale, California
View GitHub Profile
@shalini-b
shalini-b / output-wcp.md
Last active July 23, 2021 22:38
Non-strict topology experiment in WCP environments

SC describe output:

root@42126ac4891cde8ba1b27a61eb1ffbb9 [ ~ ]# kdsc sc vsan-d-policy
Name:                  vsan-d-policy
IsDefaultClass:        No
Annotations:           cns.vmware.com/StoragePoolTypeHint=cns.vmware.com/vsanD
Provisioner:           csi.vsphere.vmware.com
Parameters:            storagePolicyID=6536f0ca-88e8-4381-bba1-e5dd20367e6f
AllowVolumeExpansion:  True
MountOptions:          <none>
@shalini-b
shalini-b / output-1.md
Last active July 23, 2021 23:11
CreateVolume REQ/REP with topology, WFFC and not strict-topology

Environment details:

DC -> region-1
Host1 (10.186.10.56) -> zone-a. VMs: k8s-node-018, k8s-node-0888
Host2 (10.186.7.239) -> zone-b
Host3 (10.186.9.77) -> zone-c. VMs: k8s-master-964, k8s-node-0316

Datastore info:

@shalini-b
shalini-b / output.md
Last active February 2, 2022 00:51
CreateVolume REQ/REP with topology and WFFC

Environment details:

DC -> region-1
Host1 (10.186.10.56) -> zone-a. VMs: k8s-node-018, k8s-node-0888
Host2 (10.186.7.239) -> zone-b
Host3 (10.186.9.77) -> zone-c. VMs: k8s-master-964, k8s-node-0316

Datastore info:

@shalini-b
shalini-b / gist:e4c8256cd46eb096e0efc3ae322ba644
Last active September 22, 2020 01:11
csi-resizer v0.5 exponential backoff event logs during an error
I0921 18:56:02.371126 1 event.go:281] Event(v1.ObjectReference{Kind:"PersistentVolumeClaim", Namespace:"default", Name:"block-pvc", UID:"565857cf-f10e-4d6a-896b-e1f84fa70ac5", APIVersion:"v1", ResourceVersion:"455875", FieldPath:""}): type: 'Normal' reason: 'Resizing' External resizer is resizing volume pvc-565857cf-f10e-4d6a-896b-e1f84fa70ac5
I0921 18:56:04.646299 1 event.go:281] Event(v1.ObjectReference{Kind:"PersistentVolumeClaim", Namespace:"default", Name:"block-pvc", UID:"565857cf-f10e-4d6a-896b-e1f84fa70ac5", APIVersion:"v1", ResourceVersion:"455884", FieldPath:""}): type: 'Normal' reason: 'Resizing' External resizer is resizing volume pvc-565857cf-f10e-4d6a-896b-e1f84fa70ac5
I0921 18:56:07.716238 1 event.go:281] Event(v1.ObjectReference{Kind:"PersistentVolumeClaim", Namespace:"default", Name:"block-pvc", UID:"565857cf-f10e-4d6a-896b-e1f84fa70ac5", APIVersion:"v1", ResourceVersion:"455895", FieldPath:""}): type: 'Normal' reason: 'Resizing' External resizer is resizing volume pvc-56585
@shalini-b
shalini-b / postgres-cheatsheet.md
Created June 29, 2018 17:51 — forked from Kartones/postgres-cheatsheet.md
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)