Posted On March 17, 2021

Kubernetes – Pausing Applications by Scaling Deployments or Stateful Sets

kimconnect 0 comments
blog.KimConnect.com >> Linux , Virtualization >> Kubernetes – Pausing Applications by Scaling Deployments or Stateful Sets
# Pause application
kubectl scale deploy nextcloud --replicas=0
kubectl scale statefulsets nextcloud-db-postgresql --replicas=0
kubectl scale deploy pihole --replicas=0

# Resume application
kubectl scale deploy nextcloud --replicas=1
kubectl scale statefulsets nextcloud-db-postgresql --replicas=1
kubectl scale deploy pihole --replicas=1

# Alternate for deployments scaling
kubectl scale deploy -n default --replicas=0 --all
kubectl scale deploy -n default --replicas=1 --all

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

Creating a RAM Disk on a Linux Instance of AWS

This information has already been conveyed in another post regarding a method to overcome MySQL…

Network Zones

Corporate Head-Quarter:DMZ: Extranet: VendorsWeb: Front-end Sites (a) Web (b) Application (c) DataPublic: Public, satellite VPN…

Ubuntu 20.04: Setting Static IP Address on an Interface

Short Version # Configure networking sudo vim /etc/netplan/*.yaml ### Sample content ### network: version: 2…