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 / error.log
Created August 21, 2021 20:54
aks-containerd-error
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 2m39s default-scheduler Successfully assigned default/aspnet-store-76cb6c767c-bkxxf to aks-agentpool-20139558-vmss000000
Warning Failed 27s kubelet Failed to pull image "jsturtevant/whoami-aspnet:latest": rpc error: code = Unknown desc = failed to pull and unpack image "docker.io/jsturtevant/whoami-aspnet:latest": failed to extract layer sha256:6420f996a252eca66165a2ceddf9261caa1cec78548194ab34b5d6bb300acac1: link /var/lib/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots/699/fs/Files/Program Files/common files/Microsoft Shared/Ink/en-US/micaut.dll.mui /var/lib/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots/699/fs/Files/Program Files (x86)/common files/Microsoft Shared/ink/en-US/micaut.dll.mui: no such file or directory: unknown
Warning Failed 27s
@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
@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 / 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 / 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 / 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 / notes.md
Last active March 17, 2022 22:02
capz-e2e-notes
@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"