mirror of https://github.com/easzlab/kubeasz.git
add etcd config flags
parent
97f9df2b7a
commit
67e33c4eb8
|
@ -30,6 +30,14 @@ CLUSTER_NAME: "cluster1"
|
|||
CONTEXT_NAME: "context-{{ CLUSTER_NAME }}"
|
||||
|
||||
|
||||
############################
|
||||
# role:etcd
|
||||
############################
|
||||
# 设置不同的wal目录,可以避免磁盘io竞争,提高性能
|
||||
ETCD_DATA_DIR: "/var/lib/etcd"
|
||||
ETCD_WAL_DIR: ""
|
||||
|
||||
|
||||
############################
|
||||
# role:runtime [containerd,docker]
|
||||
############################
|
||||
|
|
|
@ -39,7 +39,7 @@ subjects:
|
|||
name: metrics-server
|
||||
namespace: kube-system
|
||||
---
|
||||
apiVersion: apiregistration.k8s.io/v1beta1
|
||||
apiVersion: apiregistration.k8s.io/v1
|
||||
kind: APIService
|
||||
metadata:
|
||||
name: v1beta1.metrics.k8s.io
|
||||
|
|
|
@ -23,11 +23,12 @@ ExecStart={{ bin_dir }}/etcd \
|
|||
--initial-cluster-token=etcd-cluster-0 \
|
||||
--initial-cluster={{ ETCD_NODES }} \
|
||||
--initial-cluster-state={{ CLUSTER_STATE }} \
|
||||
--data-dir=/var/lib/etcd \
|
||||
--data-dir={{ ETCD_DATA_DIR }} \
|
||||
--wal-dir={{ ETCD_WAL_DIR }} \
|
||||
--snapshot-count=50000 \
|
||||
--auto-compaction-retention=1 \
|
||||
--max-request-bytes=10485760 \
|
||||
--auto-compaction-mode=periodic \
|
||||
--max-request-bytes=10485760 \
|
||||
--quota-backend-bytes=8589934592
|
||||
Restart=always
|
||||
RestartSec=15
|
||||
|
|
Loading…
Reference in New Issue