PhalanxClusterService#
- class phalanx.services.cluster.PhalanxClusterService(kubernetes_storage)#
Bases:
objectKubernetes operations on a Phalanx cluster.
These operations are not in the EnviromentService these reasons:
They do not necessarily correspond 1-1 to a Phalanx enviroment.
They are often part of tasks that involve multiple clusters, so passing an explicit context is less error prone, and allows the operations to be automated without having to manually change the kubectl current context.
For example, when recovering a GCP cluster from backups while the old cluster still exists, you will need to work with two clusters, both of which are associated with the same environment.
- Parameters:
kubernetes_storage (
KubernetesStorage) – Interface to direct Kubernetes object manipulation.
Methods Summary
Resume all CronJobs in all Phalanx apps.
Suspend all CronJobs in all Phalanx apps.
Methods Documentation