Skip to content

Instantly share code, notes, and snippets.

View ddebroy's full-sized avatar

Deep Debroy ddebroy

View GitHub Profile
@ddebroy
ddebroy / crust.md
Created June 2, 2022 18:33
CRUST KEP
@ddebroy
ddebroy / keybase.md
Last active January 10, 2020 06:21
keybase file

Keybase proof

I hereby claim:

  • I am ddebroy on github.
  • I am ddebroy (https://keybase.io/ddebroy) on keybase.
  • I have a public key whose fingerprint is 98D6 BF79 705D 08C8 D69D CAD5 7061 0B1B AB90 2201

To claim this, I am signing this object:

@ddebroy
ddebroy / gcepd.yaml
Created September 30, 2019 16:34
Windows GCE PD CSI daemonset
kind: DaemonSet
apiVersion: apps/v1
metadata:
name: csi-gce-pd-node-win
spec:
selector:
matchLabels:
app: gcp-compute-persistent-disk-csi-driver-win
template:
metadata:
@ddebroy
ddebroy / sqlsrv.yaml
Created September 30, 2019 16:26
SQLServer Windows POD
apiVersion: v1
kind: Pod
metadata:
name: sqlserver-iscsi1
labels:
app: sqlserver-iscsi1
spec:
tolerations:
- key: "node.kubernetes.io/os"
operator: "Equal"
@ddebroy
ddebroy / diskutil.c
Created August 23, 2019 20:41
C based utility to invoke disk ID related IOCTLs in Windows
/*
diskutil.c
A utility to enumerate disk devices and query id information
*/
#include <DriverSpecs.h>
_Analysis_mode_(_Analysis_code_type_user_code_)
#include <windows.h>
@ddebroy
ddebroy / windows.pluginwatcher.kk.patch
Created August 9, 2019 00:09
in-tree changes for Windows plugin-watcher
diff --git a/pkg/kubelet/pluginmanager/pluginwatcher/plugin_watcher.go b/pkg/kubelet/pluginmanager/pluginwatcher/pl
diff --git a/pkg/kubelet/pluginmanager/pluginwatcher/plugin_watcher.go b/pkg/kubelet/pluginmanager/pluginwatcher/plugin_watcher.go
index ace935c..234a358 100644
--- a/pkg/kubelet/pluginmanager/pluginwatcher/plugin_watcher.go
+++ b/pkg/kubelet/pluginmanager/pluginwatcher/plugin_watcher.go
@@ -20,6 +20,7 @@ import (
"fmt"
"os"
"path/filepath"
+ "runtime"
time="2019-08-08T02:40:01.899241100Z" level=debug msg="[BUILDER] Cache miss: [cmd /S /C #(nop) COPY file:ac98d712f0389c6d774bdd6483bee403d6f8724a5f76095bc74d47fe6132e154 in \\foo\\helloworld3 ]"
time="2019-08-08T02:40:01.900237500Z" level=debug msg="hcsshim::GetLayerMountPath" path="C:\\ProgramData\\docker\\windowsfilter\\70c7d78b917d68daf9f1c7222fdf5e419aeec2b818ba323925b980ff4842044f"
time="2019-08-08T02:40:01.901240200Z" level=debug msg="Calling proc (1)" path="C:\\ProgramData\\docker\\windowsfilter\\70c7d78b917d68daf9f1c7222fdf5e419aeec2b818ba323925b980ff4842044f"
time="2019-08-08T02:40:01.902236800Z" level=debug msg="Calling proc (2)" path="C:\\ProgramData\\docker\\windowsfilter\\70c7d78b917d68daf9f1c7222fdf5e419aeec2b818ba323925b980ff4842044f"
time="2019-08-08T02:40:01.903244500Z" level=debug msg="hcsshim::GetLayerMountPath - succeeded" mountPath="C:\\ProgramData\\docker\\windowsfilter\\70c7d78b917d68daf9f1c7222fdf5e419aeec2b818ba323925b980ff4842044f" path="C:\\ProgramData\\docker\\windowsfilter\\70c7d7
DEBU[2019-08-08T02:10:31.425959800Z] [BUILDER] Cache miss: [cmd /S /C #(nop) COPY file:5f20aeb95389832f9fc3b7d79ccea72b1aea14064c8885d319c374693af68ad9 in \foo\helloworld3 ]
DEBU[2019-08-08T02:10:31.425959800Z] hcsshim::GetLayerMountPath path C:\ProgramData\docker\windowsfilter\70c7d78b917d68daf9f1c7222fdf5e419aeec2b818ba323925b980ff4842044f
DEBU[2019-08-08T02:10:31.426956900Z] Calling proc (1)
DEBU[2019-08-08T02:10:31.427930500Z] Calling proc (2)
DEBU[2019-08-08T02:10:31.427930500Z] hcsshim::GetLayerMountPath succeeded path=C:\ProgramData\docker\windowsfilter\70c7d78b917d68daf9f1c7222fdf5e419aeec2b818ba323925b980ff4842044f mountPath=C:\ProgramData\docker\windowsfilter\70c7d78b917d68daf9f1c7222fdf5e419aeec2b818ba323925b980ff4842044f
DEBU[2019-08-08T02:10:31.428921100Z] hcsshim::CreateScratchLayer path C:\ProgramData\docker\windowsfilter\d03cc9642ea030aa9677f0b4bff1e2145cfbf39bd22ea9cdd2f448a4123b4f1d
DEBU[2019-08-08T02:10:31.429960400Z] hcsshim::NameToGuid name:70c7d78b917d68daf9f1c7222fdf5e419aeec2b818ba3239
# Source: http://frippery.org/busybox/
# This Dockerfile builds a (32-bit) busybox images which is suitable for
# running many of the integration-cli tests for Docker against a Windows
# daemon. It will not run on nanoserver as that is 64-bit only.
#
# John Howard (IRC jhowardmsft, Email [email protected])
#
# To build: docker build -t busybox .
# To publish: Needs someone with publishing rights
#
@ddebroy
ddebroy / iscsi-flex-pod.yaml
Created May 21, 2019 18:44
iscsi-mssql-pod
apiVersion: v1
kind: Pod
metadata:
name: sqlserver-iscsi1
labels:
app: sqlserver-iscsi1
spec:
tolerations:
- key: "node.kubernetes.io/os"
operator: "Equal"