dry-teacher-74595
08/19/2021, 9:04 PMconst cluster = new aws.eks.Cluster("cluster", {...})
const namespace = new k8s.core.v1.Namespace("dev-namespace", {...})
const secret = new k8s.core.v1.Secret("dev-secret", {...})
this works when im devleoping locally but when my CI pipeline tries to run pulumi up
i get error like this
error: configured Kubernetes cluster is unreachable: unable to load Kubernetes client configuration from kubeconfig file: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
can someone point me to some docs on what this KUBERNETES_MASTER environment variable is? or how to pass the cluster credentials from new eks.Cluster()
to the new k8s.Namespace()
call?sparse-park-68967
08/19/2021, 9:21 PMbillowy-army-68599
sparse-park-68967
08/19/2021, 9:24 PMdry-teacher-74595
08/19/2021, 9:25 PM@pulumi/eks
and not @pulumi/aws
.eks what is the difference between the two?error: Error: It looks like you're using AWS profiles. Please specify this profile in providerCredentialOpts.
at new Cluster (/Users/peterzhang/workspace/formations/infra/node_modules/@pulumi/cluster.ts:1385:19)
however, ive already set the profile with pulumi config set
and also running the command like this
AWS_PROFILE=playground pulumi up
bored-table-20691
08/19/2021, 10:12 PM