kubesphere 中间件

1、mysql8

镜像:mysql:8.0.31

端口:3306,33060

env:MYSQL_ROOT_PASSWORD

pvc:/var/lib/mysql

配置:/etc/mysql/conf.d/my.cnf 子路径 my.cnf

[mysql]
# mysql客户端默认字符集
default-character-set=utf8
[mysqld]
# 数据库文件位置
datadir=/var/lib/mysql
# 允许最大连接数
max_connections=1000
# innodb的dml操作的行级锁的等待时间
innodb_lock_wait_timeout=500
# 设置mysql服务端默认字符集
character-set-server=utf8mb4
# 默认创建新数据的新建排序规则
collation-server=utf8mb4_general_ci
# 创建新表时将使用的默认存储引擎
default-storage-engine=INNODB
# 缓存大小
sort_buffer_size=256MB
# 大小写敏感配置项0为敏感,1为不敏感
lower_case_table_names=1
# 选择正8区
default-time-zone='+8:00'

2、redis

镜像:redis:6.0.8

端口:6379

pvc:/data

配置:/usr/local/etc/redis/redis.conf 子路径 redis.conf

daemonize no
bind 0.0.0.0
port 6379
tcp-backlog 511
timeout 0
tcp-keepalive 300
pidfile /data/redis-server.pid
logfile /data/redis.log
loglevel notice
databases 16
always-show-logo yes
save 900 1
save 300 10
save 60 10000
stop-writes-on-bgsave-error yes
rdbcompression yes
rdbchecksum yes
dbfilename dump.rdb
dir /data
slave-serve-stale-data yes
slave-read-only yes
repl-diskless-sync no
repl-diskless-sync-delay 5
repl-disable-tcp-nodelay no
slave-priority 100
appendonly yes
appendfilename "appendonly.aof"
appendfsync everysec
no-appendfsync-on-rewrite no
auto-aof-rewrite-percentage 100
auto-aof-rewrite-min-size 64mb
aof-load-truncated yes
lua-time-limit 5000
slowlog-log-slower-than 10000
slowlog-max-len 128
latency-monitor-threshold 0
notify-keyspace-events ""
hash-max-ziplist-entries 512
hash-max-ziplist-value 64
list-max-ziplist-size -2
list-compress-depth 0
set-max-intset-entries 512
zset-max-ziplist-entries 128
zset-max-ziplist-value 64
hll-sparse-max-bytes 3000
activerehashing yes
client-output-buffer-limit normal 0 0 0
client-output-buffer-limit slave 256mb 64mb 60
client-output-buffer-limit pubsub 32mb 8mb 60
hz 10
aof-rewrite-incremental-fsync yes
requirepass redis#single#test

3、mysql 57

镜像:mysql:5.7

端口:3306,33060

env:MYSQL_ROOT_PASSWORD

pvc:/var/lib/mysql

4、minio

镜像:minio/minio:latest

端口:9000,9001

命令:/bin/sh,-c,minio server /data --console-address ":9001"

env:MINIO_ACCESS_KEY,MINIO_SECRET_KEY

pvc:/data

5、mongo

镜像:mongo:5.0

端口:27017

env:MONGO_INITDB_ROOT_USERNAME,MONGO_INITDB_ROOT_PASSWORD

pvc:/js,/data/db

6、nacos

镜像:nacos/nacos-server:2.0.3

端口:8848,9848,9849

启动参数:-m standalone

env:MODE=standalone

pvc:/home/nacos/logs

配置文件:/home/nacos/conf/application.properties 子路径 application.properties

7、xxl-job

镜像:xuxueli/xxl-job-admin:2.3.0

端口:8080

env:PARAMS

--spring.datasource.username=root --spring.datasource.password=12345 --spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver --spring.datasource.url=jdbc:mysql://mysql57.public:3306/xxl-job?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true

pvc:/data/applogs

8、es

镜像:elasticsearch:7.13.4

端口:9200,9300

env:discovery.type,ES_JAVA_OPTS

ES_JAVA_OPTS:
-Xms512m -Xmx2048m

discovery.type:
single-node

elasticsearch.yml:
cluster.name: "docker-cluster"
network.host: 0.0.0.0

jvm.options:
################################################################
##
## JVM configuration
##
################################################################
##
## WARNING: DO NOT EDIT THIS FILE. If you want to override the
## JVM options in this file, or set any additional options, you
## should create one or more files in the jvm.options.d
## directory containing your adjustments.
##
## See https://www.elastic.co/guide/en/elasticsearch/reference/current/jvm-options.html
## for more information.
##
################################################################



