Git Product home page Git Product logo

k8sframework's Issues

TServer reconcile 频繁发生错误

在 tarscontoller 日志中出现很多这样的错误:

E1217 12:36:04.627593       1 tserver.go:160] patch tserver tars-test/chain-marketing error: Operation cannot be fulfilled on tservers.k8s.tars.io "chain-marketing": the object has been modified; please apply your changes to the latest version and try again
E1217 12:36:16.271580       1 tendpoint.go:292] update tendpoint tars-dev/chain-marketing error: Operation cannot be fulfilled on tendpoints.k8s.tars.io "chain-marketing": the object has been modified; please apply your changes to the latest version and try again

出现这种错误后就会出现 Pod 重新创建:
截屏2021-12-18 上午9 56 53

请问出现这种错误的原因是什么?可以避免吗?

线上运营稳定不

想把原生的tars改成这套k8s的,不知道实际稳定状况如何
看最近提交频率也较少了,支持继续完善

TConfig节点配置文件不生效

版本

https://raw.githubusercontent.com/TarsCloud/K8SFramework/master/charts/tarscontroller-1.4.0.tgz
https://raw.githubusercontent.com/TarsCloud/K8SFramework/master/charts/tarsframework-1.4.0.tgz

server-config.yaml

apiVersion: k8s.tars.io/v1beta2
app: ***
configContent: |-
  {}
configName: test.json
kind: TConfig
metadata:
  labels:
    tars.io/ConfigName: test.json
    tars.io/PodSeq: m
    tars.io/ServerApp: ***
    tars.io/ServerName: ***
  name: f8862d3342e20ceb030fbe438666ae62
  namespace: tars
podSeq: m
server: ***

pod-config.yaml

apiVersion: k8s.tars.io/v1beta2
app: ***
configContent: |
  {"a": 1}
configName: test.json
kind: TConfig
metadata:
  labels:
    tars.io/ConfigName: test.json
    tars.io/PodSeq: '1'
    tars.io/ServerApp: ***
    tars.io/ServerName: ***
  name: eab62c6708825cdf6458ed248270cbf5
  namespace: tars
podSeq: '1'
server: ***

实际结果

在pod-1中cat 配置文件test.json得到

{}

预期结果

在pod-1中cat 配置文件test.json得到

{"a": 1}

如何给应用传参

问题描述
本人在学习按照官方文件制作业务docker镜像
exec-build.sh tarscloud/tars.cppbase:v1.0.0 cpp build/bin/StorageServer yaml/values.yaml v1.0.0 true

文档里说build/bin/StorageServer参数也可以替换成目录,假设目录里还有一个配置文件,需要执行StorageServer -c StorageCfg运行,该如何实现
build/bin/StorageServer
build/bin/StorageCfg

为什么要限制同一个 Server 中不同 Servant 监听端口号不允许重复

在 tarscontroller 中会检查 servant 端口号必须不同,这是出于什么考虑?
同一个应用服务,可能会提供不同服务接口,使用不同的 servant 名字,但是可以在同一个监听端口中处理的。现在强制端口号不同,服务端需要启动多个监听端口,客户端也不能重用连接。想了解一下有什么必要需要做这个验证?

tars-elasticsearch 启动失败

elasticsearch 挂载失败
MountVolume.NewMounter initialization failed for volume "tars-dev-data-tars-elasticsearch-9ba1c2b" : path "/usr/local/app/tars/host-mount/tars-dev/tars.elasticsearch/data" does not

Ingress 使用的api resource版本已弃用

install/tarsframework/templates/tars-tarsweb.yaml line:139
ingress安装使用的api resource networking.k8s.io/v1beta1 在k8s v1.22 中已经弃用,使用helm进行快速安装时报错。

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.