I am trying to understand a problem that currently arises with buildx
, its Kubernetes driver, GitLab CI/CD, and parallel jobs. What is the suffix 0
that appears in builder instances's pod names?
It looks like an index, but seems unrelated to replicas. For instance I tried this (notice the suffix 0
behind test
and before the first hyphen):
$ docker buildx create --name test --driver kubernetes --driver-opt namespace=ci,replicas=2 --use
$ echo "FROM scratch" | docker buildx build -
$ kubectl get pod -n ci
NAME READY STATUS RESTARTS AGE
test0-xxxxxxxxxx-xxxxx 1/1 Running 0 xxxxx
test0-yyyyyyyyyy-yyyyy 1/1 Running 0 yyyyy