Skip to content

pong1013/resize-statefulset-operator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automated Updating PVC disk

k8s


This project implements an operator using the Python k8s-client to automatically update the disk storage of StatefulSet PersistentVolumeClaims (PVCs). It completely resolves the issue of being unable to modify PVC storage, and once deployed, you will never need to worry about capacity issues. plot

Workflow

  1. Resize Operator plot
  2. Auto-Resize Operator plot

Operator Structure

<Operator-name>
├── Dockerfile
├── <operator>.py
└── chart
    ├── Chart.yaml
    ├── values.yaml
    └── templates
        └── ...

Setup steps

Each operator needs to build an image and deploy it to Kubernetes.

1. Webhook

2. Manually resize

3. Automatically resize