Skip to content

Instantly share code, notes, and snippets.

View msau42's full-sized avatar
💭
I may be slow to respond.

Michelle Au msau42

💭
I may be slow to respond.
View GitHub Profile
@msau42
msau42 / gist:66cbdd43b9c2b5a5fb245b8de0f8338d
Created October 13, 2023 17:44
VAC status brainstorm
# Before Dynamic provisioning
spec:
VAC: silver
status:
# After Dynamic provisioning
spec:
VAC: silver
status:
volumeAttributeClassStatus:
@msau42
msau42 / Kubernetes manifests
Last active February 19, 2021 00:22
Dynamic provisioning autoscaling test
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: mysc
provisioner: kubernetes.io/gce-pd
reclaimPolicy: Delete
volumeBindingMode: WaitForFirstConsumer
parameters:
---
apiVersion: v1
# StoragePools have nodeaffinity/selectors
# OPEN ISSUE: Does StoragePool also need parameters like ssd, encryption, etc.
type: StoragePool
metadata:
name: pool1
spec:
nodeAffinity/Selector:
zone: us-west1a
status:
capacity:
@msau42
msau42 / gist:1c29075fb5fce56ac884d58034d27dc4
Created May 10, 2018 01:25
VolumeBindingStress debugging
function run_int() {
#make test-integration WHAT=./test/integration/scheduler GO_FLAGS="-v" KUBE_TEST_ARGS="-run ^TestVolumeBinding$"
make test-integration WHAT=./test/integration/scheduler GOFLAGS="-v" KUBE_TEST_ARGS="-run ^TestVolumeBindingStress$" KUBE_TEST_VMODULE="scheduler*=5,pv*=5"
#make test-integration WHAT=./test/integration/scheduler GO_FLAGS="-v" KUBE_TEST_ARGS="-run ^TestPVAffinityConflict$"
}
function run_int_fail() {
i=0
while run_int > /tmp/int.log.$i;
do