Tag: 掌舵

Kubernetes生成dynamicconfiguration文件

我想根据从envvariables收集的值( ex.redis_host )生成dynamicconfiguration文件(redis,数据库),这些variables在服务和服务之间会有所不同,并将其放在特定的位置( config/redis.yml )。 我将如何能够实现它?

Docker如何在spec.container.env.value上使用布尔值

有没有办法给spec.container.env.value传递一个布尔值? 我想用helm覆盖Docker父图像中的布尔envvariables( https://github.com/APSL/docker-thumbor):UPLOAD_ENABLED 我做了一个更简单的testing 如果你尝试下面的yaml: apiVersion: v1 kind: Pod metadata: name: envar-demo labels: purpose: demonstrate-envars spec: containers: – name: envar-demo-container image: gcr.io/google-samples/node-hello:1.0 env: – name: DEMO_GREETING value: true 并尝试与kubernetes创build它,你有以下错误: kubectl create -f envars.yaml 错误 : error: error validating "envars.yaml": error validating data: expected type string, for field spec.containers[0].env[0].value, got bool; if you choose to ignore […]