Skip to content

Instantly share code, notes, and snippets.

View jsturtevant's full-sized avatar
💻
right clicking and viewing the source

James Sturtevant jsturtevant

💻
right clicking and viewing the source
View GitHub Profile
@jsturtevant
jsturtevant / notes.md
Last active July 21, 2022 19:07
kubectl plugins and krew
@jsturtevant
jsturtevant / run-e2e.go
Created April 1, 2022 15:40
Run a sub project of capz e2e
//go:build e2e
// +build e2e
package main
import (
"context"
"sigs.k8s.io/cluster-api-provider-azure/test/e2e"
@jsturtevant
jsturtevant / notes.md
Last active March 17, 2022 22:02
capz-e2e-notes
@jsturtevant
jsturtevant / containerd-corruption.ps1
Created March 2, 2022 23:52
hcs file system corruption finder
Get-ChildItem –Path "C:\ProgramData\root\io.containerd.snapshotter.v1.windows\snapshots\" -Recurse | ForEach-Object { fsutil.exe hardlink list $_.FullName; if (-not($?)){ echo $_.FullName > failures.log } }
@jsturtevant
jsturtevant / ctrd.yaml
Last active December 17, 2021 19:15
ctrdlogger
apiVersion: apps/v1
kind: DaemonSet
metadata:
labels:
k8s-app: containerd-logger
name: containerd-logger
namespace: kube-system
spec:
selector:
matchLabels:
@jsturtevant
jsturtevant / addon.sh
Last active November 15, 2021 23:03
aks-engine-addonmanager
set -x
retrycmd() {
retries=$1; wait_sleep=$2; timeout=$3; shift && shift && shift
for i in $(seq 1 $retries); do
timeout $timeout ${@} && break ||
if [ $i -eq $retries ]; then
echo Executed \"$@\" $i times
return 1
else
@jsturtevant
jsturtevant / akssample.yaml
Created October 1, 2021 22:14
ask sample
apiVersion: apps/v1
kind: Deployment
metadata:
name: sample
labels:
app: sample
spec:
replicas: 1
template:
metadata:
@jsturtevant
jsturtevant / doesnotwork.yaml
Last active August 25, 2021 00:24
hostprocess-cmd
apiVersion: v1
kind: Pod
metadata:
name: hostprocess-
# annotations:
# microsoft.com/hostprocess-inherit-user: "true"
spec:
securityContext:
windowsOptions:
hostProcess: true