Skaffold attempts to start the deployment but instead skips right to cleaning up and fails cleanup with the following error : Cleaning up resources encountered an error, will continue to clean up other resources.
waiting for deletion: starting command kubectl --context microk8s get -f - --ignore-not-found -ojson: exec: "kubectl": executable file not found in $PATH'
Skaffold debug log output
skaffold dev -v debug
DEBU[0000] skaffold API not starting as it's not requested subtask=-1 task=DevLoop
INFO[0000] Skaffold &{Version:v2.5.0 ConfigVersion:skaffold/v4beta5 GitVersion: GitCommit:4b5118b88718c5742efd18790aad59d163ed148e BuildDate:2023-05-26T12:36:15Z GoVersion:go1.19.9 Compiler:gc Platform:linux/amd64 User:} subtask=-1 task=DevLoop
INFO[0000] Loaded Skaffold defaults from "/home/angel/.skaffold/config" subtask=-1 task=DevLoop
DEBU[0000] config version out of date: upgrading to latest "skaffold/v4beta5" subtask=-1 task=DevLoop
DEBU[0000] parsed 1 configs from configuration file /home/angel/repos/skaffoldBug/skaffold.yaml subtask=-1 task=DevLoop
DEBU[0000] Defaulting build type to local build subtask=-1 task=DevLoop
DEBU[0000] Found raw k8s manifests without cloud run deploy, adding kubectl deployer subtask=-1 task=DevLoop
INFO[0000] map entry found when executing locate for &{eolnexus/test test <nil> {0xc0008778c0 <nil> <nil> <nil> <nil> <nil> <nil>} [] {[] []} [] } of type *latest.Artifact and pointer: 824644379248 subtask=-1 task=DevLoop
INFO[0000] Using kubectl context: microk8s subtask=-1 task=DevLoop
DEBU[0000] getting client config for kubeContext: `microk8s` subtask=-1 task=DevLoop
DEBU[0000] Running command: [minikube version --output=json] subtask=-1 task=DevLoop
DEBU[0000] setting Docker user agent to skaffold-v2.5.0 subtask=-1 task=DevLoop
INFO[0000] no kpt renderer or deployer found, skipping hydrated-dir creation subtask=-1 task=DevLoop
DEBU[0000] Running command: [kubectl config view --minify -o jsonpath='{..namespace}'] subtask=-1 task=DevLoop
DEBU[0001] CLI platforms provided: "" subtask=-1 task=DevLoop
DEBU[0001] getting client config for kubeContext: `microk8s` subtask=-1 task=DevLoop
DEBU[0001] platforms detected from active kubernetes cluster nodes: "linux/amd64" subtask=-1 task=DevLoop
DEBU[0001] platforms selected for artifact "eolnexus/test": "linux/amd64" subtask=-1 task=DevLoop
DEBU[0001] Using builder: local subtask=-1 task=DevLoop
DEBU[0001] push value not present in NewBuilder, defaulting to true because cluster.PushImages is true subtask=-1 task=DevLoop
INFO[0001] build concurrency first set to 1 parsed from *local.Builder[0] subtask=-1 task=DevLoop
INFO[0001] final build concurrency value is 1 subtask=-1 task=DevLoop
Generating tags...
- eolnexus/test -> DEBU[0001] Running command: [git describe --tags --always] subtask=-1 task=Build
DEBU[0001] Command output: [795753b
] subtask=-1 task=Build
DEBU[0001] Running command: [git status . --porcelain] subtask=-1 task=Build
DEBU[0001] Command output: [] subtask=-1 task=Build
eolnexus/test:795753b
INFO[0001] Tags generated in 10.264ms subtask=-1 task=Build
Checking cache...
DEBU[0001] Found dependencies for dockerfile: [{package.json /app true 4 4} {. /app true 6 6}] subtask=-1 task=DevLoop
DEBU[0001] push value not present in isImageLocal(), defaulting to true because cluster.PushImages is true subtask=-1 task=DevLoop
- eolnexus/test: DEBU[0002] push value not present in isImageLocal(), defaulting to true because cluster.PushImages is true subtask=-1 task=DevLoop
Found Remotely
DEBU[0002] push value not present in isImageLocal(), defaulting to true because cluster.PushImages is true subtask=-1 task=DevLoop
INFO[0002] Cache check completed in 1.255 second subtask=-1 task=Build
INFO[0002] Starting render... subtask=-1 task=DevLoop
INFO[0002] starting render process subtask=0 task=Render
DEBU[0002] Executing template &{envTemplate 0xc000c8b8c0 0xc000737f40 } with environment map[COLORTERM:truecolor DBUS_SESSION_BUS_ADDRESS:unix:path=/run/user/1000/bus DISPLAY::0 GIT_ASKPASS:/home/angel/.vscode-server/bin/b3e4e68a0bc097f0ae7907b217c1119af9e03435/extensions/git/dist/askpass.sh HOME:/home/angel HOSTTYPE:x86_64 LANG:C.UTF-8 LESSCLOSE:/usr/bin/lesspipe %s %s LESSOPEN:| /usr/bin/lesspipe %s LOGNAME:angel LS_COLORS:rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36: NAME:DESKTOP-FM5A985 PATH:/home/user/.vscode-server/bin/b3e4e68a0bc097f0ae7907b217c1119af9e03435/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Users/user/AppData/Local/Programs/Python/Python310/Scripts/:/mnt/c/Users/user/AppData/Local/Programs/Python/Python310/:/mnt/c/Python310/Scripts/:/mnt/c/Python310/:/mnt/c/Program Files/Common Files/Oracle/Java/javapath:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program Files/dotnet/:/mnt/c/Program Files/Microsoft SQL Server/130/Tools/Binn/:/mnt/c/Program Files/Microsoft SQL Server/Client SDK/ODBC/170/Tools/Binn/:/mnt/c/Program Files (x86)/Microsoft SQL Server/150/Tools/Binn/:/mnt/c/Program Files/Microsoft SQL Server/150/Tools/Binn/:/mnt/c/Program Files/Microsoft SQL Server/150/DTS/Binn/:/mnt/c/Program Files/Azure Data Studio/bin:/mnt/c/Program Files/nodejs/:/mnt/c/ProgramData/chocolatey/bin:/mnt/c/Program Files/Git/cmd:/mnt/c/Program Files/Docker/Docker/resources/bin:/mnt/c/Users/user/AppData/Local/Microsoft/WindowsApps:/mnt/c/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.3/bin:/mnt/c/Hadoop/bin:/mnt/c/Users/user/AppData/Local/GitHubDesktop/bin:/mnt/c/Users/user/AppData/Roaming/npm:/mnt/c/Users/user/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/Program Files/MongoDB/Server/5.0/bin:/mnt/c/Program Files/Microsoft Visual Studio/2022/Professional/MSBuild/Current/Bin:/mnt/c/ffmpeg/ffmpeg-6.0-essentials_build/bin:/mnt/c/Program Files/MongoDB/Tools/100/bin:/mnt/c/Program Files/MongoDB/MongoSH/bin:/mnt/c/Program Files/MongoDB/Server/6.0/bin:/mnt/c/Program Files/Skaffold:/mnt/c/Users/user/AppData/Local/Google/Cloud SDK/google-cloud-sdk/bin:/snap/bin PULSE_SERVER:unix:/mnt/wslg/PulseServer PWD:/home/user/repos/skaffoldBug SHELL:/bin/bash SHLVL:1 TERM:xterm-256color TERM_PROGRAM:vscode TERM_PROGRAM_VERSION:1.78.2 USER:user VSCODE_GIT_ASKPASS_EXTRA_ARGS: VSCODE_GIT_ASKPASS_MAIN:/home/user/.vscode-server/bin/b3e4e68a0bc097f0ae7907b217c1119af9e03435/extensions/git/dist/askpass-main.js VSCODE_GIT_ASKPASS_NODE:/home/user/.vscode-server/bin/b3e4e68a0bc097f0ae7907b217c1119af9e03435/node VSCODE_GIT_IPC_HANDLE:/run/user/1000/vscode-git-a74dc6f5f5.sock VSCODE_IPC_HOOK_CLI:/run/user/1000/vscode-ipc-e5fbc577-552e-4cf8-96f1-47b28f4ec18a.sock WAYLAND_DISPLAY:wayland-0 WSL2_GUI_APPS_ENABLED:1 WSLENV:VSCODE_WSL_EXT_LOCATION/up WSL_DISTRO_NAME:Ubuntu WSL_INTEROP:/run/WSL/3914977_interop XDG_DATA_DIRS:/usr/local/share:/usr/share:/var/lib/snapd/desktop XDG_RUNTIME_DIR:/run/user/1000/ _:/usr/local/bin/skaffold] subtask=-1 task=DevLoop
DEBU[0002] Executing template &{envTemplate 0xc000c8be60 0xc000737f90 } with environment map[COLORTERM:truecolor DBUS_SESSION_BUS_ADDRESS:unix:path=/run/user/1000/bus DISPLAY::0 GIT_ASKPASS:/home/user/.vscode-server/bin/b3e4e68a0bc097f0ae7907b217c1119af9e03435/extensions/git/dist/askpass.sh HOME:/home/user HOSTTYPE:x86_64 LANG:C.UTF-8 LESSCLOSE:/usr/bin/lesspipe %s %s LESSOPEN:| /usr/bin/lesspipe %s LOGNAME:user LS_COLORS:rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36: NAME:DESKTOP-FM5A985 PATH:/home/user/.vscode-server/bin/b3e4e68a0bc097f0ae7907b217c1119af9e03435/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Users/user/AppData/Local/Programs/Python/Python310/Scripts/:/mnt/c/Users/user/AppData/Local/Programs/Python/Python310/:/mnt/c/Python310/Scripts/:/mnt/c/Python310/:/mnt/c/Program Files/Common Files/Oracle/Java/javapath:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program Files/dotnet/:/mnt/c/Program Files/Microsoft SQL Server/130/Tools/Binn/:/mnt/c/Program Files/Microsoft SQL Server/Client SDK/ODBC/170/Tools/Binn/:/mnt/c/Program Files (x86)/Microsoft SQL Server/150/Tools/Binn/:/mnt/c/Program Files/Microsoft SQL Server/150/Tools/Binn/:/mnt/c/Program Files/Microsoft SQL Server/150/DTS/Binn/:/mnt/c/Program Files/Azure Data Studio/bin:/mnt/c/Program Files/nodejs/:/mnt/c/ProgramData/chocolatey/bin:/mnt/c/Program Files/Git/cmd:/mnt/c/Program Files/Docker/Docker/resources/bin:/mnt/c/Users/user/AppData/Local/Microsoft/WindowsApps:/mnt/c/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.3/bin:/mnt/c/Hadoop/bin:/mnt/c/Users/user/AppData/Local/GitHubDesktop/bin:/mnt/c/Users/user/AppData/Roaming/npm:/mnt/c/Users/user/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/Program Files/MongoDB/Server/5.0/bin:/mnt/c/Program Files/Microsoft Visual Studio/2022/Professional/MSBuild/Current/Bin:/mnt/c/ffmpeg/ffmpeg-6.0-essentials_build/bin:/mnt/c/Program Files/MongoDB/Tools/100/bin:/mnt/c/Program Files/MongoDB/MongoSH/bin:/mnt/c/Program Files/MongoDB/Server/6.0/bin:/mnt/c/Program Files/Skaffold:/mnt/c/Users/user/AppData/Local/Google/Cloud SDK/google-cloud-sdk/bin:/snap/bin PULSE_SERVER:unix:/mnt/wslg/PulseServer PWD:/home/user/repos/skaffoldBug SHELL:/bin/bash SHLVL:1 TERM:xterm-256color TERM_PROGRAM:vscode TERM_PROGRAM_VERSION:1.78.2 USER:user VSCODE_GIT_ASKPASS_EXTRA_ARGS: VSCODE_GIT_ASKPASS_MAIN:/home/user/.vscode-server/bin/b3e4e68a0bc097f0ae7907b217c1119af9e03435/extensions/git/dist/askpass-main.js VSCODE_GIT_ASKPASS_NODE:/home/user/.vscode-server/bin/b3e4e68a0bc097f0ae7907b217c1119af9e03435/node VSCODE_GIT_IPC_HANDLE:/run/user/1000/vscode-git-a74dc6f5f5.sock VSCODE_IPC_HOOK_CLI:/run/user/1000/vscode-ipc-e5fbc577-552e-4cf8-96f1-47b28f4ec18a.sock WAYLAND_DISPLAY:wayland-0 WSL2_GUI_APPS_ENABLED:1 WSLENV:VSCODE_WSL_EXT_LOCATION/up WSL_DISTRO_NAME:Ubuntu WSL_INTEROP:/run/WSL/3914977_interop XDG_DATA_DIRS:/usr/local/share:/usr/share:/var/lib/snapd/desktop XDG_RUNTIME_DIR:/run/user/1000/ _:/usr/local/bin/skaffold] subtask=-1 task=DevLoop
DEBU[0002] manifests with tagged images:apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/use-regex: "true"
name: ingress-srv
spec:
rules:
- host: nexus.eol
http:
paths:
- backend:
service:
name: test-srv
port:
number: 3000
path: /?(.*)
pathType: Prefix
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: test-depl
spec:
replicas: 1
selector:
matchLabels:
app: test
template:
metadata:
labels:
app: test
spec:
containers:
- image: eolnexus/test:795753b@sha256:ceaaed1ab39169a2f8cd5a9f56be989a685a95f446492f3218552c262c884bf0
name: test
---
apiVersion: v1
kind: Service
metadata:
name: test-srv
spec:
ports:
- name: test
port: 3000
protocol: TCP
targetPort: 3000
selector:
app: test subtask=0 task=Render
DEBU[0002] manifests with labels apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/use-regex: "true"
name: ingress-srv
spec:
rules:
- host: nexus.eol
http:
paths:
- backend:
service:
name: test-srv
port:
number: 3000
path: /?(.*)
pathType: Prefix
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
skaffold.dev/run-id: 94841332-907e-4771-af89-667bfaa77542
name: test-depl
spec:
replicas: 1
selector:
matchLabels:
app: test
template:
metadata:
labels:
app: test
skaffold.dev/run-id: 94841332-907e-4771-af89-667bfaa77542
spec:
containers:
- image: eolnexus/test:795753b@sha256:ceaaed1ab39169a2f8cd5a9f56be989a685a95f446492f3218552c262c884bf0
name: test
---
apiVersion: v1
kind: Service
metadata:
labels:
skaffold.dev/run-id: 94841332-907e-4771-af89-667bfaa77542
name: test-srv
spec:
ports:
- name: test
port: 3000
protocol: TCP
targetPort: 3000
selector:
app: test subtask=-1 task=DevLoop
INFO[0002] Render completed in 2.2517ms subtask=-1 task=DevLoop
Tags used in deployment:
- eolnexus/test -> eolnexus/test:795753b@sha256:ceaaed1ab39169a2f8cd5a9f56be989a685a95f446492f3218552c262c884bf0
DEBU[0002] push value not present in isImageLocal(), defaulting to true because cluster.PushImages is true subtask=-1 task=DevLoop
Starting deploy...
DEBU[0002] getting client config for kubeContext: `microk8s` subtask=-1 task=DevLoop
DEBU[0002] Running command: [kubectl --context microk8s get -f - --ignore-not-found -ojson] subtask=0 task=Deploy
Cleaning up...
DEBU[0002] Running command: [kubectl --context microk8s delete --ignore-not-found=true --wait=false -f -] subtask=-1 task=DevLoop
Cleaning up resources encountered an error, will continue to clean up other resources.
INFO[0002] Cleanup completed in 164.3001ms subtask=-1 task=DevLoop
DEBU[0002] Running command: [tput colors] subtask=-1 task=DevLoop
DEBU[0002] Command output: [256
] subtask=-1 task=DevLoop
waiting for deletion: starting command kubectl --context microk8s get -f - --ignore-not-found -ojson: exec: "kubectl": executable file not found in $PATH
DEBU[0002] exporting metrics subtask=-1 task=DevLoop
DEBU[0003] metrics uploading complete in 1.085228599s subtask=-1 task=DevLoop
Expected behavior
Using
skaffold init
will create a working config file that will be able to start up and deploy pods specified in config file.Actual behavior
Error messages appear after Skaffold attempts the following : 'Running command: [kubectl --context microk8s delete --ignore-not-found=true --wait=false -f -]'
Information
curl -Lo skaffold https://storage.googleapis.com/skaffold/releases/latest/skaffold-linux-amd64 && \ sudo install skaffold /usr/local/bin/
as per recommended installation instructions at https://skaffold.dev/docs/install/Steps to reproduce the behavior
skaffold dev
Skaffold debug log output