Skip to content

Instantly share code, notes, and snippets.

View prateekpandey14's full-sized avatar
🚀
Solving Problems

Prateek Pandey prateekpandey14

🚀
Solving Problems
View GitHub Profile
@prateekpandey14
prateekpandey14 / resize-single-disk-pool.md
Last active February 27, 2020 20:31
Resizing single disk pool

1. Do kubectl exec inside the cstor-pool-mgmt using command and install parted

Get the pool pod name using kubectl get pods -n openebs command and exec inside the container. Install the parted tool using apt-get install parted after execing into the cstor-pool-mgmt container.

$ kubectl exec -it cstor-pool-1fth-7fbbdfc747-sh25t -n openebs -c cstor-pool-mgmt bash
@prateekpandey14
prateekpandey14 / validatingwebhook.yaml
Last active October 10, 2019 06:29
Generate admission webhook certs
1. Create a signed cert/key pair and store it in a Kubernetes `secret` that
will be consumed by admission-webhook deployment
$ ./webhook-create-signed-cert.sh \
--service admission-server-svc \
--secret admission-server-certs \
--namespace openebs
2. Patch the ValidatingWebhookConfiguration by set `caBundle` with correct value from Kubernetes cluster