-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkops.sh
18 lines (15 loc) · 855 Bytes
/
kops.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#vim .bashrc
#export PATH=$PATH:/usr/local/bin/
#source .bashrc
#! /bin/bash
aws configure
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
wget https://github.com/kubernetes/kops/releases/download/v1.25.0/kops-linux-amd64
chmod +x kops-linux-amd64 kubectl
mv kubectl /usr/local/bin/kubectl
mv kops-linux-amd64 /usr/local/bin/kops
aws s3api create-bucket --bucket 0101jadhavsumit.k8s.local --region us-east-1
aws s3api put-bucket-versioning --bucket 0101jadhavsumit.k8s.local --region us-east-1 --versioning-configuration Status=Enabled
export KOPS_STATE_STORE=s3://0101jadhavsumit.k8s.local
kops create cluster --name sumit.k8s.local --zones us-east-1a --master-count=1 --master-size t2.medium --node-count=2 --node-size t2.medium
kops update cluster --name sumit.k8s.local --yes --admin