其他分享
首页 > 其他分享> > Installing Kubernetes with kops

Installing Kubernetes with kops

作者:互联网

内容:


Installing Kubernetes with kops

1.aws configure

安装 awscli:

pip install awscli


创建 IAM User, 获取到 access_key_id 以及 access_key. 配置验证:

aws configure


2.安装 kops

MacOSX

brew install kops


Linux

wget https://github.com/kubernetes/kops/releases/download/1.10.0/kops-linux-amd64
chmod +x kops-linux-amd64
mv kops-linux-amd64 /usr/local/bin/kops


3.在 route53 创建 DNS域

domain: k8s-dev.mydomain.com


aws route53 create-hosted-zone --name k8s-dev.mydomain.com --caller-reference 1


4.创建 S3 存储

S3 用来存储集群的配置

aws s3 mb s3://cluster.k8s-dev.mydomain.com


5.创建集群

export NAME=cluster.k8s-dev.mydomain.com
export KOPS_STAT_STORE=s3://cluster.k8s-dev.mydomain.com


创建集群配置

kops create cluster $NAME --zones=ap-east-1a --node-count=2 --node-size=m5.large --master-size=t3.micro

查看集群配置

kops edit cluster $NAME


更新集群

kops update cluster --yes $NAME


声明配置

kops export kubecfg $NAME


查看集群

kops get cluster

标签:mydomain,Kubernetes,Installing,dev,cluster,kops,k8s,com
来源: https://www.cnblogs.com/tiantiandas/p/Installing-Kubernetes-with-kops.html