Announcement
AWS DeVops - New Batch Going to Start 19th Feb 2026   |   AWS Administrator - New Batch going to start on 20t h February 2026   |   CyberSecurity - New Batch going to start in cyber security 19th February 2026
×

Network Support

Network Support

Network Support

Featured Trending

Category: Support

Lessons: 5

Students:

₹3,500.00 ₹5,000.00

30% OFF

About This Course


support


--io 4: Initiates 4 I/O stressors, each generating continuous I/O operations to stress the system's disk and filesystem.​

--vm 2: Starts 2 virtual memory stressors, each allocating and deallocating memory repeatedly to test the system's memory management.​

--vm-bytes 128M: Specifies that each virtual memory stressor should allocate 128 megabytes of memory.​

--timeout 60s: Sets the duration of the stress test to 60 seconds, after which all stressors will terminate.





open another terminal to watch the live pods


-- kubectl get po --watch


On main server


-- kubectl top pods


-- kubectl get hpa


-- kubectl get pods


-- kubectl describe hpa mb-deployment     [ This will show scaling activities ]


-- kubectl get events   [ This will also show same things ]


-- kubectl logs mb-deployment-8585b755c5-p2bzv   [ To see logs of the pod ]


After few mins, scale in happens as we dont have load.


-- kubectl delete -f auto.yml


Example using Manifestfile

--------------------------


First we need to have deployment and then we can autscale on that deployment / deployment name


vi auto.yml


apiVersion: apps/v1

kind: Deployment

metadata:

  name: ib-deployment

  labels:

    app: bank

spec:

  replicas: 2

  selector:

    matchLabels:

      app: bank

  template:

    metadata:

      labels:

        app: bank

    spec:

      containers:

      - name: cont1

        image: reyadocker/internetbankingrepo:latest



-- kubectl apply -f auto.yml


--------------------------------


vi hpa.yml


apiVersion: autoscaling/v2

kind: HorizontalPodAutoscaler

metadata:

  name: ib-hpa

spec:

  scaleTargetRef:

    apiVersion: apps/v1

    kind: Deployment

    name: ib-deployment

  minReplicas: 2

  maxReplicas: 10

  metrics:

    - type: Resource

      resource:

        name: cpu

        target:

          type: Utilization

          averageUtilization: 20

Ready to Start?

₹3,500.00 ₹5,000.00

30% OFF
Course Features
  • Lifetime Access
  • Certificate of Completion
  • Mobile & Desktop Access
  • Downloadable Resources
  • Instructor Support
Share This Course