Salman Khan
12/01/2025, 8:06 AMkapa.ai
12/01/2025, 8:07 AM-bash: kubectl: command not found means that the kubectl command-line tool is not installed or not available in your system's PATH. This is not an issue with your kubectl exec command itself, but rather with your environment setup. How to fix: 1. Install kubectl You need to install kubectl on your machine. Follow the official Kubernetes instructions for your operating system: [Install kubectl](https://kubernetes.io/docs/tasks/tools/) 2. Verify Installation After installing, verify that kubectl is available by running: kubectl version --client 3. Set up kubeconfig (if using abctl/kind) If you deployed Airbyte using abctl, you may need to export the kubeconfig for your local cluster: kind export kubeconfig -n airbyte-abctl Or, if you are using a different cluster, make sure your kubectl context is set correctly. 4. Retry your command Once kubectl is installed and configured, your command should work: kubectl exec -it -n airbyte-abctl airbyte-db-0 -- psql -U airbyte -d db-airbyte Summary: Your command is correct, but you need to install and configure kubectl first. For more details on interacting with Airbyte clusters using kubectl, see the documentation: [Using standard tools to interact with an Airbyte instance that was installed with abctl](https://docs.airbyte.com/platform/1.8/deploying-airbyte/troubleshoot-deploy#faq). If you need to install other required tools for Airbyte development or troubleshooting, refer to the prerequisites section: [Developing Locally - Prerequisites](https://docs.airbyte.com/platform/1.8/contributing-to-airbyte/developing-locally#prerequisites).