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 / ipv6-kubeproxy.yaml
Last active May 24, 2020 15:40
ipv6-kubeproxy.yaml
apiVersion: cluster.x-k8s.io/v1alpha3
kind: Cluster
metadata:
name: ${CLUSTER_NAME}
namespace: default
spec:
clusterNetwork:
pods:
cidrBlocks:
- 2001:1234:5678:9abd::/64
@jsturtevant
jsturtevant / install-vim.bat
Last active July 14, 2020 21:00
Install Vim on Windows
cmd /c curl -OL https://gist.githubusercontent.com/jsturtevant/b5ae8d61e6f530f7f709f27a37044810/raw/dbc5c7a7ac09abb469549f8249214d96680dbde4/install-vim.bat
Example VS Code files for debugging docker [buildx](https://github.com/docker/buildx)
@jsturtevant
jsturtevant / control-node.sh
Last active November 11, 2022 17:12
Windows Kubeadm
# https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/
#install docker
#https://docs.docker.com/engine/install/ubuntu/
sudo apt-get update
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
@jsturtevant
jsturtevant / logger.yaml
Last active July 2, 2020 03:20
log-gen windows container
apiVersion: apps/v1
kind: Deployment
metadata:
name: logger-1809
labels:
app: logger-1809
spec:
replicas: 1
template:
metadata:
{
"log-driver": "json-file",
"log-opts": {
"max-size": "50m",
"max-file": "5"
}
}
@jsturtevant
jsturtevant / apiserver
Last active February 4, 2022 23:47
Windows debug
http://localhost:8001/api/v1/nodes/2618k8s000/proxy/stats/summary
https://github.com/kubernetes/kubernetes/blob/1f70708f6cc85985725c11cd69c4965c1f97b314/pkg/kubelet/server/server.go#L17
http://localhost:8001/api/v1/nodes/win-p-win000000/proxy/logs/kubelet/
@jsturtevant
jsturtevant / Dockerfile
Last active July 9, 2020 00:03
Windows pause image from scratch
ARG nanoserverTag="mcr.microsoft.com/windows/nanoserver:1809-amd64"
ARG sigWindowsTag=master
ARG windowsTestingTag=master
FROM --platform=$BUILDPLATFORM golang:1.14 as builder
RUN go get -d github.com/kubernetes-sigs/windows-testing || true
RUN go get -d github.com/kubernetes-sigs/sig-windows-tools || true
RUN CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o /app/pauseloop.exe /go/src/github.com/kubernetes-sigs/windows-testing/images/pause/
RUN CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o /app/wincat.exe /go/src/github.com/kubernetes-sigs/sig-windows-tools/cmd/wincat/
@jsturtevant
jsturtevant / notes.md
Last active August 21, 2020 18:56
Hyper-v aks-engine
apiVersion: v1
kind: Pod
metadata:
name: test
spec:
containers:
- name: test
image: e2eteam/busybox:1.29
command:
- sleep