KubernetesStorage#
- class phalanx.storage.kubernetes.KubernetesStorage#
Bases:
object
Storage layer for direct Kubernetes operations.
Used primarily by the installer. This uses kubectl directly rather than one of the Python Kubernetes libraries since it seemed simpler at the time.
Methods Summary
create_generic_secret
(name, namespace, keys)Create a generic Kubernetes
Secret
resource.create_namespace
(namespace, *[, ignore_fail])Create a Kubernetes namespace.
Get the current context (the default Kubernetes cluster).
wait_for_rollout
(name, namespace)Wait for a Kubernetes rollout to complete.
Methods Documentation
- create_generic_secret(name, namespace, keys)#
Create a generic Kubernetes
Secret
resource.
- create_namespace(namespace, *, ignore_fail=False)#
Create a Kubernetes namespace.
- get_current_context()#
Get the current context (the default Kubernetes cluster).
- Returns:
Name of the current Kubernetes context.
- Return type:
- wait_for_rollout(name, namespace)#
Wait for a Kubernetes rollout to complete.