Create a Kubernetes Cluster on AWS Ec2

  Рет қаралды 1,451

CloudWithRamal

CloudWithRamal

Күн бұрын

Follow along step-by-step, and by the end of this video, you'll have your own Kubernetes cluster up and running on AWS EC2, ready to power your containerized applications. Don't forget to like, share, and subscribe for more in-depth tech tutorials!
Follow Me: / ramalab
Website: cloudwithramal...
Terraform Code Used:
provider "aws" {
region = "ap-south-1"
}
resource "aws_security_group" "cluster_sg" {
name = "cluster_sg"
description = "Security group created for Kube Cluster"
ingress {
from_port = 22
to_port = 22
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
}
egress {
from_port = 0
to_port = 0
protocol = "-1"
cidr_blocks = ["0.0.0.0/0"]
}
}
resource "aws_instance" "controlpane" {
ami = "ami-0f58b397bc5c1f2e8"
instance_type = "t3.medium"
key_name = "controlplane-key"
vpc_security_group_ids = [aws_security_group.cluster_sg.id]
tags = {
Name = "controlpane"
Project = "kube"
}
}
resource "aws_instance" "workernode01" {
ami = "ami-0f58b397bc5c1f2e8"
instance_type = "t3.medium"
key_name = "workernode01-key"
vpc_security_group_ids = [aws_security_group.cluster_sg.id]
tags = {
Name = "workernode01"
Project = "kube"
}
}

Пікірлер: 5
@chad3814
@chad3814 Ай бұрын
Thanks that was helpful
@senpaihere6512
@senpaihere6512 2 ай бұрын
thanks bro
@ZafarSiddhiq
@ZafarSiddhiq 4 ай бұрын
but in final one pod shows crashed loop-off. How to solve that.
@cloudwithramal
@cloudwithramal 3 ай бұрын
It’s running as part of a replica set hence it will automatically be recreated with the status “Running” in few seconds
World‘s Strongest Man VS Apple
01:00
Browney
Рет қаралды 69 МЛН
Кәсіпқой бокс | Жәнібек Әлімханұлы - Андрей Михайлович
48:57
Ouch.. 🤕⚽️
00:25
Celine Dept
Рет қаралды 12 МЛН
The only Cloud services you actually need to know
17:17
NeetCodeIO
Рет қаралды 174 М.
Install Kubernetes Cluster on AWS EC2
28:22
Learning Light
Рет қаралды 735
AWS EKS - Create Kubernetes cluster on Amazon EKS | the easy way
16:27
TechWorld with Nana
Рет қаралды 547 М.
AWS EKS Tutorial | What is EKS? | EKS Explained | KodeKloud
22:28
Create a Kubernetes Cluster on Amazon EKS
26:53
CloudWithRamal
Рет қаралды 143
World‘s Strongest Man VS Apple
01:00
Browney
Рет қаралды 69 МЛН