def run_in_pod(self, namespace="<STR_LIT:default>"):
core_api = get_core_api()<EOL>image_data = self.get_metadata()<EOL>pod = Pod.create(image_data)<EOL>try:<EOL><INDENT>pod_instance = core_api.create_namespaced_pod(namespace=namespace, body=pod)<EOL><DEDENT>except ApiException as e:<EOL><INDENT>raise ConuException("<STR_LIT>" % e)<EOL><DEDENT>logger.info(<EOL>"<STR_LIT>" % (pod_instance.metadata.name, namespace))<EOL>return Pod(name=pod_instance.metadata.name,<EOL>namespace=pod_instance.metadata.namespace,<EOL>spec=pod_instance.spec)<EOL>
run image inside Kubernetes Pod
:param namespace: str, name of namespace where pod will be created
:return: Pod instance