Posts

Showing posts from December, 2025

30.12.2025 Kubernetes Class Notes

  kubectl exec --------------- it is kubectl command  which is used to enter into "Pod" and "Container" also how to enter into my container ------------------------------------- kubectl exec -i -t kkpod1 -c kkcon1 --  /bin/bash kubectl exec -it kkpod1 -c kkcon1 -- /bin/bash 1... interactive  -i  --user can able to interactive with terminal  2... terminal -t      --provides kind of terminal setup 3... /bin/bash        --provides bash environment  4... -- (two hypens)  --it separates kubectl commands and arguments from     the other commands 5... -c (container)   --it specifies container  cluster--->nodes--->pods---->containers---->application+deps 1.cluster --------- the overall Kubernetes environment where we have multiple nodes 2.Nodes ------- it is nothing but a virtual machine(server) that holds multiple pods 3.pods --------- it is a place that holds multiple contai...

Kubernetes step by step Class Notes

1.understand to create pod using YAML file 2.work with describe command Task:1  ------ step1: create docker file step2: create docker image step3: push image into dockerHub        so my image is available inside dockerHub Task:2 ------- step1: take the image from the dockerHub step2: create a pod inside k8s cluster        by using YAML Script take the image location along with tag from the dockerHub go to DockerHub go to repository take the image location:kk1567811/vansro:development what is the use of kind -------------------------- it tells to Kubernetes ...what type of k8s object we are going to use kind: Pod    Pod ---> "P" must be in Capital metadata: name: kkpod1 spec: containers image port apiserver  ------------ we need to specify the version in your yaml script  which is available inside your cluster v1 is the stable version for k8s 1.apiVersion: v1 which Version API Server are using inside your k8s cluster 2.k...

Create Pod using YAML Script

apiVersion: v1 kind: Pod metadata:   name: kkpod1 spec:   containers:     - name: kkcon1       image: kk1567811/kkimage:development       ports:         - containerPort: 80

Docker Notes step by step

  1.create DockerHub Account 2.Connect DockerHub through CLI 3.Create docker image 4.add tag & create repository  5.upload docker image into DockerHub You must Connect to DockerHub FROM your server with the help of CLI I can able to connect my DockerHub Account to connect docker hub account from your server just use command...   1.connect dockerHub through CLI ------------------------------- docker login  purpose of docker login command ? --------------------------------- whenever we push the image into dockerhub  before push the image into docker hub, we must connect DockerHub  so connecting purpose we use docker login command so that I can able to push the docker image into DockerHub 1.create docker image -------------------------- ans:docker build -t kkiamge . 2.add tag & create repository inside my DockerHub ------------------------------------------------- ans: docker tag kkimage kk1567811/vansro:1.0.0  1.image name:kkimage 2.username:kk15...

Kubernetes Notes : how to create a pod step by step

step1: create a folder         folder name: kk        just create a file         index.html (which contains my web content) step2: create a docker file        nano Dockerfile        FROM nginx        COPY index.html /usr/share/nginx/html step3: create an image         docker build -t kkimage1 .        my image name:kkimage1 step4: create pod (model-1)        kubectl run <pod-name> --image <image-name> --port <container port>        kubectl run kkpod1 --image kkimage1 --port 80 step5: how to display the pods         kubectl get pods     step6: how to display the pod IP's        kubectl get pods -o wide step7: how to display the total no.of nodes in your cluster        kubectl get ...

Linux Class Notes

Part-1 ------- Login AWS Cloud Create Linux Server Login Linux Server Part-2 ------- 1.mkdir /project1---------------->create project1 folder inside "/" directory 2.touch /project1/file1---------->create file1 inside project1 folder 3.chmod o+rwx /project1/file1 --->provide rwx access to others on file1   Part-3 ------ 4.ls -l /project1 ---------->it displays project1 files information  5.ls -l /project1/file1 ---->it displays file1 information inside project1 folder 6.ls -ld /project1/file1 --->it displays file1 information inside project1 folder 7.useradd kasim --->creates  kasim user 8.passwd kasim ---->assign password to  kasim user 9.nano /etc/ssh/sshd_config -->provide login access to the users 10.service sshd restart ------>restart sshd service Part-4 ------- 11.login as kasim user 12.check the file permissions      read, write & execution  scenario:1 ---------- root root  file1 ---->owner: root use...

Kubernetes cluster setup NOTES step by step using minikube

 Server Requirement ... 2CPU & 4GB RAM -instance type t3.medium 30 GB disk space  step1: Login AWS Cloud step2: create Linux server  step3: Login Linux Server step4: switch to root user        (sudo -i) step5: create user (useradd paparao(        create password step:6 provide login access        nano /etc/ssh/sshd_config         step7: restart sshd service        service sshd restart             step8: provide sudo access         visudo and press enter         write below statement                paparao ALL=(ALL) NOPASSWD: ALL    Step9: Install docker software        yum install docker -y     step10: check the docker         docker --version step11: add user into docker group     ...

How to create Dockerfile,Docker Image,Docker Container & access application from container

 docker notes(21.12.2025 Sunday) ========================= step1: create Linux server        add port number 4000 for your server        or create security group directly         and add security group for your server step2: login Linux server step3: create a directory  step4: create index.html file inside this directory  name: vansro (folder name)       a).create index.html file         copy the code              b).create Dockerfile          nano Dockerfile          FROM nginx          COPY index.html /usr/share/nginx/html                 save and close the file(ctrl+o press enter ctrl+x) step6: Install Docker software step7: start the docker service step8: create docker image        how to create do...

Docker Class Notes

 Dockerfile ======== Dockerfile is like a text file which contains some instructions to create a docker image FROM ==== it is an instruction in a Dockerfile it tells the docker ...please take this image FROM DockerHub and use this image while crating container FROM nginx   (here nginx is an image name)              which is available inside DockerHub nginx software is available in the form of image inside DockerHub operating system is a software but is available in the form of image we are using this image name inside AWS also and use this image while creating server folder structure or path ================ nginx default path = document root directory or folder structure               /usr/share/nginx/html              index.html httpd default path = document root directory or folder structure               /var/www/html ...

CI/CD Script notes (CLONE+BUILD+CODE ANALYSIS)

 pipeline {     agent any environment {     PATH="${PATH}:/opt/maven/bin" }        stages {         stage('CLONE') {             steps {                 git branch: 'main', url: 'https://github.com/raghu4devops/vansro22.git'             }         }         stage('BUILD') {             steps {                 sh 'mvn clean package'             }         }         stage('CODE ANALYSIS') {             steps {                 withSonarQubeEnv('SonarQube-Server')                 {                   ...

CI/CD pipeline scripting notes (CLONE +CLEAN+PACKAGE)

 pipeline {     agent any environment {     PATH="${PATH}:/opt/maven/bin" }     stages {         stage('CLONE') {             steps {                 git branch: 'main', url: 'https://github.com/kk1567811/vansro22.git'             }         }                  stage('COMPILE') {             steps {                 sh 'mvn compile'             }         }                  stage('TEST') {             steps {                 sh 'mvn test'             }         }         stage...