LoginSignup
0
0

More than 5 years have passed since last update.

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

Last updated at Posted at 2016-12-04

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

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0