使用external-dns auto-bond route53的

  

安装集群的

<代码类=" python评论"> <代码类=" python评论">

如何安装eksctl

# - f cluster.yaml eksctl创建集群         apiVersion: eksctl.io/v1alpha5   :ClusterConfig      元数据:   名称:cluster01   地区:ap-northeast-2      vpc:   子网:   公众:   ap-northeast-2a: {id: subnet-dbbb4fb2}   ap-northeast-2b: {id: subnet-2b4fa650}   ap-northeast-2c: {id:子网- 99182 - fd3}   私人:   ap-northeast-2a: {id: subnet-dbbb4fb2}   ap-northeast-2b: {id: subnet-2b4fa650}   ap-northeast-2c: {id:子网- 99182 - fd3}      节点组:   ——名称:ng01   标签:{角色:工人}   instanceType: t2.xlarge   minSize: 2   最大尺寸:8   volumeSize: 100   volumeType: gp2   ami:汽车   amiFamily: Ubuntu1804   # privateNetworking:真   ssh:   publicKeyName: gexj   # publicKeyPath: ~/. ssh/gexj。酒吧

记录运行结果

<代码类=" python平原"> <代码类=" python平原"> [?使用地区ap-northeast-2]   (?]使用现有的VPC (vpc-1fa75276)和子网(私人:[subnet-2b4fa650子网- 99182 - fd3 subnet-dbbb4fb2]公众:[subnet-dbbb4fb2 subnet-2b4fa650子网- 99182 - fd3])   [!将使用定制的VPC/子网;如果产生的集群不如预期功能,确保审查VPC的配置/子网   (?]节点组“ng01”将使用“ami-0f37e6cfe5a2e9281”[Ubuntu1804/1.13]   (?使用EC2密钥对”gexj”   (?使用Kubernetes 1.13版本)   (?创建的集群”cluster01”“ap-northeast-2”地区   (?1)节点组(ng01)包括在内   (?)将创建一个CloudFormation堆栈集群本身和1节点组堆栈(s)   (?)如果您遇到任何问题,检查CloudFormation控制台或尝试“eksctl跑龙套describe-stacks——地区=ap-northeast-2名称=cluster01 '   (?)监测记录将不会支持集群“cluster01”“ap-northeast-2”   (?)你可以使它的eksctl跑龙套update-cluster-logging——地区=ap-northeast-2名字=cluster01 '   (?)2顺序任务:{创建集群控制飞机“cluster01”,创建节点组“ng01”}   (?构建集群堆栈”eksctl-cluster01-cluster”   (?部署堆栈”eksctl-cluster01-cluster”   (?建筑节点组堆栈”eksctl-cluster01-nodegroup-ng01”   (?部署堆栈”eksctl-cluster01-nodegroup-ng01”   (?)所有的集群资源“cluster01”创建   (?保存kubeconfig”/根/.kube/配置”   (?添加角色”是:aws:我::647035961056:角色/eksctl-cluster01-nodegroup-ng01-NodeInstanceRole-GDG5Y6EPZ0B8”auth ConfigMap   (?“ng01”]节点组0节点(s)   (?]等待至少2节点(s)成为“ng01”准备好了   (?]节点组“ng01”2节点(s)   (?节点”ip - 172 - 31 - 25 - 102. - ap - - 2. compute.internal东北“已经准备好了   (?节点”ip - 172 - 31 - 9 - 210. - ap - - 2. compute.internal东北“准备好了   (?]kubectl命令应该使用“/根/ube/配置”,尝试“kubectl得到节点”   (?]“ap-northeast-2”地区的集群“cluster01”准备好了

我权限添加到上面创建的角色

<代码类=" python平原"> <代码类=" python平原"> {   “版本”:“2012-10-17”,   “声明”:[   {   “效应”:“允许”,   “行动”(   “route53: ChangeResourceRecordSets”   ),   “资源”:(   “攻击:aws: route53::: hostedzone/*”   ]   },   {   “效应”:“允许”,   “行动”(   “route53: ListHostedZones”,   “route53: ListResourceRecordSets”   ),   “资源”:(   “*”   ]   }   ]   }

设置托管区

<代码类=皃ython评论”> # #如果你喜欢试演ExternalDNS在> # aws route53 create-hosted-zone——名字“gexj.club。”——caller-reference”gexj-clube - $(日期+ % s)” <代码类=" python平原"> <代码类=" python平原">


{   “位置”:“ https://route53.amazonaws.com/2013-04-01/hostedzone/Z3P062U2BQWNDS”,   " HostedZone ": {   “Id”:“/hostedzone/Z3P062U2BQWNDS”,   “名称”:“gexj.club。”   :“CallerReference gexj - clube 1568880027”,   "配置":{   “我的地盘”:假的   },   “ResourceRecordSetCount”: 2   },   " ChangeInfo ": {   “Id”:“/改变/C1GWAKWYESG64Y”,   “状态”:“等待”,   “SubmittedAt”:“2019 - 09 - 19 t08:00:28.557z”   },   " DelegationSet ": {   “域名服务器”:(   “ns - 771. - awsdns - 32. -网”,   “ns - 378. - awsdns - 47. - com”,   “ns - 1192. - awsdns - 21. -组织”,   “ns - 1786. - awsdns - 31.——增加“   ]   }   }

使用external-dns auto-bond route53的