https://pulumi.com logo
#general
Title
# general
f

full-dress-10026

05/30/2019, 10:41 PM
What
provider
do I pass to a
k8s.apps.v1.Deployment
when using Minikube?
c

creamy-potato-29402

05/30/2019, 10:43 PM
are you accessing it from kubeconfig file?
w

white-balloon-205

05/30/2019, 10:43 PM
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

full-dress-10026

05/30/2019, 10:48 PM
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

creamy-potato-29402

05/30/2019, 10:52 PM
yes
f

full-dress-10026

05/30/2019, 10:52 PM
Is there an example for setting up such a thing?