holandes22 / kube-admin

An admin dashboard for Kubernetes
MIT License
6 stars 0 forks source link

ReplicationController scaling #18

Closed holandes22 closed 8 years ago

holandes22 commented 8 years ago
  1. Do GET request to http://localhost:8080/api/v1/namespaces/default/replicationcontrollers/data-processor
  2. Get the spec.replicas value, if the same return OK
  3. if not the same modify the manifest. spec.replicas value with the new value
  4. Do PUT request to same URL

We need an input component that allows to spin up or down the value,

Form

holandes22 commented 8 years ago

According to docs "A replicationController is only appropriate for pods with RestartPolicy = Always" so we might need to hide this if that is the case

holandes22 commented 8 years ago

Possible feature to add in a future // If the replication controller named foo's current size is 2, scale foo to 3. $ kubectl scale --current-replicas=2 --replicas=3 replicationcontrollers foo