Code Monkey home page Code Monkey logo

Comments (2)

kailongapple avatar kailongapple commented on June 12, 2024

我的是latest 调整启动命令和配置文件的环境变量

kubectl patch deployment clickvisual -n ilogtail -p '{"spec":{"template":{"spec":{"containers":[{"name":"clickvisual","env":[{"name":"EGO_CONFIG_PATH","value":"configs/default.toml"}]}]}}}}'

kubectl patch deployment clickvisual -n ilogtail -p '{"spec":{"template":{"spec":{"containers":[{"name":"clickvisual","command":["./bin/clickvisual", "server"]}]}}}}'

kubectl patch deployment clickvisual -n ilogtail -p '{"spec":{"ports":[{"containerPort":9021,"name":prom2click,"protocol":"TCP"}]}}'
kubectl patch service clickvisual -n ilogtail -p '{"spec":{"ports":[{"name":prom2click,"port":9021,"targetPort":prom2click,"protocol":"TCP"}]}}'

kubectl rollout restart deployment clickvisual -n ilogtail

from clickvisual.

boomboomxx avatar boomboomxx commented on June 12, 2024

我的是latest 调整启动命令和配置文件的环境变量

kubectl patch deployment clickvisual -n ilogtail -p '{"spec":{"template":{"spec":{"containers":[{"name":"clickvisual","env":[{"name":"EGO_CONFIG_PATH","value":"configs/default.toml"}]}]}}}}'

kubectl patch deployment clickvisual -n ilogtail -p '{"spec":{"template":{"spec":{"containers":[{"name":"clickvisual","command":["./bin/clickvisual", "server"]}]}}}}'

kubectl patch deployment clickvisual -n ilogtail -p '{"spec":{"ports":[{"containerPort":9021,"name":prom2click,"protocol":"TCP"}]}}' kubectl patch service clickvisual -n ilogtail -p '{"spec":{"ports":[{"name":prom2click,"port":9021,"targetPort":prom2click,"protocol":"TCP"}]}}'

kubectl rollout restart deployment clickvisual -n ilogtail

如果使用 helm , 不建议使用 patch, 你的这部分配置在 helm 包的 values.yaml 中应该要包含的, 配置自己的 values.yaml 文件定制就可以
主要是 官方的 Dockerfile 文件最后会执行 ./bin/clickvisual server 这个命令,不需要在容器中使用 command 命令再去启动
而且官方提供的 helm 包没有把环境变量提取到values.yaml 中,导致用户需要用自己的方式去做这个事情

from clickvisual.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.