github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/deploy/apecloud-mysql/scripts/etcd.sh (about)

     1  #!/bin/bash
     2  echo "staring etcd."
     3  etcd_port=${ETCD_PORT:-'2379'}
     4  etcd_server=${ETCD_SERVER:-'127.0.0.1'}
     5  
     6  cell=${CELL:-'zone1'}
     7  export ETCDCTL_API=2
     8  
     9  etcd --enable-v2=true --data-dir "${VTDATAROOT}/etcd/"  \
    10    --listen-client-urls "http://0.0.0.0:${etcd_port}" \
    11    --advertise-client-urls "http://0.0.0.0:${etcd_port}" 2>&1 | tee "${VTDATAROOT}/etcd.log"