sparse-intern-71089
08/01/2023, 8:51 PMnarrow-river-17495
08/01/2023, 8:55 PMaws eks get-token ....
to get credentials, but I'm not positive - just know its failing with "the server has asked for the client to provide credentials"witty-candle-66007
08/03/2023, 10:29 PMnarrow-river-17495
08/03/2023, 10:34 PMaws eks get-token
, and as far as I can tell that should be using the AWS env vars injected by Deployments, but somewhere along the way something isn't working. I'm at a little bit of an impasse as far as how to debug it though, any pointers?narrow-river-17495
08/03/2023, 10:39 PMAWS_ACCESS_KEY_ID
, AWS_SECRET_ACCESS_KEY
, and AWS_SESSION_TOKEN
set (and no other means of authenticating to k8s that I can imagine), and as far as I can tell Deployments is able to auth to AWS just finewitty-candle-66007
08/03/2023, 10:39 PMnarrow-river-17495
08/03/2023, 10:40 PMget-token
invocationnarrow-river-17495
08/03/2023, 10:40 PMwitty-candle-66007
08/03/2023, 10:46 PMnarrow-river-17495
08/03/2023, 10:47 PMwitty-candle-66007
08/03/2023, 11:39 PMEKS-generated kubeconfig
can you clarify what you mean by that?
How are you getting the kubeconfig in your code?narrow-river-17495
08/03/2023, 11:42 PMcluster, err := eks.NewCluster(ctx, "platform-eks", &eks.ClusterArgs{
// Omitted a bunch of junk here
})
if err != nil {
return nil, err
}
eksProvider, err := kubernetes.NewProvider(ctx, "platform-eks-provider", &kubernetes.ProviderArgs{
Kubeconfig: cluster.KubeconfigJson,
})
if err != nil {
return err
}
narrow-river-17495
08/03/2023, 11:43 PMwitty-candle-66007
08/03/2023, 11:43 PMwitty-candle-66007
08/03/2023, 11:44 PMnarrow-river-17495
08/03/2023, 11:44 PM"<http://github.com/pulumi/pulumi-eks/sdk/go/eks|github.com/pulumi/pulumi-eks/sdk/go/eks>"
witty-candle-66007
08/03/2023, 11:44 PMwitty-candle-66007
08/03/2023, 11:46 PMnarrow-river-17495
08/03/2023, 11:46 PMwitty-candle-66007
08/03/2023, 11:46 PMwitty-candle-66007
08/04/2023, 2:38 AMnarrow-river-17495
08/04/2023, 2:44 PM<http://github.com/pulumi/pulumi-eks/sdk|github.com/pulumi/pulumi-eks/sdk> v1.0.2
and <http://github.com/pulumi/pulumi-aws/sdk/v5|github.com/pulumi/pulumi-aws/sdk/v5> v5.42.0
witty-candle-66007
08/07/2023, 1:20 PMpulumi up
and the OIDC used in Pulumi deployments. In a nutshell, the kubeconfig that is generated on initial deployment on my command line is not able to be used by deployments since the credentials are different.
I haven’t tested it yet, but leveraging the ProviderCredentialOpts property as per this github issue comment, https://github.com/pulumi/pulumi-eks/issues/669#issuecomment-1429190235property should work.