铁人赛
AWS
Outposts
EKS
Kubernetes
aws-auth.yaml
调整 ConfigMapsystem:masters
This IAM entity does not appear in the ConfigMap, or any other visible configuration, so make sure to keep track of which IAM entity originally created the cluster.
aws eks --region ap-northeast-1 update-kubeconfig --name ironman-cluster --profile theprofilename
--region
後面加上 代表东京的那串--profile
会去指定,呼叫 aws cli 命令时,要使用 ~/.aws/credentials
中的哪一组 AWS API Key/Secret 去存取update-kubeconfig
会去对 ~/.kube/config
做配置档的写入,这个档案会纪录 kubectl 所能操作的丛集资讯、预设的丛集资讯curl -o aws-auth-cm.yaml https://amazon-eks.s3.us-west-2.amazonaws.com/cloudformation/2020-10-29/aws-auth-cm.yaml
arn:aws:iam::999999999999:role/xxxx-NodeInstanceRole-XXXXXXXXXXXX
apiVersion: v1
kind: ConfigMap
metadata:
name: aws-auth
namespace: kube-system
data:
mapRoles: |
- rolearn: arn:aws:iam::999999999999:role/xxxx-NodeInstanceRole-XXXXXXXXXXXX
username: system:node:{{EC2PrivateDNSName}}
groups:
- system:bootstrappers
- system:nodes
aws-auth-ironman.yaml
❯ kubectl apply -f aws-auth-ironman.yaml
configmap/aws-auth created
❯ kubectl get nodes --watch
NAME STATUS ROLES AGE VERSION
ip-10-56-3-130.ap-northeast-1.compute.internal NotReady <none> 0s v1.17.17-eks-ac51f2
❯ kubectl get nodes
NAME STATUS ROLES AGE VERSION
ip-10-56-3-130.ap-northeast-1.compute.internal Ready <none> 81m v1.17.17-eks-ac51f2
❯ kubectl get deployments --all-namespaces
NAMESPACE NAME READY UP-TO-DATE AVAILABLE AGE
kube-system coredns 2/2 2 2 22h
aws-auth-ironman.yaml
eks-admin
是另外一个 IAM 使用者kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.3.1/aio/deploy/recommended.yaml
所部署的内容,下载下来看看,或是直接部署!
学习React过程中很重要的概念为组件化。 何谓组件化??? 重复使用 切割成更细小的碎片,达到耦合...
简介- 为什麽要使用阵列? 当我们想要宣告一个变数的时候,我们可以一次叫一个 像是这样 #inclu...
大家好,我是长风青云。今天是铁人赛的20天,但我影片说错了QQ ...
本篇同步发文於个人网站: Organizing Data This article referenc...
今天来稍微简单介绍一下区块链的技术介绍。 我们可以谈谈为什麽区块链可以储存数据,不用害怕被篡改,就是...