Trying to run gitlab pipeline for k8s and getting the following error:
Skipping Git submodules setup
Executing "step_script" stage of the job script
00:00
Using docker image sha256:a1216024d119dbf6b3a6e731d47f08a36de468de70e8 for bitnami/kubectl:latest with digest bitnami/kubectl@sha256:c74b703deed247e544a3feca13be7ecb0b091e4d2c3b825c8 ...
shell not found
Cleaning up file based variables
00:01
ERROR: Job failed: exit code 1
This is the relevant portion of the .gitlab.yaml:
qa-release:
image:
name: bitnami/kubectl:latest
entrypoint: [""]
stage: release
variables:
CI_DEBUG_TRACE: "true"
environment:
name: dev
tags:
- <removed>
script:
- echo "Deploying Kube Manifests to SERVER"
<rest .... removed...>
only:
- master
when: manual
Any help or pointers will be appreciated.
bitnami/kubectl:latestimage does not come with sh / bash shells. it is very light weight container image.things under
scripttrying to execute inside the container, and it is not getting any executable shell.Try to find or build your own container image which has kubectl and bash / sh both available.