Steps to Edit and Delete the Replication controller

Steps to Edit and Delete the Replication controller by Assistanz

In this blog, we will show you the steps to edit and delete the replication controller in the Kubernetes environment.

 

REQUIREMENTS

  • 2 Node Cluster ( 1 Master VM with 2 Nodes)
  • Kubernetes Components

 

INFRASTRUCTURE OVERVIEW

  • We have already installed and configured the 2 Node cluster in our demo environment.

 

REPLICATION CONTROLLER OVERVIEW

  • We have already created a replication controller in our environment.

Steps to Edit and Delete the Replication controller

 

  • Currently, there are four PODs available in this replication controller. It created pods on both nodes randomly.

 

EDITING REPLICATION CONTROLLER

  • Use the below command to edit the replication controller.

Syntax: kubectl edit rc <replication controller name>

Example: kubectl edit rc rep-pod

 

  • It opens in the default text editor.

 

  • We are editing the total number of replicas from 4 to 6.

 

 

  • Save and close the file.

 

  • After few minutes, we can see two new pods are in running status.

Steps to Edit and Delete the Replication controller

 

 

  • We can also scale down the PODS by editing the replication controller.

Steps to Edit and Delete the Replication controller

 

  • Now we can see the excess POD’s are terminating.

Steps to Edit and Delete the Replication controller

 

DELETING THE REPLICATION CONTROLLER

  • Use the below command to delete a replication controller.

Syntax: kubectl delete rc <replication controller name>

Example: kubectl delete rc rep-pod

Steps to Edit and Delete the Replication controller

 

  • Replication controller deleted successfully.

Steps to Edit and Delete the Replication controller

 

  • Also, there are no pods are available related to the replication controller.

Steps to Edit and Delete the Replication controller

 

DELETING REPLICATION CONTROLLER WITHOUT DELETING THE PODS

 

  • Use the below command to delete the replication controller without deleting the pods.

Syntax: kubectl delete rc <replication controller name> --cascade=false

Example: kubectl delete rc rep-pod --cascade=false

Steps to Edit and Delete the Replication controller

 

  • Command executed successfully.

Steps to Edit and Delete the Replication controller

 

  • You can see the POD’s are available after deleting the replication controller.

Steps to Edit and Delete the Replication controller

 

EXTERNAL LINKS

https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/

VIDEO

Thanks for reading this blog. We hope it was useful for you to learn about the steps to Edit and Delete the Replication controller.

Share on facebook
Facebook
Share on twitter
Twitter
Share on pinterest
Pinterest
Share on linkedin
LinkedIn
More Interested Related Posts
zfs pool usage

ZFS Pool and Dataset Usage

ZFS Pool and Dataset Usage I am back with another blog to provide the useful script to the Freebsd users to determine the zpool and

Assistanz Networks

Installing Zabbix Agent in FreeBSD 12.0

Zabbix Agent Installation and Configuration Guide on FreeBSD 12.0   Zabbix is an open-source monitoring software tool for diverse IT components, including networks, servers, virtual

DirectAdmin Server Management Plans

Premium Support

24/7 End User Support from your Helpdesk
$ 99 Monthly / Server
  • Unlimited Support Plan
  • 24/7 Emergency Phone
  • Chat Support for Admin
  • Separate Account Manager
  • NDA & SLA
  • SLA Review Meetings
  • FREE Consultancy Services
  • Simple SignUp Process
  • Instant Account Activation
  •  

Platinum Support

24/7 Proactive Support
$ 49 Monthly / Server
  • Unlimited Support Plan
  • 24/7 Emergency Phone
  • Chat Support for Admin
  • Separate Account Manager
  • Advance Proactive Monitoring
  • Guaranteed SLA
  • SLA Review Meetings
  • 3rd Party Application Support
  • FREE Consultancy Services
  • Server Migration Support
  • Weekly Status Report
  • No End User Support
Popular

Unlimited Support

24/7 Support

$ 30 Monthly / Server
  • Unlimited Support Plan
  • 24/7 Support
  • Basic Monitoring
  • 30 Minutes Response Time
  • 4 Hours Resolution time for the Possible Issues
  • Security and Performance Optimization
  • React to Customers queries
  • Simple SignUp Process
  • Instant Account Activation
  • No Third party application support
  • No Migration and End User Support

Cpanel Server Management Plans

Premium Support

24/7 End User Support from your Helpdesk

$ 99 Monthly / Server
  • 24/7 End User White Label Support
  • Unlimited Number of Tickets
  • Chat Support for Admin
  • Separate Account Manager
  • Guaranteed SLA
  • Weekly Status Reports
  • FREE Consultancy Services
  • Simple SignUp Process
  • Instant Account Activation

Platinum Support

24/7 Proactive Server Management
$ 49 Monthly / Server
  • Unlimited Support Plan
  • 24/7 Emergency Phone
  • Chat Support for Admin
  • Separate Account Manager
  • Advance Proactive Monitoring
  • Guaranteed SLA
  • SLA Review Meetings
  • 3rd Party Application Support
  • FREE Consultancy Services
  • Server Migration Support
  • Weekly Status Report
  • No End User Support
Popular

Unlimited Support

24/7 Server Management

$ 29 Monthly / Server
  • Unlimited Admin Tasks
  • 24/7 Support
  • Basic Monitoring
  • 30 Minutes Response time
  • 4 hours Response time for possible issues
  • Security and Performance Optimization
  • React to Customers queries
  • No Third party application support
  • No Migration and End User Support

Cpanel Server Management Plans

Premium Support

24/7 End User Support from your Helpdesk

$ 99 Monthly / Server
  • 24/7 End User White Label Support
  • Unlimited Number of Tickets
  • Chat Support for Admin
  • Separate Account Manager
  • Guaranteed SLA
  • Weekly Status Reports
  • FREE Consultancy Services
  • Simple SignUp Process
  • Instant Account Activation

Platinum Support

24/7 Proactive Server Management
$ 49 Monthly / Server
  • Unlimited Support Plan
  • 24/7 Emergency Phone
  • Chat Support for Admin
  • Separate Account Manager
  • Advance Proactive Monitoring
  • Guaranteed SLA
  • SLA Review Meetings
  • 3rd Party Application Support
  • FREE Consultancy Services
  • Server Migration Support
  • Weekly Status Report
  • No End User Support
Popular

Unlimited Support

24/7 Server Management

$ 29 Monthly / Server
  • Unlimited Admin Tasks
  • 24/7 Support
  • Basic Monitoring
  • 30 Minutes Response time
  • 4 hours Response time for possible issues
  • Security and Performance Optimization
  • React to Customers queries
  • No Third party application support
  • No Migration and End User Support