trident icon indicating copy to clipboard operation
trident copied to clipboard

import legacy volumes with kubectl instead of tridentctl?

Open vrmerlin opened this issue 4 years ago • 2 comments

We have a number of Kubernetes clusters and their configuration and setup is entirely "reproducible" through script and Helm chart deployments.

Trident is "so" close to being a part of that. I realize I will need to initially deploy Trident with the installer, but after that, I'd like to deploy any configurations with a custom Helm script (i.e. basic Kubernetes YAML files through kubectl).

I've deployed Trident 21.07.1 successfully.

I've developed a custom Helm chart that successfully deploys a backend, and a StorageClass.

But, I'd like that Helm chart to ALSO configure an imported volume for our existing NetAPP data. The documentation says that I run this command, giving it a PersistentVolumeClaim file:

~/trident-installer/tridentctl import volume data-archive-backend data-archive -f data-archive-pvc.yaml -n trident --no-manage

I can do that, and it works fine -- i can run my application in a Pod and see the mounted volume.

But, I REALLY want to deploy the data-archive-pvc.yaml file with kubectl instead of tridentctl, so I can simply added the file to my custom Helm chart. Then, with one command, I can deploy or undeploy the entire Trident configuration that I need.

You've switched TridentBackendConfig and StorageClass objects from tridentctl to kubectl. Will you be doing the same for import volumes? Or is that possible already, and I'm missing something?

vrmerlin avatar Aug 31 '21 17:08 vrmerlin

@vrmerlin Can I ask how did you manage to install the backend with kubectl? I tried with the TridentBackendConfig but it doesn't seem to be found when installing the Helm chart with the included CRD?

dc232 avatar Feb 11 '22 11:02 dc232

This would be a great feature! thumbs up from my end.

my kubernetes clusters are entirely configured through ArgoCD. Everything works splendid, but the 'tridentctl import' is indeed the missing puzzle piece

tgoetheyn avatar May 02 '22 14:05 tgoetheyn