Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
0
Help us understand the problem. What are the problem?

More than 1 year has passed since last update.

@Yarimizu14

【Kubernaetes】AWS上でKubernetesを試すための備忘録

AWSでKubectlが使えるようになるまでの手順の備忘録です。

AWS Cliのインストール

$ sudo apt-get update
$ sudo apt-get -y install python-pip
$ sudo pip install awscli

ユーザーのキーを設定しておきます。

$ aws configure

環境変数の設定

Env Variable Name Description default
KUBE_AWS_ZONE Available Zone us-west-2a
NUM_NODES node数 4
MASTER_SIZE マスターのサイズ node数による
MINION_SIZE Minionのサイズ node数による
AWS_S3_REGION 使用するS3のリージョン us-east-1
EXTRA_DOCKER_OPTS Dockerデーモンの起動オプション?

Kubernetesのインストール

$ export KUBERNETES_PROVIDER=aws; curl -sS https://get.k8s.io | bash

kubectlの設定

$ sudo cp kubernetes/platforms/linux/amd64/kubectl /usr/local/bin/kubectl
$ sudo chmod +x /usr/local/bin/kubectl

参考

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
0
Help us understand the problem. What are the problem?