我想向ek添加多个节点组,每个节点组具有不同的标签。我已经成功部署了第二个云形成堆栈,并且可以看到新的ec2实例,但是我看不到k8s仪表板中的新节点。我想念什么吗?
答案 0 :(得分:5)
我能够通过返回并更新aws-auth configmap并添加第二个角色图来解决此问题:
apiVersion: v1
kind: ConfigMap
metadata:
name: aws-auth
namespace: kube-system
data:
mapRoles: |
- rolearn: OLD ARN
username: system:node:{{EC2PrivateDNSName}}
groups:
- system:bootstrappers
- system:nodes
- rolearn: NEW ARN
username: system:node:{{EC2PrivateDNSName}}
groups:
- system:bootstrappers
- system:nodes