def _CreatePod(self): """ Creates a POD (Docker container with optional volumes). """ create_rc_body = self._BuildPodBody() logging.info('About to create a pod with the following configuration:') logging.info(create_rc_body) kubernetes_helper.CreateResource(create_rc_body)
def _Create(self): """Creates the StorageClass.""" body = self._BuildBody() if not self._CheckStorageClassExists(): kubernetes_helper.CreateResource(body)
def _Create(self): """Creates the PVC.""" body = self._BuildBody() kubernetes_helper.CreateResource(body) self._WaitForPVCBoundCompletion()
def _CreatePod(self): """ Creates a POD (Docker container with optional volumes). """ create_rc_body = self._BuildPodBody() kubernetes_helper.CreateResource(create_rc_body)
def _Create(self): """Creates the PVC.""" body = self._BuildBody() kubernetes_helper.CreateResource(body)