class_docstr: An implementation of data store which uses NFS for storing policy checkpoints when using Coach in distributed mode.
  The policy checkpoints are written by the trainer and read by the rollout worker.
class_docstr_tok: ["An","implementation","of","data","store","which","uses","NFS","for","storing","policy","checkpoints","when","using","Coach","in","distributed","mode",".","The","policy","checkpoints","are","written","by","the","trainer","and","read","by","the","rollout","worker","."]
code: def undeploy_k8s_nfs(self) -> bool:
      from kubernetes import client as k8sclient
  
      del_options = k8sclient.V1DeleteOptions()
  
      k8s_apps_v1_api_client = k8sclient.AppsV1Api()
      try:
          k8s_apps_v1_api_client.delete_namespaced_deployment(
              self.params.name, self.params.namespace, del_options
          )
      except k8sclient.rest.ApiException as e:
          screen.print(
              "Got exception: %s\n while deleting nfs-server", e
          )
          return False
  
      k8s_core_v1_api_client = k8sclient.CoreV1Api()
      try:
          k8s_core_v1_api_client.delete_namespaced_service(
              self.params.svc_name, self.params.namespace, del_options
          )
      except k8sclient.rest.ApiException as e:
          screen.print(
              "Got exception: %s\n while deleting the service for nfs-server",
              e,
          )
          return False
  
      return True
  
file_path: coach/rl_coach/data_stores/nfs_data_store.py
imports: import uuid
  from rl_coach.data_stores.data_store import DataStoreParameters
  from rl_coach.data_stores.checkpoint_data_store import CheckpointDataStore
  from rl_coach.logger import screen
label_desc: Use image node_id 9 for calling the NFSDataStore obj's underlying member method code with example usage: obj.undeploy_k8s_nfs() and returns: True, False, False