Kubernetes “gitlab runner缓存”;“未找到缓存工厂”;

Kubernetes “gitlab runner缓存”;“未找到缓存工厂”;,kubernetes,gitlab-ci,gitlab-ci-runner,minio,Kubernetes,Gitlab Ci,Gitlab Ci Runner,Minio,我正试图让缓存在我的Kubernetes动力Gitlab Runner上运行。 我已经设置了一个在Minio:9000上运行的自定义S3 Minio部署,并使用以下内容的ConfigMap配置了config.toml文件: concurrent = 10 # This sets the maximum number of concurrent CI pods check_interval = 10 [[runners]] [runners.cache] Type = "s3"

我正试图让缓存在我的Kubernetes动力Gitlab Runner上运行。 我已经设置了一个在
Minio:9000
上运行的自定义S3 Minio部署,并使用以下内容的ConfigMap配置了
config.toml
文件:

concurrent = 10 # This sets the maximum number of concurrent CI pods
check_interval = 10

[[runners]]
  [runners.cache]
    Type = "s3"
    Path = "cache"
    Shared = true
    [runners.cache.s3]
      ServerAddress = "minio:9000"
      AccessKey = "xxx"
      SecretKey = "xxx"
      BucketName = "runners-cache"
      Insecure = true
使用Minio web界面,我已确保存在
runners缓存
bucket

然而,在我的工作中:

Checking cache for default...
No URL provided, cache will not be downloaded from shared cache server. Instead a local version of cache will be extracted. 
在跑步者的日志中,我得到:

 Could not create cache adapter
 cache factory not found: factory for cache adapter "" was not registered
我遗漏了什么?

我认为,如果没有附带的运行程序,您不可能拥有“自由浮动”缓存声明;通过使用他们在runner helm图表中的方式,你可能会获得更好的里程数“自由浮动”是什么意思?TOML导致
{“runners”:[{“cache”:…}]}
但没有定义缓存适用的跑步者,虽然我承认我没有在runner golang代码中四处探索,我猜它不会说“哦,那么它必须适用于所有这些”,我猜您配置了匿名运行者缓存。事实上,你有这个配置,这个问题意味着它肯定没有达到你的预期,而我的生产经验是,应用于POD的环境变量没有工作,我不认为你可以有一个“自由浮动”缓存声明,没有伴随的运行程序;通过使用他们在runner helm图表中的方式,你可能会获得更好的里程数“自由浮动”是什么意思?TOML导致
{“runners”:[{“cache”:…}]}
但没有定义缓存适用的跑步者,虽然我承认我没有在runner golang代码中四处探索,我猜它不会说“哦,那么它必须适用于所有这些”,我猜您配置了匿名运行者缓存。事实上,您有那个配置,这个问题意味着它肯定没有达到您预期的效果,而我的生产经验表明,应用于POD的环境变量确实有效