Skip to content

Instantly share code, notes, and snippets.

View shubham14bajpai's full-sized avatar
🏠
Working from home

Shubham Bajpai shubham14bajpai

🏠
Working from home
View GitHub Profile
#include <iostream>
#include <string>
#include <map>
#include "standings.h"
using namespace std;
struct Team {
int win;
int loss;
@shubham14bajpai
shubham14bajpai / Snapshot-Migration.md
Last active June 12, 2020 05:59
Steps to migrate snapshot migration after migrating cstor volumes to CSI spec.
  1. Make sure the volume migration is successful. Follow the volume migration steps from the docs.

  2. Get the yamls for old volumesnapshot and volumesnapshotdata.

    • List old volumesnapshots and
    mayadata:cstor$ kubectl get volumesnapshots.volumesnapshot.external-storage.k8s.io
    NAME                  AGE
    snapshot-demo-cstor   7s
    • Select the snapshot to migrate and get the -o yaml output.
@shubham14bajpai
shubham14bajpai / Control-Plane-Migration.md
Last active June 12, 2020 04:56
Migrating OpenEBS setup to another namespace.

OpenEBS set with one jiva volume in default namespace.

mayadata:setup$ kubectl get pods
NAME                                                              READY   STATUS    RESTARTS   AGE
openebs-admission-server-8695fd778c-n4tw7                         1/1     Running   0          3m32s
openebs-apiserver-66f7f86b55-7fdtl                                1/1     Running   2          3m32s
openebs-localpv-provisioner-58cc756c78-tmfmp                      1/1     Running   0          3m32s
openebs-ndm-c2w7s                                                 1/1     Running   0          3m32s
openebs-ndm-operator-6f7f9c6778-qjhfn                             1/1     Running   1          3m32s
openebs-provisioner-5bd587c6c5-lhwrm                              1/1     Running   0          3m32s