k8s-single-runner pod is not dying after build.
aplsms opened this issue · 2 comments
aplsms commented
Hello,
I have an issue with k8s-single-runner. this pod is not dying after build done.
Container docker:dind is in running state after summerwind/actions-runner:latest is in complete state.
logs:
$ kubectl -n actions logs k8s-single-runner
Defaulted container "runner" out of: runner, docker
2022-12-05 21:26:54.856 NOTICE --- Runner init started with pid 7
2022-12-05 21:26:54.859 DEBUG --- Github endpoint URL https://github.com/
2022-12-05 21:26:55.387 DEBUG --- Passing --ephemeral to config.sh to enable the ephemeral runner.
2022-12-05 21:26:55.390 DEBUG --- Configuring the runner.
--------------------------------------------------------------------------------
| ____ _ _ _ _ _ _ _ _ |
| / ___(_) |_| | | |_ _| |__ / \ ___| |_(_) ___ _ __ ___ |
| | | _| | __| |_| | | | | '_ \ / _ \ / __| __| |/ _ \| '_ \/ __| |
| | |_| | | |_| _ | |_| | |_) | / ___ \ (__| |_| | (_) | | | \__ \ |
| \____|_|\__|_| |_|\__,_|_.__/ /_/ \_\___|\__|_|\___/|_| |_|___/ |
| |
| Self-hosted runner registration |
| |
--------------------------------------------------------------------------------
# Authentication
√ Connected to GitHub
# Runner Registration
√ Runner successfully added
√ Runner connection is good
# Runner settings
√ Settings Saved.
2022-12-05 21:27:01.147 DEBUG --- Runner successfully configured.
{
"agentId": 29,
"agentName": "k8s-single-runner",
"poolId": 1,
"poolName": "Default",
"ephemeral": true,
"serverUrl": "https://pipelines.actions.githubusercontent.com/UKWAqnXsFDNFiTtCJkPNKVIQivszaSHTNc5B1ZJ6o5NTCgjJTZ",
"gitHubUrl": "https://github.com/ServicePattern/ops-action-demo",
"workFolder": "/runner/_work"
2022-12-05 21:27:01.151 DEBUG --- Docker enabled runner detected and Docker daemon wait is enabled
2022-12-05 21:27:01.153 DEBUG --- Waiting until Docker is available or the timeout of 120 seconds is reached
unable to resolve docker endpoint: open /certs/client/ca.pem: no such file or directory
unable to resolve docker endpoint: open /certs/client/ca.pem: no such file or directory
unable to resolve docker endpoint: open /certs/client/ca.pem: no such file or directory
}CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2022-12-05 21:27:04.247 NOTICE --- WARNING LATEST TAG HAS BEEN DEPRECATED. SEE GITHUB ISSUE FOR DETAILS:
2022-12-05 21:27:04.248 NOTICE --- https://github.com/actions-runner-controller/actions-runner-controller/issues/2056
√ Connected to GitHub
Current runner version: '2.299.1'
2022-12-05 21:27:06Z: Listening for Jobs
2022-12-05 21:47:49Z: Running job: Build
2022-12-05 21:47:56Z: Job Build completed with result: Succeeded
√ Removed .credentials
√ Removed .runner
Runner listener exit with 0 return code, stop the service, no retry needed.
Exiting runner...
2022-12-05 21:47:56.781 NOTICE --- Runner init exited. Exiting this process with code 0 so that the container and the pod is GC'ed Kubernetes soon.
logs of docker:dind
Certificate request self-signature ok
subject=CN = docker:dind server
/certs/server/cert.pem: OK
Certificate request self-signature ok
subject=CN = docker:dind client
/certs/client/cert.pem: OK
time="2022-12-05T21:27:03.749858432Z" level=info msg="Starting up"
time="2022-12-05T21:27:03.751156084Z" level=warning msg="could not change group /var/run/docker.sock to docker: group docker not found"
time="2022-12-05T21:27:03.751919241Z" level=info msg="libcontainerd: started new containerd process" pid=469
time="2022-12-05T21:27:03.751959339Z" level=info msg="parsed scheme: \"unix\"" module=grpc
time="2022-12-05T21:27:03.751972834Z" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc
time="2022-12-05T21:27:03.751997480Z" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock <nil> 0 <nil>}] <nil> <nil>}" module=grpc
time="2022-12-05T21:27:03.752012666Z" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc
time="2022-12-05T21:27:03Z" level=warning msg="containerd config version `1` has been deprecated and will be removed in containerd v2.0, please switch to version `2`, see https://github.com/contai
time="2022-12-05T21:27:03.765967976Z" level=info msg="starting containerd" revision=1c90a442489720eec95342e1789ee8a5e1b9536f version=v1.6.9
time="2022-12-05T21:27:03.778421099Z" level=info msg="loading plugin \"io.containerd.content.v1.content\"..." type=io.containerd.content.v1
time="2022-12-05T21:27:03.778562545Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.aufs\"..." type=io.containerd.snapshotter.v1
time="2022-12-05T21:27:03.783041127Z" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.aufs\"..." error="aufs is not supported (modprobe aufs failed: exit status 1 \"ip: can't fi
time="2022-12-05T21:27:03.783070076Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.btrfs\"..." type=io.containerd.snapshotter.v1
time="2022-12-05T21:27:03.783272695Z" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.btrfs\"..." error="path /var/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.btrf
time="2022-12-05T21:27:03.783293712Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.devmapper\"..." type=io.containerd.snapshotter.v1
time="2022-12-05T21:27:03.783325585Z" level=warning msg="failed to load plugin io.containerd.snapshotter.v1.devmapper" error="devmapper not configured"
time="2022-12-05T21:27:03.783342884Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.native\"..." type=io.containerd.snapshotter.v1
time="2022-12-05T21:27:03.783449989Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.overlayfs\"..." type=io.containerd.snapshotter.v1
time="2022-12-05T21:27:03.783703306Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.zfs\"..." type=io.containerd.snapshotter.v1
time="2022-12-05T21:27:03.783830080Z" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.zfs\"..." error="path /var/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.zfs mu
time="2022-12-05T21:27:03.783857338Z" level=info msg="loading plugin \"io.containerd.metadata.v1.bolt\"..." type=io.containerd.metadata.v1
time="2022-12-05T21:27:03.783914686Z" level=warning msg="could not use snapshotter devmapper in metadata plugin" error="devmapper not configured"
time="2022-12-05T21:27:03.783940215Z" level=info msg="metadata content store policy set" policy=shared
Stream closed EOF for actions/k8s-single-runner (docker)
antonputra commented
It's been a while since I used it. I hope someone else can help..
antonputra commented
I'll make an updated tutorial soon.