POKE ME for any consultancy
Tuesday, April 30, 2024
How to Optimize and scale Kubernetes clusters for performance and reliability
Monday, April 29, 2024
5 9s (99.999%) or higher scenario with a recovery time under one minute
https://docs.aws.amazon.com/wellarchitected/latest/reliability-pillar/s-99.999-or-higher-scenario-with-a-recovery-time-under-1-minute.html
Friday, April 26, 2024
GCP Overview
Refernces:
https://cloud.google.com/kubernetes-engine/docs/
https://cloud.google.com/free/
https://cloud.google.com/architecture/best-practices-for-running-cost-effective-kubernetes-applications-on-gke?hl=en
Wednesday, April 24, 2024
Technologies and Tools -Devops
Technologies and Tools
- Cloud platform - AWS
- SDLC Methodologies: Agile /Scrum
- Version Control Tools – GitHub/ Bitbucket/GitLab
- CI/CD Automation Tools – Jenkins/ CloudBees CI, CD / Bamboo/ Octopus /Team City/ AWS DevOps / Harness
- Container Management Tools – Docker/Kubernetes/Docker Swarm
- Application Performance Management Tools – Prometheus/ Dynatrace/ AppDynamics
- Monitoring Tools – ELK/Splunk/ Datadog/ Grafana
- IAC Tools – Terraform/ Cloud Formation
- Config Management Tools – Chef/ Puppet/ Ansible
- Artifact Management Tools – Jfrog Artifactory/Nexus/CloudRepo
- Scripting - Python/Groovy/PowerShell/Shell Scripting
- SAST/ DAST: SonarQube / Veracode/ Fortify
- GitOps Tool – Argo CD/ Flux CD
Monday, April 22, 2024
platform.linkedin.com/badge
<script src="https://platform.linkedin.com/badges/js/profile.js" async defer type="text/javascript"></script>
<div class="badge-base LI-profile-badge" data-locale="en_US" data-size="medium" data-theme="dark" data-type="VERTICAL" data-vanity="amitanand123" data-version="v1"><a class="badge-base__link LI-simple-link" href="https://in.linkedin.com/in/amitanand123?trk=profile-badge">Amit Anand</a></div>
Thursday, April 18, 2024
kubernetes Commands
- 4 kubectl get replicaset
- 5 kubectl describe replicaset
- 7 kubectl get pods
- 8 kubectl delete new-replica-set-fx2tw
- 9 kubectl delete pods new-replica-set-fx2tw
- 10 kubectl get pods
- 11 kubectl describe replicaset
- 12 kubectl create replicaset replicaset-definition-1.yaml
- 13 kubectl api-resources | grep replicaset
- 14 kubectl explain replicaset | grep VERSION
- 15 kubectl create -f /root/replicaset-definition-1.yaml
- 1 kubectl get pods
- 42 .\minikube.exe get pods
- 43 .\minikube.exe get pods
- 44 ./minikube dashboard
- 45 .\minikube.exe start
- 46 .\minikube.exe start
- 47 ./minikube dashboard
Exam Details
https://www.youtube.com/watch?v=dHXgg9fbP8E
https://www.youtube.com/watch?v=1hF-HRq5Mww
Also check out, my other videos: CKA Exam Questions - • REAL CKA Exam Questions to Practice a... What is Kubernetes and How it works? • Kubernetes Explained - What is Kubern... Prerequisites to Learn Kubernetes: How I would learn DevOps from scratch • How I would Learn DevOps from scratch... DevOps Roadmap 2024: • DevOps ROADMAP 2024: How to learn and... How I passed my Terraform Associate Exam: • How I passed my Hashicorp Certified T... How I Passed my AWS SAA Exam: • How I Passed AWS Solutions Architect ... Top DevOps Certifications for 2024: • Top 3 DevOps Certification in 2024 ♾️... All about AWS CCP Certification: • Everything you need to know about AWS... DevSecOps Project to deploy Netflix : • DevSecOps Pipeline Project: Deploy Ne... DevOps Interview Questions and Answers: • DevOps Interview Questions and Answer... GitOps Explained with Examples: • What is GitOps | GitOps explained wit... Monitoring explained with popular tools: • Popular DevOps Monitoring Tools in 2024 CICD explained with a project: • What is CICD Pipeline? CICD process e... How much Programming is required in DevOps : • Is CODING required for Devops? How mu... How I use Python as DevOps engineer: • How I use Python as DevOps Engineer |... How to use ChatGPT as a DevOps Engineer: • 5 EFFECTIVE ways to use ChatGPT as a ... CICD Pipeline explained: • What is CICD Pipeline? CICD process e... Terraform Tutorial : • Master Terraform in 60 minutes | Terr... Terraform Project on AWS: • Simple DevOps Project to Practice Ter... How I make money as Devops Freelancer: • How I make money remotely as Freelanc... Most used AWS services for DevOps Engineer: • Important AWS services for DevOps you...
https://github.com/killercoda/scenario-examples
Kubernetes – Cluster IP vs Node-Port
ClusterIP service: A ClusterIP service is an internal IP address that is allocated by Kubernetes and can only be accessed within the cluster. It's useful for communication between pods in the same cluster.
NodePort service: A NodePort service assigns a fixed port on each node in the cluster, allowing external clients to access the service from outside the cluster using the cluster's IP address and the assigned port number
Wednesday, April 17, 2024
Minikube setup-Dashboard
http://127.0.0.1:51298/
Dashboard | minikube (k8s.io)
https://minikube.sigs.k8s.io/docs/handbook/dashboard/
Id CommandLine
-- -----------
- 1 minikube
- 2 minikube addons list
- 4 minikube config view
- 5 cd C:\minikube\
- 6 dir
- 7 .\minikube.exe config view
- 8 minikube config view
- 9 minikube start --container-runtime=docker
- 12 kubectl get pod --output=wide
- kubectl expose deployment hello-minikube --type=NodePort --port=8080
- kubectl get pod --output=wide
- kubectl get services hello-minikube
- minikube service hello-minikube
- ./minikube dashboard
- kubectl create deployment hello-minikube --image=kicbase/echo-server:1.0
Monday, April 15, 2024
Thursday, April 11, 2024
Wednesday, April 10, 2024
Kubernetes --Plateform
"Kubernetes Config Syncer (previously kubed)" is a tool that enables users to synchronize secrets and other data across multiple Kubernetes namespaces. It was previously known as "kubed," but was renamed to Config Syncer in 2022. Config Syncer uses Ansible and Kubernetes Secrets to synchronize and update the data as necessary, making it easier to manage the configuration and data within a cluster.
It is part of the Config Syncer project on GitHub, which involves the creation of Kubernetes Resources such as ConfigMaps and Services. Config Syncer can be installed using Kubeadm, and can be used in conjunction with other tools and frameworks to automate the configuration and management of Kubernetes clusters.
Amazon EKS (Elastic Kubernetes Service): Complete Workflow (k21academy.com)
Kubernetes on AWS: Create EKS Step By Step for Beginners (youtube.com)
Synchronize Configuration across Namespaces (config-syncer.com)
Synchronize Configuration across Kubernetes Clusters (config-syncer.com)
CATS vs DOGS + FLASK + DOCKER + KUBERNETES | by Rietesh Amminabhavi | Medium
Container Runtimes | Kubernetes
Kubeadm vs. Kops
We briefly touched on the differences between the tools earlier. But more specifically these are the differences between the two tools:
- Kubeadm is in the middle of the stack and it runs on each node, and basically creates and then talks to the Kubernetes API.
- Kops on the other hand is responsible for the entire lifecycle of the cluster, from infrastructure provisioning to upgrading to deleting, and it knows about everything: nodes, masters, load balancers, cloud providers, monitoring, networking, logging etc.
- Kops and Kubeadm w/ Chris Love & Lucas Käldström (youtube.com)
- kubeadm init to bootstrap a Kubernetes control-plane node
- kubeadm join to bootstrap a Kubernetes worker node and join it to the cluster
- kubeadm upgrade to upgrade a Kubernetes cluster to a newer version
- kubeadm config if you initialized your cluster using kubeadm v1.7.x or lower, to configure your cluster for
kubeadm upgrade
- kubeadm token to manage tokens for
kubeadm join
- kubeadm reset to revert any changes made to this host by
kubeadm init
orkubeadm join
- kubeadm certs to manage Kubernetes certificates
- kubeadm kubeconfig to manage kubeconfig files
- kubeadm version to print the kubeadm version
- kubeadm alpha to preview a set of features made available for gathering feedback from the community
How to Create AWS EC2 Instance Using Terraform-https://spacelift.io/blog/terraform-ec2-instance
After an interview, taking the time to reflect on how it went is a crucial step in the post-interview process. Here are some points to consider during your reflection:
Overall performance: Reflect on how you think you performed during the interview. Consider your level of confidence, how well you answered the questions, and whether you effectively conveyed your skills and qualifications. Assess whether you effectively communicated why you are the right fit for the position.
Communication skills: Think about how well you articulated your thoughts and ideas during the interview. Consider whether you were able to express yourself clearly and concisely. Reflect on your ability to actively listen and respond to the interviewer's questions or statements.
Preparation: Evaluate how well you prepared for the interview. Did you research the company and the role thoroughly? Were you able to connect your experiences and skills to the specific requirements of the job? Assess whether you had a good understanding of the company culture and values and if you were able to demonstrate that during the interview.
Problem-solving: Consider how you handled any challenging questions or situations during the interview. Reflect on whether you provided well-thought-out solutions or examples when asked to discuss specific scenarios or problems. Assess your ability to think on your feet and adapt to unexpected questions or challenges.
Body language and demeanor: Think about how you presented yourself during the interview. Reflect on your body language, such as maintaining good eye contact, sitting upright, and displaying attentive gestures. Consider your level of enthusiasm and engagement throughout the conversation.
Follow-up: Assess whether you effectively closed the interview by expressing your interest in the position and asking thoughtful questions
Installing kubeadm
Our hands-on labs will be sufficient for you to practice.
Some links used in the upcoming demo may have changed. Please find the latest links to the documentation topics below:
Install MiniKube: https://kubernetes.io/docs/tasks/tools/install-minikube/
VirtualBox: https://www.virtualbox.org/wiki/Downloads
MiniKube Download page for Windows: https://github.com/kubernetes/minikube/releases
While using Minikube with Virtualization technologies, specify the --vm-driver
option like this:
- minikube start --vm-driver=<driver_name>
More about it here: https://kubernetes.io/docs/setup/learning-environment/minikube/#specifying-the-vm-driver
https://kubernetes.io/docs/tasks/tools/
Install Minikube: -
https://minikube.sigs.k8s.io/docs/start/
Install VirtualBox: -
https://www.virtualbox.org/wiki/Downloads
https://www.virtualbox.org/wiki/Linux_Downloads
Minikube Tutorial: -
https://kubernetes.io/docs/tutorials/hello-minikube/
If the minikube installation has been done on the macOS, then to access the URL on the local browser, we need to do a few steps to get the service URL to work. Those steps are covered on this documentation page: -
https://minikube.sigs.k8s.io/docs/handbook/accessing/#using-minikube-service-with-tunnel