96818 发表于 2018-1-4 12:40:08

Calico在Kubernetes中的搭建

#!/bin/sh  
export localip
=10.11.151.97  
export name
=bjcnctest0  
export port1
=2380  
export port2
=2379  
export port3
=4002  

  
sudo .
/etcd \  

-name $name \  

-initial-advertise-peer-urls http://$localip:$port1 \  
-listen-peer-urls http://0.0.0.0:$port1 \
  
-listen-client-urls http://0.0.0.0:$port2,http://0.0.0.0:$port3 \
  
-advertise-client-urls http://$localip:$port2,http://$localip:$port3\
  
-initial-cluster-token etcd-cluster \
  
-initial-cluster bjcnctest0=http://$localip:$port1,bjcnctest1=http://10.11.151.100:$port1,bjcnctest2=http://10.11.151.101:$port1 \
  
-initial-cluster-state new &
页: [1]
查看完整版本: Calico在Kubernetes中的搭建