haixin3036 发表于 2018-9-15 12:52:05

Kubernetes之部署calico网络Update

$ vim calico.yaml  data:
  #Configure this with the location of your etcd cluster.
  etcd_endpoints: "https://10.3.1.15:2379,https://10.3.1.16:2379,https://10.3.1.17:2379"
  #If you're using TLS enabled etcd uncomment the following.
  #You must also populate the Secret below with these files.
  etcd_ca: "/calico-secrets/etcd-ca"   #取消原来的注释即可
  etcd_cert: "/calico-secrets/etcd-cert"
  etcd_key: "/calico-secrets/etcd-key"
  ....
  apiVersion: v1
  kind: Secret
  type: Opaque
  metadata:
  name: calico-etcd-secrets
  namespace: kube-system
  data:
  etcd-key: (cat /etc/kubernetes/ssl/etcd-key.pem | base64 | tr -d '\n') #将输出结果填写在这里
  etcd-cert: (cat /etc/kubernetes/ssl/etcd.pem | base64 | tr -d '\n') #将输出结果填写在这里
  etcd-ca: (cat /etc/kubernetes/ssl/ca.pem | base64 | tr -d '\n') #将输出结果填写在这里
  #如果etcd没用启用tls则为null
  #上面是必须要修改的参数,文件中有一个参数是设置pod network地址的,根据实际情况做修改:
  - name: CALICO_IPV4POOL_CIDR
  value: "192.168.0.0/16"

页: [1]
查看完整版本: Kubernetes之部署calico网络Update