# Default values for backend.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
replicaCount: 2
env: production
additionalEnv: production
Dept: ''
extraEnv: []
image:
repository: nginx
pullPolicy: Always
imageAddr:
# Overrides the image tag whose default is the chart version.
tag: ""
argsJar: ""
argsMemory:
Xmx: "2048"
Xms: "2048"
Xmn: "680"
argsTimeZone: 'UTC'
skywalkingEnable: true
addExtraArgs: []
extraArgs:
- '-Xloggc:/usr/src/app/log/gc.log'
- '-XX:+CMSClassUnloadingEnabled'
- '-XX:+CMSParallelRemarkEnabled'
- '-XX:+CMSScavengeBeforeRemark'
- '-XX:+HeapDumpOnOutOfMemoryError'
- '-XX:+PrintGCDateStamps'
- '-XX:+PrintGCDetails'
- '-XX:+PrintTenuringDistribution'
- '-XX:+UseCMSInitiatingOccupancyOnly'
- '-XX:+UseConcMarkSweepGC'
- '-XX:+UseFastAccessorMethods'
- '-XX:CMSFullGCsBeforeCompaction=2'
- '-XX:CMSInitiatingOccupancyFraction=70'
- '-XX:HeapDumpPath=/usr/src/app/log/heapdump.hprof'
- '-XX:MaxMetaspaceSize=256m'
- '-XX:NewRatio=2'
- '-XX:SurvivorRatio=8'
skywalking:
agent: '-javaagent:skywalking/agent-8.4.0/skywalking-agent.jar'
server_host: 'skywalking-oap.arch.svc.cluster.local'
server_port: '11800'
# The following is an example of a parameter
# - '-Duser.timezone=UTC'
# - '-Xmx1024m'
# - '-Xms512m'
# - '-jar'
# - '-server'
# - 'internal-service.jar'
# - '--spring.profiles.active=production'
livenessProbe:
initialDelaySeconds: 60 # 初次检测时间60m,检测pod启动60后再检测
failureThreshold: 5 # 失败5次,不再重启pod
periodSeconds: 10 # 每隔10m检测一次
timeoutSeconds: 1 # 超时时间1m,即1m没反应就是失败
readinessProbe:
httpGet:
path: '/health'
initialDelaySeconds: 60
failureThreshold: 5
periodSeconds: 10
timeoutSeconds: 2
lifecycle:
sleeptime: 120
terminationGracePeriodSeconds: 130
imagePullSecrets: [name: "ali-docker-registry"]
nameOverride: ""
fullnameOverride: ""
serviceAccount:
# Specifies whether a service account should be created
create: true
# Annotations to add to the service account
annotations: {}
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name: ""
podAnnotations: {}
podSecurityContext: {}
# fsGroup: 2000
securityContext: {}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
service:
type: ClusterIP
port: 80
targetPort: 5000
ingress:
enabled: false
intranet: false
rpc:
enabled: false
annotations:
nginx.ingress.kubernetes.io/service-weight: ''
nginx:
whitelist:
enabled: false
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"
#whitelistSourceRange: "0.0.0.0/0"
sslRedirect: true
hosts:
- host: chart-example.local
paths:
- path: /
serviceName: ''
tls:
- secretName: xxx-biz
hosts:
- chart-example.local
resources:
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
limits:
cpu: 4000m
memory: 4096Mi
requests:
cpu: 500m
memory: 2048Mi
cron_autoscaling:
enabled: false
autoscaling:
enabled: true
minReplicas: 2
maxReplicas: 6
targetCPUUtilizationPercentage: 200
# targetMemoryUtilizationPercentage: 80
nodeSelector_enabled: false
nodeSelector: {}
tolerations_enabled: false
tolerations: []
affinity_enabled: true
affinity_prefer_enabled: false
affinity: {}
nacos:
enabled: false
config:
server: "internal.nacos2.xxx.cn:8848"
discovery:
serverAddr: "internal.nacos2.xxx.cn:8848"
#affinity:
# podAntiAffinity:
# requiredDuringSchedulingIgnoredDuringExecution:
# - labelSelector:
# matchExpressions:
# - key: app.kubernetes.io/instance
# operator: In
# values:
# - abc
# topologyKey: kubernetes.io/hostname
#ConfigMap
ConfigMap:
enabled: true
serverPort: 5000
apolloMate: http://internal.service-config-center.xxx.cn/,http://slave-internal.service-config-center.xxx.cn/
eureka_url: discovery.center.xxx.cn
eruekaDefaultZone: http://discovery:8vzc4kxxx4hitHQxxxx@discovery.center.xxx.cn/eureka/,http://discovery:8vxxxxMv4hxxxxx@snd-discovery.center.xxxx.cn/eureka/
preferIpAddress: true
codemaoXxlJobEnable: false
codemaoXxlJobAddress: http://schedule.xxx.cn
codemaoXxlJobAppname: ""
codemaoXxlJobPort: 5001
codemaoXxlJobLogPath: /usr/src/app/log/xxl_job
codemaoXxlJobLogRetentionDays: 1
accessTokeEnabled: false
codemaoXxlJobaccesstoken: 'ADQNRxxxYd0lox17SQ'
newXxlJobEnable: false
codemaoNewXxlJobAddress: http://xxl-job.arch.svc.cluster.local
appid:
name: ""
enabled: false