What `provider` do I pass to a `k8s.apps.v1.Deploy...
# general
f
What
provider
do I pass to a
k8s.apps.v1.Deployment
when using Minikube?
c
are you accessing it from kubeconfig file?
w
If you run
kubectl config get-contexts
you should see something like
docker-desktop
. If you
kubectl config use-context docker-desktop
then by default, any Kubernetes resources created will use that context. If you want to be explicit instead, you can create a
k8s.Provider
and pass in its
context: "docker-desktop"
.
f
Got it - it uses whatever my current context is.
Is it typical for users to want to be able to deploy their infra to either a production k8s cluster or minikube?
c
yes
f
Is there an example for setting up such a thing?