Recording: https://www.youtube.com/watch?v=_sU62E6aHQk
Agenda:
- overview of test types
- walk through of code
show re-using kind clustermaybe in part2 :-)
Three types of e2e entry points:
- CAPZ e2e
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 |
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: hostprocess- | |
# annotations: | |
# microsoft.com/hostprocess-inherit-user: "true" | |
spec: | |
securityContext: | |
windowsOptions: | |
hostProcess: true |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: sample | |
labels: | |
app: sample | |
spec: | |
replicas: 1 | |
template: | |
metadata: |
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 |
apiVersion: apps/v1 | |
kind: DaemonSet | |
metadata: | |
labels: | |
k8s-app: containerd-logger | |
name: containerd-logger | |
namespace: kube-system | |
spec: | |
selector: | |
matchLabels: |
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 } } |
Recording: https://www.youtube.com/watch?v=_sU62E6aHQk
Agenda:
Three types of e2e entry points:
//go:build e2e | |
// +build e2e | |
package main | |
import ( | |
"context" | |
"sigs.k8s.io/cluster-api-provider-azure/test/e2e" |
KEP: kubernetes/enhancements#2371 KEP: https://github.com/kubernetes/enhancements/tree/master/keps/sig-node/2371-cri-pod-container-stats
containerd linux implementation: containerd/containerd#6113
crictl implementation: kubernetes-sigs/cri-tools#886
cri pr: https://github.com/kubernetes/kubernetes/pull/102789/files
executes a bunch of functions at https://github.dev/kubernetes/kubernetes/blob/bad4faf1b9d69d3cb6e8de90dc5eee1d8cf0b6d3/pkg/kubelet/kubelet_node_status.go#L640-L641