# Is kubectl-fdb version must be the same with apple operator version?

**URL:** <https://forums.foundationdb.org/t/is-kubectl-fdb-version-must-be-the-same-with-apple-operator-version/3325>\
**Category:** Kubernetes Operator\
**Created:** [May 16, 2022, 3:40pm UTC](https://forums.foundationdb.org/t/is-kubectl-fdb-version-must-be-the-same-with-apple-operator-version/3325 "2022-05-16T15:40:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![liuyan](https://avatars.discourse-cdn.com/v4/letter/l/839c29/32.png) [@liuyan](https://forums.foundationdb.org/u/liuyan)\
**Post date:** [May 16, 2022, 3:40pm UTC](https://forums.foundationdb.org/t/is-kubectl-fdb-version-must-be-the-same-with-apple-operator-version/3325/1 "2022-05-16T15:40:02Z")

</div>

For example, my apple operator is on 0.48.0, could it work with kubectl-fdb v1.2?  
For now, I got the below error:

```auto
{"command":"/usr/local/bin/kubectl","args":"[/usr/local/bin/kubectl fdb fix-coordinator-ips -c mdm-foundationdb-ibm -n testoperator1]","fdbcluster":"testoperator1/mdm-foundationdb-ibm","name":"controllers.fdbcontroller.FdbCluster","timestamp":"2022-05-16T14:51:48.336Z","message":"Running command"}
{"output":"","fdbcluster":"testoperator1/mdm-foundationdb-ibm","name":"controllers.fdbcontroller.FdbCluster","timestamp":"2022-05-16T14:51:48.372Z","message":"Command output"}
{"output":"Error: exec format error
","fdbcluster":"testoperator1/mdm-foundationdb-ibm","name":"controllers.fdbcontroller.FdbCluster","timestamp":"2022-05-16T14:51:48.372Z","message":"Command stderr"}

```

Kindly share some insights. thank you.

---

<div class="post-metadata">

**Author:** ![johscheuer](https://avatars.discourse-cdn.com/v4/letter/j/f475e1/32.png) [@johscheuer](https://forums.foundationdb.org/u/johscheuer)\
**Post date:** [May 17, 2022, 6:27am UTC](https://forums.foundationdb.org/t/is-kubectl-fdb-version-must-be-the-same-with-apple-operator-version/3325/2 "2022-05-17T06:27:58Z")

</div>

The kubectl fdb plugin 1.+ should only be used with the operator 1.+ version in your case you should make use of an older version of the kubectl fdb plugin. The v0.51.1 version of the kubectl fdb plugin would be the last version that supports versions below 1.+ [Release Release v0.51.1 · FoundationDB/fdb-kubernetes-operator · GitHub](https://github.com/FoundationDB/fdb-kubernetes-operator/releases/tag/v0.51.1). In general the plugin should work for the same major releases but I would suggest to keep the operator and kubectl fdb plugin the same or at least close.

---

<div class="post-metadata">

**Author:** ![liuyan](https://avatars.discourse-cdn.com/v4/letter/l/839c29/32.png) [@liuyan](https://forums.foundationdb.org/u/liuyan)\
**Post date:** [May 17, 2022, 6:29am UTC](https://forums.foundationdb.org/t/is-kubectl-fdb-version-must-be-the-same-with-apple-operator-version/3325/3 "2022-05-17T06:29:31Z")

</div>

Thank you @johscheuer

---

<div class="post-metadata">

**Author:** ![johscheuer](https://avatars.discourse-cdn.com/v4/letter/j/f475e1/32.png) [@johscheuer](https://forums.foundationdb.org/u/johscheuer)\
**Post date:** [May 17, 2022, 6:35am UTC](https://forums.foundationdb.org/t/is-kubectl-fdb-version-must-be-the-same-with-apple-operator-version/3325/4 "2022-05-17T06:35:23Z")

</div>

But the provided error `Error: exec format error` is probably unrelated to the version of the kubectl fdb plugin and you should check if you actually downloaded the correct binary for the plugin (correct OS + architecture).

---

<div class="post-metadata">

**Author:** ![liuyan](https://avatars.discourse-cdn.com/v4/letter/l/839c29/32.png) [@liuyan](https://forums.foundationdb.org/u/liuyan)\
**Post date:** [May 17, 2022, 6:37am UTC](https://forums.foundationdb.org/t/is-kubectl-fdb-version-must-be-the-same-with-apple-operator-version/3325/5 "2022-05-17T06:37:32Z")

</div>

It sounds like it’s the version issue though, I tried the same 0.48.0 version of kubectl-fdb, and it works without this issue.
