Background
We're currently using NetApps Trident PV (Persistent Volume) orchestrator to dynamically create volumes on our NetApp ONTAP clusters for Pods running within our Openshift/Kubernetes environment.
NOTE: See links in the references section if you're unfamiliar with Trident + NetApp.
1. Native Built CLI
Most people will use the pre-built binary but this will only run tridentctl
on Linux. Previously we'd been using the tridentctl
command natively on a Linux system to interact with the Trident controller running within our cluster.
However, I'd like a more native method to do this from macOS. Currently NetApp does not ship a prebuilt tridentctl
binary to do this.
2. Using Docker Image
Previously we'd been using the tridentctl
command natively on a Linux system to interact with the Trident controller running within our cluster.
Here's my Trident Pod:
$ oc -n trident get pods
NAME READY STATUS RESTARTS AGE
trident-6bdbdbc5dd-l8qtr 2/2 Running 14 6d
Remote shell into the Pod:
$ oc -n trident rsh trident-6bdbdbc5dd-l8qtr
Defaulting container name to trident-main.
Use 'oc describe pod/trident-6bdbdbc5dd-l8qtr -n trident' to see all of the containers in this pod.
/ #
Attempt to run tridentctl
:
/ # tridentctl get backend
Error: could not find the Kubernetes CLI
/ #
3. Other Methods
I explored my options in vain but did not care for any of these:
- Build Trident from source
- Construct a new Dockerfile based on the Trident Docker image
- Roll my own Docker image with
tridentctl
+kubectl