app.toml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. namespace = "xiaoquio"
  2. appbase = "helloworld-maven-0.1.1.tgz" #0.1.1为nodeport
  3. pipeline = "jenkins"
  4. cluster = "rke"
  5. helmrepo = "CHARTMUSEUM"
  6. helmversion = "v3"
  7. [jenkins]
  8. steps = ["git", "build-and-push-new", "save-image-tag-new", "helm3"]
  9. gitSecret = "" # jenkins git key
  10. dockerSecret = "" # jenkins docker registry key
  11. dockerFile = "./Dockerfile" # custom dockerfile in step of build-and-push-new or build-cp-dist
  12. [sync]
  13. basedir = "" # if use rsync, basedir is workspace
  14. src = "" # ./dist/
  15. dest = "" # /data/...
  16. excludes = []
  17. hosts = [""] # webserver
  18. [sync1]
  19. src = "" # if use rsync1
  20. dest = ""
  21. excludes = []
  22. hosts = [""]
  23. [etcd]
  24. etcdAddr = "" # if use save-image-tag-new
  25. [chart]
  26. name = "test"
  27. version = "0.1.1"
  28. appVersion = "1.0"
  29. apiVersion = "v1"
  30. description = "A Helm chart for Kubernetes, Auto generated by jxl"
  31. [git]
  32. repo = "https://git.xiaoquio.com/anian/test"
  33. branch = "master"
  34. [docker]
  35. base = "" #base images
  36. port = ""
  37. package = ""
  38. workdir = ""
  39. entrypoint = "" # 执行command
  40. [helm]
  41. replicaCount = 1
  42. projectid = 2
  43. imagePullSecrets = "default-registry-secret"
  44. command = ["/bin/bash"]
  45. args = ["-c", "java -javaagent:/opt/app/jmx_prometheus_javaagent.jar=9000:/opt/app/prometheus-jmx-config.yaml -Xms128m -Xmx2048m -Dfile.encoding=UTF-8 -jar /opt/app/app.jar --spring.profiles.active=prod"]
  46. dnsPolicy = "ClusterFirst"
  47. [helm.image]
  48. repository = "registry-vpc.cn-hangzhou.aliyuncs.com/xiaoquio"
  49. name = "test"
  50. tag = "latest"
  51. pullPolicy = "IfNotPresent"
  52. [helm.service]
  53. serviceName = "test"
  54. type = "NodePort"
  55. port = 80
  56. targetport = 8989
  57. nodeport = 40201
  58. loadBalancerIP = ""
  59. healthCheck = "/test"
  60. [helm.nodeSelector]
  61. hostname = "" #匹配节点名
  62. disktype = "" #匹配节点磁盘类型
  63. accelerator = "" #匹配显卡特性
  64. [helm.resources]
  65. [helm.resources.requests]
  66. memory = "128Mi"
  67. cpu = "200m"
  68. [helm.resources.limits]
  69. memory = "4Gi"
  70. cpu = "4"
  71. [[helm.volumes]]
  72. name = "container-log"
  73. [helm.volumes.hostPath]
  74. path = "/var/log/dockerapp/2/utf8/"
  75. [[helm.volumeMounts]]
  76. name = "container-log"
  77. mountPath = "/opt/app/logs"
  78. [helm.env]
  79. [helm.env.podInfo]
  80. name = "podInfo"
  81. [helm.env.podInfo.data]
  82. MY_NODE_NAME = "spec.nodeName"
  83. MY_NODE_IP = "status.hostIP"
  84. MY_POD_SERVICE_ACCOUNT = "spec.serviceAccountName"
  85. MY_POD_NAME = "metadata.name"
  86. MY_POD_NAMESPACE = "metadata.namespace"
  87. MY_POD_IP = "status.podIP"
  88. [helm.env.otherInfo]
  89. name = "otherInfo"
  90. [helm.env.otherInfo.data]
  91. LANG = "zh_CN.UTF-8"
  92. XMS = "128m"
  93. XMX = "2048m"
  94. [helm.securityContext]
  95. runAsUser = 1501
  96. fsGroup = 1501