Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create versions3.tf #71

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions first-steps/versions3.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[default]
aws_access_key_id = your_access_key_id
aws_secret_access_key = your_secret_access_key

8HNv5pAEqwLJ+dpN7bev/RkIILaEmT4j64/zJTT0


region = "us-east-2" # Specify your preferred region
aws_access_key_id = "AKIAQ3EGR3ADZR5OHFYQ"
aws_secret_access_key = "8HNv5pAEqwLJ+dpN7bev/RkIILaEmT4j64/zJTT0"

sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.ef5975ca

172.31.25.40 ansible_user=ec2-user ansible_connection=ssh ansible_ssh_private_key_file=/tmp/jan.pem
172.31.18.29 ansible_user=ec2-user ansible_connection=ssh ansible_ssh_private_key_file=/tmp/jan.pem

'
1.steps for creating k8s cluster by using kubectl
----------------------------------------------------------------------------------------------------------------------------------
Perquisites two or more worker nodes and 2cpu for each node/machine
Prepare the environment: Install necessary packages and disable swap.
Install Docker (or another container runtime).
Install kubeadm, kubelet, and kubectl.
Initialize the Kubernetes control plane on the master node.
Install a pod network add-on (e.g., Calico).
Join worker nodes to the cluster using the kubeadm join command.
Verify the cluster and node statuses with kubectl.
By following these steps, you can create a basic Kubernetes cluster using kubectl and kubeadm, and be ready to start deploying containerized applications.