full-dress-10026
06/03/2019, 4:58 PMpulumi up
in a stack that has an existing EKS cluster running. I received a bunch of these errors:
error: Preview failed: unable to read kubectl config: invalid configuration: no configuration has been provided
I thought Pulumi automatically creates the config file for connecting the the cluster. Do I need to explicitly provide it? Reading through https://pulumi.io/quickstart/aws/tutorial-eks/, it does not appear that you need to set a k8s config file.creamy-potato-29402
06/03/2019, 8:05 PMcreamy-potato-29402
06/03/2019, 8:05 PMstack export
to write the kubeconfig file to a place where we can pick it up automatically, or you need to use a first-class provider, as we do in the examples.creamy-potato-29402
06/03/2019, 8:05 PMfull-dress-10026
06/03/2019, 8:06 PMcreamy-potato-29402
06/03/2019, 8:06 PMconst k8sProvider = new k8s.Provider("k8s", {kubeconfig: cluster.kubeconfig.apply(JSON.stringify)});
const kafkaChart = new k8s.helm.v2.Chart("kafka", {
path: "../cp-helm-charts",
namespace: "kafka",
}, {providers: {kubernetes: k8sProvider}});
It’s the k8sProvider
here.creamy-potato-29402
06/03/2019, 8:07 PMfull-dress-10026
06/03/2019, 8:08 PMProvider
in my code. I pass eksCluster.provider
to all my k8s components.creamy-potato-29402
06/03/2019, 8:08 PMcreamy-potato-29402
06/03/2019, 8:09 PMcreamy-potato-29402
06/03/2019, 8:09 PMfull-dress-10026
06/03/2019, 8:09 PMcreamy-potato-29402
06/03/2019, 8:09 PMcreamy-potato-29402
06/03/2019, 8:09 PMcreamy-potato-29402
06/03/2019, 8:10 PMfull-dress-10026
06/03/2019, 8:14 PMkubernetes:core:Service (app-ions-service):
error: Plan apply failed: services "app-ions-service" already exists
Guessing I need to recreate the service for some reason?creamy-potato-29402
06/03/2019, 8:17 PMcreamy-potato-29402
06/03/2019, 8:17 PMfull-dress-10026
06/03/2019, 8:18 PMcreamy-potato-29402
06/03/2019, 8:18 PMfull-dress-10026
06/03/2019, 8:19 PM{provider: k8sProvider}
to an existing Service
, resulting in the above.creamy-potato-29402
06/03/2019, 8:20 PMcreamy-potato-29402
06/03/2019, 8:20 PMcreamy-potato-29402
06/03/2019, 8:21 PMfull-dress-10026
06/03/2019, 8:21 PMname
to the Deployment and let it recreate it.creamy-potato-29402
06/03/2019, 8:21 PMcreamy-potato-29402
06/03/2019, 8:21 PMcreamy-potato-29402
06/03/2019, 8:22 PMpulumi up
creamy-potato-29402
06/03/2019, 8:23 PMfull-dress-10026
06/03/2019, 8:23 PMprovider
?creamy-potato-29402
06/03/2019, 8:23 PMcreamy-potato-29402
06/03/2019, 8:24 PM