MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

Optum Lab 2 – Services – LoadBalancer


TIME – 12 PM IST – 1:30 PM IST

Step 1 – Watch this video



Step 2 – Lets do a LAB


What is Services?
-----------------------------------------

kubectl create service clusterip my-cs --tcp=5678:80

kubectl create service nodeport my-ns --tcp=5678:80

  245  mkdir rajesh
  246  cd rajesh/
  247  clear
  248  ls
  249  vi pod1.yaml
  250  vi pod2.yaml
  251  clear
  252  ls
  253  kubectl get pods
  254  kubectl delete deploy my-dep
  255  clear
  256  kubectl get pods
  257  kubectl delete pod nginx rajesh
  258  kubectl get pods
  259  clea
  260  clear
  261  ls
  262  kubectl apply -f pod1.yaml
  263  kubectl apply -f pod2.yaml
  264  clear
  265  kubectl get pods -o wide
  266  curl http://192.168.1.20
  267  curl http://192.168.1.21
  268  kubectl create svc -h
  269  clear
  270  kubectl create svc clustorip -h
  271  kubectl create svc clusterip -h
  272  clear
  273  kubectl create service clusterip my-cs --tcp=5678:80
  274  kubectl get svc
  275  kubectl describe svc my-cs
  276  cler
  277  clear
  278  kubectl get pods --show-labels
  279  kubectl get svc --show-labels
  280  kubectl edit svc my-cs
  281  kubectl get pods --show-labels
  282  kubectl get svc --show-labels
  283  kubectl describe svc my-cs
  284  clear
  285  kubectl edit svc my-cs
  286  clear
  287  kubectl describe svc my-cs
  288  kubectl get svc
  289  curl http://10.102.142.50:5678
  290  clear
  291  watch curl http://10.102.142.50:5678
  292  clear
  293  ls
  294  kubectl get svc
  295  kubectl create svc nodeport -h
  296  clear
  297  kubectl create service nodeport my-ns --tcp=5678:80
  298  kubectl get svc
  299  kubectl describe svc my-ns
  300  kubectl edit svc my-ns
  301  clear
  302  kubectl describe svc my-ns
  303  clear
  304  kubectl get svc
  305  curl http://10.100.87.218:5678Code language: JavaScript (javascript)

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services โ€” all in one place.

Explore Hospitals
I'm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

List of Commands troubleshoot networking in Kubernetes

2024 Notes Troubleshooting networking in Kubernetes can sometimes be complex due to the distributed nature of containerized applications. Below is a list of commands with explanations to…

Read More

Node port forwarding Concept in Kubernetes

In Kubernetes, the concept of “node port forwarding” allows you to access a service running on a specific node in your cluster. It enables you to access…

Read More

Interview Questions & Answers Complete Guide for Kubernetes

Kubernetes What is Kubernetes? Why organizations are using it? What is a Kubernetes Cluster? Kubernetes Nodes What is a Node? What the master node is responsible for?…

Read More

How to setup Kubernetes Dashboard in EKS using NodePort?

How to setup Kubernetes Dashboard in EKS using NodePort? Step 1: Deploy the Dashboard# Deploy the Kubernetes dashboard to your cluster: [code]kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml[/code] # Deploy…

Read More

Kubernetes Assignment and Project

This page is a five-day Kubernetes assignment. It starts with architecture and Pods, then moves through ReplicaSets, DaemonSets, Deployments, Services, CoreDNS service discovery and StatefulSets, and ends…

Read More

Troubleshooting Knative Guide

This page collects kubectl commands for troubleshooting Knative Serving: finding an OOMKilled activator, checking the net-istio-controller, load testing a Knative Service (ksvc), inspecting the autoscaler and its…

Read More
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
0
Would love your thoughts, please comment.x
()
x