프로젝트
GitHub에서 보기
iam-veeramalla/Kubernetes-Zero-to-Hero
소개
초보자도 Kubernetes를 쉽게 배울 수 있도록 이 리포지터리를 만들고 있습니다. 아직 작업이 진행 중입니다.
시스템 및 인프라측정된 스타 증가
- in 24h
- 0
- in 7 days
- +3
- in 15 days
- +6
- in 1 month
- +19
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalKubernetes-Zero-to-Hero
Creating this repo with an intent to make Kubernetes easy for begineers. This is a work-in-progress repo.
Kubernetes Installation Using KOPS on EC2
Create an EC2 instance or use your personal laptop.
Dependencies required
- Python3
- AWS CLI
- kubectl
Install dependencies
Add the new Kubernetes repository:
sudo apt-get update
sudo apt-get install -y ca-certificates curl apt-transport-https
curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.28/deb/Release.key | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg
echo 'deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.28/deb/ /' | sudo tee /etc/apt/sources.list.d/kubernetes.list
sudo apt-get update
sudo apt-get install -y kubectl
Install AWS CLI (Ubuntu 24.04 compatible):
sudo snap install aws-cli --classic
export PATH="$PATH:/home/ubuntu/.local/bin/"
Install KOPS (our hero for today)
curl -LO https://github.com/kubernetes/kops/releases/download/$(curl -s https://api.github.com/repos/kubernetes/kops/releases/latest | grep tag_name | cut -d '"' -f 4)/kops-linux-amd64
chmod +x kops-linux-amd64
sudo mv kops-linux-amd64 /usr/local/bin/kops
Provide the below permissions to your IAM user. If you are using the admin user, the below permissions are available by default
- AmazonEC2FullAccess
- AmazonS3FullAccess
- IAMFullAccess
- AmazonVPCFullAccess
Set up AWS CLI configuration on your EC2 Instance or Laptop.
Run aws configure
Kubernetes Cluster Installation
Please follow the steps carefully and read each command before executing.
Create S3 bucket for storing the KOPS objects.
aws s3api create-bucket --bucket kops-abhi-storage --region us-east-1
Create the cluster
kops create cluster --name=demok8scluster.k8s.local --state=s3://kops-abhi-storage --zones=us-east-1a --node-count=1 --node-size=t2.micro --master-size=t2.micro --master-volume-size=8 --node-volume-size=8
Important: Edit the configuration as there are multiple resources created which won't fall into the free tier.
kops edit cluster myfirstcluster.k8s.local
Step 12: Build the cluster
kops update cluster demok8scluster.k8s.local --yes --state=s3://kops-abhi-storage
This will take a few minutes to create............
After a few mins, run the below command to verify the cluster installation.
kops validate cluster demok8scluster.k8s.local
관련 프로젝트 살펴보기
불러오는 중…