環境
- Mac OS X
手順
awsコマンドに認証情報入れる
1 |
aws configure |
eksctlをインストール
1 2 3 4 5 |
/usr/bin/ruby <span class="nt">-e</span> <span class="s2">"</span><span class="si">$(</span>curl <span class="nt">-fsSL</span> https://raw.githubusercontent.com/ Homebrew/install/master/install<span class="si">)</span><span class="s2">"</span> brew tap weaveworks/tap brew <span class="nb">install </span>weaveworks/tap/eksctl eksctl version |
EKSをデプロイ
1 2 3 4 5 6 7 8 9 |
eksctl create cluster <span class="se">\</span> <span class="nt">--name</span> prod <span class="se">\</span> <span class="nt">--version</span> 1.13 <span class="se">\</span> <span class="nt">--nodegroup-name</span> standard-workers <span class="se">\</span> <span class="nt">--node-type</span> t3.medium <span class="se">\</span> <span class="nt">--nodes</span> 3 <span class="se">\</span> <span class="nt">--nodes-min</span> 1 <span class="se">\</span> <span class="nt">--nodes-max</span> 4 <span class="se">\</span> <span class="nt">--node-ami</span> auto |
サービスが起動しているか確認
1 |
kubectl get svc |