minio
appVersion:2022-06-25
chartVersion:11.7.7
一、独立模式
auth:
auth:
rootPassword: "12345678rtt" # 密码长度需>=8位
rootUser: "root"
mode: standalone # 默认为单机模式
persistence:
storageClass: minio-data # 存储类,必填
size: 8Gi
service:
type: NodePort # 暴露端口
port: 9000
nodePort: 31311
二、分布式模式
auth:
auth:
rootPassword: "12345678rtt" # 密码长度需>=8位
rootUser: "root"
mode: standalonedistributed # 默认为单机模式
statefulset:
replicaCount: 3 # 分布式模式可根据需求添加,默认
persistence:
storageClass: minio-data # 存储类,必填
size: 8Gi
service:
type: NodePort # 暴露端口
port: 9000
nodePort: 31311
验证
nginx
appVersion:1.22.0
chartVersion:12.0.4
service:
type: NodePort # 暴露端口
验证
通过暴露端口访问 查看nginx页面
mongodb
appVersion:4.4.13
chartVersion:11.2.0
一、 独立模式
persistence:
storageClass: "nfs-client"
architecture: "standalone"
auth:
rootPassword: "5gTU4o7g5g"
rootUser: "root"
service:
type: "NodePort"
二、主从模式
persistence:
storageClass: "nfs-client"
architecture: "replicaset"
auth:
rootPassword: "5gTU4o7g5g"
rootUser: "root"
replicaSetKey: "mymongodb" # 更新时需要,一般不用
replicaCount: 2 # 默认为2
externalAccess:
enabled: true
service:
type: "NodePort"
nodePorts: # nodePorts数量需与replicaCount数量一致
- 30018
- 30019
该版本测试安装时,会出现容器无法就绪的问题
可以去掉readinessProbe
readinessProbe:
enabled: false # 默认为true
可以修改chart包,修改template->standalone->dep-sts.yaml template->replicaset->statefulset.yaml
mongosh $TLS_OPTIONS --eval 'db.hello().isWritablePrimary || db.hello().secondary' | grep -q 'true'
将mongosh改成mongo,作用差不多
验证(使用navicat for mongodb):
独立模式
主从模式
elasticsearch
appVersion:7.17.3
chartVersion:17.9.29
global:
storageClass: "alicloud-cnfs-nas"
kibanaEnabled: false
master:
replicaCount: 1
data:
replicaCount: 1
coordinating:
replicaCount: 1
ingest:
replicaCount: 1
kibana作为子chart可集成
global:
storageClass: "alicloud-cnfs-nas"
kibanaEnabled: true
kibana:
elasticsearch:
hosts:
- 172.34.24.23
kibana:
elasticsearch:
port: 30333(可通过下面协调节点(coordinating)暴露接口)
coordinating:
service:
type: NodePort
nodePort:30333
可通过kubectl edit修改以上kibana - service的type为NodePort
第二种方式,单独部署kibana进行验证
vim rtt.yaml
内容:
service:
type: NodePort
elasticsearch:
hosts: [your-elasticsearch-ip]
port: your-elasticsearch-port
persistence:
storageClass: "alicloud-cnfs-nas"
size: 10Gi
通过helm安装
helm install -f rtt.yaml test-kibana bitnami/kibana --version 9.3.17 --namespace chart
注意kibana版本需与elasticsearch版本适配
验证
访问暴露端口