1. # Default values for backend.
    2. # This is a YAML-formatted file.
    3. # Declare variables to be passed into your templates.
    4. replicaCount: 1
    5. env: development
    6. additionalEnv: development
    7. Dept: community
    8. extraEnv: []
    9. image:
    10. repository: nginx
    11. pullPolicy: Always
    12. imageAddr:
    13. # Overrides the image tag whose default is the chart version.
    14. tag: ""
    15. argsJar: ""
    16. argsMemory:
    17. Xmx: "768"
    18. Xms: "768"
    19. Xmn: "256"
    20. argsTimeZone: 'UTC'
    21. skywalkingEnable: true
    22. addExtraArgs: []
    23. extraArgs:
    24. - '-Xloggc:/usr/src/app/log/gc.log'
    25. - '-XX:+CMSClassUnloadingEnabled'
    26. - '-XX:+CMSParallelRemarkEnabled'
    27. - '-XX:+CMSScavengeBeforeRemark'
    28. - '-XX:+HeapDumpOnOutOfMemoryError'
    29. - '-XX:+PrintGCDateStamps'
    30. - '-XX:+PrintGCDetails'
    31. - '-XX:+PrintTenuringDistribution'
    32. - '-XX:+UseCMSInitiatingOccupancyOnly'
    33. - '-XX:+UseConcMarkSweepGC'
    34. - '-XX:+UseFastAccessorMethods'
    35. - '-XX:CMSFullGCsBeforeCompaction=2'
    36. - '-XX:CMSInitiatingOccupancyFraction=70'
    37. - '-XX:HeapDumpPath=/usr/src/app/log/heapdump.hprof'
    38. - '-XX:MaxMetaspaceSize=256m'
    39. - '-XX:NewRatio=2'
    40. - '-XX:SurvivorRatio=8'
    41. - '-javaagent:./jmx/jmx_prometheus_javaagent-0.16.0.jar=5002:jmx/config.yaml'
    42. skywalking:
    43. agent: '-javaagent:skywalking/agent-8.4.0/skywalking-agent.jar'
    44. server_host: 'skywalking-oap.development-arch.svc.cluster.local'
    45. server_port: '11800'
    46. livenessProbe:
    47. initialDelaySeconds: 80
    48. failureThreshold: 5
    49. periodSeconds: 10
    50. timeoutSeconds: 1
    51. readinessProbe:
    52. httpGet:
    53. path: '/health'
    54. initialDelaySeconds: 80
    55. failureThreshold: 5
    56. periodSeconds: 10
    57. timeoutSeconds: 2
    58. lifecycle:
    59. sleeptime: 120
    60. terminationGracePeriodSeconds: 130
    61. imagePullSecrets: [name: "ali-docker-registry"]
    62. nameOverride: ""
    63. fullnameOverride: ""
    64. serviceAccount:
    65. # Specifies whether a service account should be created
    66. create: true
    67. # Annotations to add to the service account
    68. annotations: {}
    69. # The name of the service account to use.
    70. # If not set and create is true, a name is generated using the fullname template
    71. name: ""
    72. podAnnotations:
    73. annotation_prometheus_io_jvm_scrape: 'true'
    74. annotation_prometheus_io_jvm_port: '5002'
    75. podSecurityContext: {}
    76. # fsGroup: 2000
    77. securityContext: {}
    78. # capabilities:
    79. # drop:
    80. # - ALL
    81. # readOnlyRootFilesystem: true
    82. # runAsNonRoot: true
    83. # runAsUser: 1000
    84. service:
    85. type: ClusterIP
    86. port: 80
    87. targetPort: 5000
    88. ingress:
    89. enabled: false
    90. intranet: false
    91. sndDomain: false
    92. rpc:
    93. enabled: false
    94. annotations:
    95. nginx.ingress.kubernetes.io/service-weight: ''
    96. annotation_prometheus_io_jvm_scrape: true
    97. annotation_prometheus_io_jvm_port: 5002
    98. nginx:
    99. whitelist:
    100. enabled: true
    101. whitelistSourceRange: "103.7.30.0/25,203.205.219.128/25,101.226.103.0/25,58.251.80.0/25,47.98.208.90,47.96.6.6,47.111.131.204,218.17.227.163,218.17.227.164,112.95.74.187,112.95.74.188,172.16.0.0/16,111.200.213.98,1.203.103.122,124.204.78.122,47.96.31.94,111.200.213.98,111.200.213.99,111.200.213.100,111.200.213.101,111.200.213.102,118.178.58.253,113.57.107.64,113.57.107.65,113.57.107.66,113.57.107.67,113.57.107.68,113.57.107.69,113.57.107.70,113.57.107.71,58.49.74.26,58.49.74.27,58.49.74.28,58.49.74.29,58.49.74.30,218.17.88.218,218.17.88.219,218.17.88.220,218.17.88.221,218.17.88.222,58.251.23.98,58.251.23.99,58.251.23.100,58.251.23.101,58.251.23.102,8.210.98.188,218.17.88.216/29,58.251.23.98/29"
    102. #whitelistSourceRange: "0.0.0.0/0"
    103. sslRedirect: true
    104. hosts:
    105. - host: chart-example.local
    106. paths:
    107. - path: /
    108. serviceName: ''
    109. tls:
    110. - secretName: codemao-biz
    111. hosts:
    112. - chart-example.local
    113. resources:
    114. # We usually recommend not to specify default resources and to leave this as a conscious
    115. # choice for the user. This also increases chances charts run on environments with little
    116. # resources, such as Minikube. If you do want to specify resources, uncomment the following
    117. # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
    118. limits:
    119. cpu: 2000m
    120. memory: 2048Mi
    121. requests:
    122. cpu: 50m
    123. memory: 1024Mi
    124. cron_autoscaling:
    125. enabled: false
    126. # spec:
    127. # jobs:
    128. # - name: scale-up
    129. # schedule: "0 0 17-22 * * *"
    130. # targetSize: 3
    131. # runOnce: 'false'
    132. # - name: scale-down
    133. # schedule: "0 0 23 * * *"
    134. # targetSize: 2
    135. # runOnce: 'true'
    136. autoscaling:
    137. enabled: false
    138. minReplicas: 1
    139. maxReplicas: 100
    140. targetCPUUtilizationPercentage: 80
    141. # targetMemoryUtilizationPercentage: 80
    142. nodeSelector_enabled: false
    143. nodeSelector: {}
    144. tolerations_enabled: false
    145. tolerations: []
    146. affinity_prefer_enabled: true
    147. affinity_enabled: false
    148. affinity: {}
    149. filebeat: false
    150. # podAntiAffinity:
    151. # requiredDuringSchedulingIgnoredDuringExecution:
    152. # - labelSelector:
    153. # topologyKey: kubernetes.io/hostname
    154. # matchExpressions:
    155. # - key: app.kubernetes.io/instance
    156. # operator: In
    157. # values:
    158. # - abc
    159. nacos:
    160. enabled: false
    161. config:
    162. server: "dev-internal.nacos2.codemao.cn:8848"
    163. discovery:
    164. serverAddr: "dev-internal.nacos2.codemao.cn:8848"
    165. #ConfigMap
    166. ConfigMap:
    167. enabled: true
    168. serverPort: 5000
    169. apolloMate: http://dev-internal.service-config-center.codemao.cn/,http://dev-slave-internal.service-config-center.codemao.cn/
    170. eruekaDefaultZone: http://discovery:MuB7DEoxfH4LgQ4733RGg3847EqxHe@dev-discovery.center.codemao.cn/eureka/
    171. preferIpAddress: true
    172. codemaoXxlJobEnable: false
    173. codemaoXxlJobAddress: http://dev-schedule.codemao.cn
    174. codemaoXxlJobAppname: ""
    175. codemaoXxlJobPort: 5001
    176. codemaoXxlJobLogPath: /usr/src/app/log/xxl_job
    177. codemaoXxlJobLogRetentionDays: 1
    178. accessTokeEnabled: true
    179. codemaoXxlJobaccesstoken: '04jClDBftP9WOMdbOKBUuSWj'
    180. newXxlJobEnable: false
    181. codemaoNewXxlJobAddress: http://xxl-job.development-arch.svc.cluster.local
    182. appid:
    183. name: ""
    184. enabled: false