我們遇到以下問題。在我們的集羣中,網址已經改變。一旦我們更改了配置以反映這些更改,網址並未在'discovery.etcd.io'上更新。所以我們的想法是隻使用一個新的令牌。但是這不起作用。該集羣不會在'discovery.etcd.io'上註冊新標記。我們不希望每次更改網址或令牌時重新安裝。有沒有更好的辦法?重新安裝工作沒有問題。CoreOS - 如何使用新的令牌?
#cloud-config
hostname: server1
coreos:
etcd2:
# generate a new token for each unique cluster from https://discovery.etcd.io/new?size=3
discovery: https://discovery.etcd.io/<our token>
# multi-region and multi-cloud deployments need to use $public_ipv4
advertise-client-urls: server1:2379
initial-advertise-peer-urls: server1:2380
# listen on the official ports
listen-client-urls: server1:2379
listen-peer-urls: server1:2380
#fleet:
# public-ip: server1
# metadata: region=eu-central-1
#update:
# reboot-strategy: etcd-lock
units:
- name: etcd2.service
command: start
# - name: fleet.service
# command: start
ssh_authorized_keys:
<our ssh keys>