https://pulumi.com logo
m

mammoth-caravan-51104

08/31/2018, 2:20 PM
Hi, I'm new to k8s and thought it will be a good starting point to use pulumi to learn deployments. I'm stuck on a probably trivial issue while running example from the `simple-reproducible-kubernetes-deployments`:
Copy code
Previewing update of stack 'exposed-deployment'
Previewing changes:

     Type                 Name                                   Plan          Info
 +   pulumi:pulumi:Stack  exposed-deployment-exposed-deployment  create
 *   └─ global            global                                 no change     1 error

Diagnostics:
  global: global
    error: Unable to read kubectl config: invalid configuration: no configuration has been provided

error: an error occurred while advancing the preview
I'd appreciate pointing to the right path, thanks!
c

chilly-crayon-57653

08/31/2018, 3:43 PM
Hi Jarek ... what output comes from pulumi config?
I'm specifically wondering if you tried to set pulumi config set nginx:isMinikube true as part of your config
m

mammoth-caravan-51104

08/31/2018, 4:03 PM
Hi, in both cases, isMinikube true/false it's the same.
Copy code
error: Unable to read kubectl config: invalid configuration: no configuration has been provided
I suspect it might be something related to kubectl?
c

creamy-potato-29402

08/31/2018, 4:50 PM
@mammoth-caravan-51104 we use the same configuration files as kubectl. Did you set that up?
The file is called a kubeconfig file, and by default it lives in ~/.kube/config
m

mammoth-caravan-51104

08/31/2018, 5:00 PM
@creamy-potato-29402 right, i missed that. I'm on AWS, does it mean I need to setup EKS manually? I was hoping Pulumi handles that as well. Is it by design?
c

creamy-potato-29402

08/31/2018, 5:04 PM
@mammoth-caravan-51104 Pulumi is just designed works anywhere
kubectl
works, but if you don’t already have a cluster, here’s an app where we boot up EKS and then run a helm chart on top of it, in the same app: https://github.com/pulumi/examples/tree/master/aws-ts-eks
If you’re all set up with pulumi/node/AWS you can just run
pulumi up
and it should “just work”
m

mammoth-caravan-51104

08/31/2018, 5:06 PM
great, will try it out, thanks a lot!
2 Views