################################################################
## IMPORTANT: JVM heap size
################################################################
##
## The heap size is automatically configured by Elasticsearch
## based on the available memory in your system and the roles
## each node is configured to fulfill. If specifying heap is
## required, it should be done through a file in jvm.options.d,
## and the min and max should be set to the same value. For
## example, to set the heap to 4 GB, create a new file in the
## jvm.options.d directory containing these lines:
##
## -Xms4g
## -Xmx4g
##
## See https://www.elastic.co/guide/en/elasticsearch/reference/current/heap-size.html
## for more information
##
################################################################


################################################################
## Expert settings
################################################################
##
## All settings below here are considered expert settings. Do
## not adjust them unless you understand what you are doing. Do
## not edit them in this file; instead, create a new file in the
## jvm.options.d directory containing your adjustments.
##
################################################################

## GC configuration
8-13:-XX:+UseConcMarkSweepGC
8-13:-XX:CMSInitiatingOccupancyFraction=75
8-13:-XX:+UseCMSInitiatingOccupancyOnly

## G1GC Configuration
# NOTE: G1 GC is only supported on JDK version 10 or later
# to use G1GC, uncomment the next two lines and update the version on the
# following three lines to your version of the JDK
# 10-13:-XX:-UseConcMarkSweepGC
# 10-13:-XX:-UseCMSInitiatingOccupancyOnly
14-:-XX:+UseG1GC

## JVM temporary directory
-Djava.io.tmpdir=${ES_TMPDIR}

## heap dumps

# generate a heap dump when an allocation from the Java heap fails; heap dumps
# are created in the working directory of the JVM unless an alternative path is
# specified
-XX:+HeapDumpOnOutOfMemoryError

# specify an alternative path for heap dumps; ensure the directory exists and
# has sufficient space
-XX:HeapDumpPath=data

# specify an alternative path for JVM fatal error logs
-XX:ErrorFile=logs/hs_err_pid%p.log

## JDK 8 GC logging
8:-XX:+PrintGCDetails
8:-XX:+PrintGCDateStamps
8:-XX:+PrintTenuringDistribution
8:-XX:+PrintGCApplicationStoppedTime
8:-Xloggc:logs/gc.log
8:-XX:+UseGCLogFileRotation
8:-XX:NumberOfGCLogFiles=32
8:-XX:GCLogFileSize=64m

# JDK 9+ GC logging
9-:-Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m

pvc:/usr/share/elasticsearch/data

配置文件:/usr/share/elasticsearch/config/elasticsearch.yml,/usr/share/elasticsearch/config/jvm.options

9、skywalking

镜像:apache/skywalking-oap-server:8.5.0-es7

端口:11800,1234,12800

env:SW_STORAGE_ES_CLUSTER_NODES es路径

ui:

镜像:apache/skywalking-ui:8.5.0

端口:8080

env:SW_OAP_ADDRESS  api路径 12800

10、sentinel

镜像:bladex/sentinel-dashboard:1.7.0

端口:8719,8858

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
提供的源码资源涵盖了安卓应用、小程序、Python应用和Java应用等多个领域,每个领域都包含了丰富的实例和项目。这些源码都是基于各自平台的最新技术和标准编写,确保了在对应环境下能够无缝运行。同时,源码中配备了详细的注释和文档,帮助用户快速理解代码结构和实现逻辑。 适用人群: 这些源码资源特别适合大学生群体。无论你是计算机相关专业的学生,还是对其他领域编程感兴趣的学生,这些资源都能为你提供宝贵的学习和实践机会。通过学习和运行这些源码,你可以掌握各平台开发的基础知识,提升编程能力和项目实战经验。 使用场景及目标: 在学习阶段,你可以利用这些源码资源进行课程实践、课外项目或毕业设计。通过分析和运行源码,你将深入了解各平台开发的技术细节和最佳实践,逐步培养起自己的项目开发和问题解决能力。此外,在求职或创业过程中,具备跨平台开发能力的大学生将更具竞争力。 其他说明: 为了确保源码资源的可运行性和易用性,特别注意了以下几点:首先,每份源码都提供了详细的运行环境和依赖说明,确保用户能够轻松搭建起开发环境;其次,源码中的注释和文档都非常完善,方便用户快速上手和理解代码;最后,我会定期更新这些源码资源,以适应各平台技术的最新发展和市场需求。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值