Problem
Running the dkp create bootstrap
command [1] sets the kubeconfig to the machines default path [2]. In the event that there is an existing config which would not want to get overwritten or if the use of kube contexts [3] the option is to have the bootstrap cluster generate a file within the desired directory.
Solution
The CLI reference states that "Path to the kubeconfig for the management cluster. If unspecified, default discovery rules apply." in addition to this, it is possible to create a bootstrap cluster and also generate a file to use in operating the bootstrap cluster. You can do so by running:
dkp create bootstrap --kubeconfig bootstrap-cluster.conf
[1] https://docs.d2iq.com/dkp/latest/dkp-create-bootstrap
[2] https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/
[3] https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#context