1. # Default values for backend.
    2. # This is a YAML-formatted file.
    3. # Declare variables to be passed into your templates.
    4. replicaCount: 2
    5. env: production
    6. additionalEnv: production
    7. Dept: ''
    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: "2048"
    18. Xms: "2048"
    19. Xmn: "680"
    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. skywalking:
    42. agent: '-javaagent:skywalking/agent-8.4.0/skywalking-agent.jar'
    43. server_host: 'skywalking-oap.arch.svc.cluster.local'
    44. server_port: '11800'
    45. # The following is an example of a parameter
    46. # - '-Duser.timezone=UTC'
    47. # - '-Xmx1024m'
    48. # - '-Xms512m'
    49. # - '-jar'
    50. # - '-server'
    51. # - 'internal-service.jar'
    52. # - '--spring.profiles.active=production'
    53. livenessProbe:
    54. initialDelaySeconds: 60 # 初次检测时间60m,检测pod启动60后再检测
    55. failureThreshold: 5 # 失败5次,不再重启pod
    56. periodSeconds: 10 # 每隔10m检测一次
    57. timeoutSeconds: 1 # 超时时间1m,即1m没反应就是失败
    58. readinessProbe:
    59. httpGet:
    60. path: '/health'
    61. initialDelaySeconds: 60
    62. failureThreshold: 5
    63. periodSeconds: 10
    64. timeoutSeconds: 2
    65. lifecycle:
    66. sleeptime: 120
    67. terminationGracePeriodSeconds: 130
    68. imagePullSecrets: [name: "ali-docker-registry"]
    69. nameOverride: ""
    70. fullnameOverride: ""
    71. serviceAccount:
    72. # Specifies whether a service account should be created
    73. create: true
    74. # Annotations to add to the service account
    75. annotations: {}
    76. # The name of the service account to use.
    77. # If not set and create is true, a name is generated using the fullname template
    78. name: ""
    79. podAnnotations: {}
    80. podSecurityContext: {}
    81. # fsGroup: 2000
    82. securityContext: {}
    83. # capabilities:
    84. # drop:
    85. # - ALL
    86. # readOnlyRootFilesystem: true
    87. # runAsNonRoot: true
    88. # runAsUser: 1000
    89. service:
    90. type: ClusterIP
    91. port: 80
    92. targetPort: 5000
    93. ingress:
    94. enabled: false
    95. intranet: false
    96. rpc:
    97. enabled: false
    98. annotations:
    99. nginx.ingress.kubernetes.io/service-weight: ''
    100. nginx:
    101. whitelist:
    102. enabled: false
    103. whitelistSourceRange: "47.99.20.0/24,39.106.237.192/26,47.106.31.0/24,47.97.242.96/27,39.104.199.128/26,120.27.173.0/24,120.76.16.0/24,47.101.16.64/27,47.110.182.0/24,121.43.18.0/24,182.92.253.32/27,39.96.119.0/24,120.77.139.0/25,47.98.74.0/25,120.78.44.128/26,47.102.187.0/25,112.124.159.0/24,120.55.107.0/24,60.205.193.96/27,39.96.158.0/24,101.200.106.0/24,123.57.117.0/24,39.96.130.0/24,120.25.115.0/24,60.205.193.64/27,47.104.53.0/26,47.108.23.192/26,120.55.177.0/24,118.178.15.0/24,114.55.57.32,140.207.54.0/25,183.3.234.0/25,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"
    104. #whitelistSourceRange: "0.0.0.0/0"
    105. sslRedirect: true
    106. hosts:
    107. - host: chart-example.local
    108. paths:
    109. - path: /
    110. serviceName: ''
    111. tls:
    112. - secretName: xxx-biz
    113. hosts:
    114. - chart-example.local
    115. resources:
    116. # We usually recommend not to specify default resources and to leave this as a conscious
    117. # choice for the user. This also increases chances charts run on environments with little
    118. # resources, such as Minikube. If you do want to specify resources, uncomment the following
    119. # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
    120. limits:
    121. cpu: 4000m
    122. memory: 4096Mi
    123. requests:
    124. cpu: 500m
    125. memory: 2048Mi
    126. cron_autoscaling:
    127. enabled: false
    128. autoscaling:
    129. enabled: true
    130. minReplicas: 2
    131. maxReplicas: 6
    132. targetCPUUtilizationPercentage: 200
    133. # targetMemoryUtilizationPercentage: 80
    134. nodeSelector_enabled: false
    135. nodeSelector: {}
    136. tolerations_enabled: false
    137. tolerations: []
    138. affinity_enabled: true
    139. affinity_prefer_enabled: false
    140. affinity: {}
    141. nacos:
    142. enabled: false
    143. config:
    144. server: "internal.nacos2.xxx.cn:8848"
    145. discovery:
    146. serverAddr: "internal.nacos2.xxx.cn:8848"
    147. #affinity:
    148. # podAntiAffinity:
    149. # requiredDuringSchedulingIgnoredDuringExecution:
    150. # - labelSelector:
    151. # matchExpressions:
    152. # - key: app.kubernetes.io/instance
    153. # operator: In
    154. # values:
    155. # - abc
    156. # topologyKey: kubernetes.io/hostname
    157. #ConfigMap
    158. ConfigMap:
    159. enabled: true
    160. serverPort: 5000
    161. apolloMate: http://internal.service-config-center.xxx.cn/,http://slave-internal.service-config-center.xxx.cn/
    162. eureka_url: discovery.center.xxx.cn
    163. eruekaDefaultZone: http://discovery:8vzc4kxxx4hitHQxxxx@discovery.center.xxx.cn/eureka/,http://discovery:8vxxxxMv4hxxxxx@snd-discovery.center.xxxx.cn/eureka/
    164. preferIpAddress: true
    165. codemaoXxlJobEnable: false
    166. codemaoXxlJobAddress: http://schedule.xxx.cn
    167. codemaoXxlJobAppname: ""
    168. codemaoXxlJobPort: 5001
    169. codemaoXxlJobLogPath: /usr/src/app/log/xxl_job
    170. codemaoXxlJobLogRetentionDays: 1
    171. accessTokeEnabled: false
    172. codemaoXxlJobaccesstoken: 'ADQNRxxxYd0lox17SQ'
    173. newXxlJobEnable: false
    174. codemaoNewXxlJobAddress: http://xxl-job.arch.svc.cluster.local
    175. appid:
    176. name: ""
    177. enabled: false