Import a Kubernetes Context
After you have deployed HPE Machine Learning Data Management, the Pachyderm context is not created. Therefore, you need to manually create a new HPE Machine Learning Data Management context with the embedded current Kubernetes context and activate that context.
To import a Kubernetes context, complete the following steps:
-
Verify that the cluster was successfully deployed:
kubectl get pods
You should see a pod for
pachd
running (alongside etcd, pg-bouncer or postgres, console, depending on your installation).System Response:
NAME READY STATUS RESTARTS AGE console-6c989c8d56-ftxk7 1/1 Running 0 3d18h etcd-0 1/1 Running 0 3d18h pachd-f9fd5b6fc-8d774 1/1 Running 0 3d18h pg-bouncer-794d8f68f-sjbbh 1/1 Running 0 3d18h
-
Create a new HPE Machine Learning Data Management context with the embedded Kubernetes context:
pachctl config import-kube <new-pachyderm-context-name> -k `kubectl config current-context`
-
Verify that the context was successfully created and view the context parameters:
Example:
pachctl config get context <new-pachyderm-context-name>
System Response:
{ "source": "IMPORTED", "cluster_name": "minikube", "auth_info": "minikube", "namespace": "default" }
-
Activate the new HPE Machine Learning Data Management context:
pachctl config set active-context <new-pachyderm-context-name>
-
Verify that the new context has been activated:
pachctl config get active-context