square-car-84996
04/29/2022, 2:09 PMmelodic-policeman-1516
05/03/2022, 10:22 PMpulumi up
, the changeset includes running a helm upgrade due to the batch job. Is there a way to ignore changes to batch jobs that may be created as part of the helm release?polite-napkin-90098
05/05/2022, 7:47 PMbrash-mechanic-26159
05/06/2022, 4:36 PMfancy-spoon-46046
05/07/2022, 1:17 PMwhite-chef-55657
05/07/2022, 6:24 PMAdministratorAccess
policy
import * as pulumi from "@pulumi/pulumi";
import * as awsx from "@pulumi/awsx";
import * as aws from "@pulumi/aws";
import * as eks from "@pulumi/eks";
export const createCluster = (stackName: string) => {
const vpc = new awsx.ec2.Vpc(`${stackName}-eks-cluster`, {
numberOfAvailabilityZones: "all",
});
const rolesSSOAdmin = pulumi.output(aws.iam.getRoles({
nameRegex: ".*AWSReservedSSO_AWSAdministratorAccess.*",
}))
const cluster = new eks.Cluster(stackName, {
fargate: true,
vpcId: vpc.id,
createOidcProvider: true,
privateSubnetIds: vpc.privateSubnetIds,
publicSubnetIds: vpc.publicSubnetIds,
enabledClusterLogTypes: [
"api",
"audit",
"authenticator",
"controllerManager",
"scheduler",
],
roleMappings: [
{
groups: ["system:masters"],
roleArn: rolesSSOAdmin.arns[0],
username: "pulumi:admin-usr",
},
],
});
return cluster;
};
error:
eks:index:VpcCni (prod-vpc-cni):
error: Command failed: kubectl apply -f /var/folders/07/53v8pkz52xd_324b5n15b9l40000gn/T/tmp-369306DJMe7fe12yG.tmp
error: You must be logged in to the server (the server has asked for the client to provide credentials)
ideas?white-chef-55657
05/08/2022, 4:40 PMbored-monitor-99026
05/08/2022, 6:46 PMpulumi up
in a k8s cluster? i searched in the doc and slack, but couldn't find anything
i need to create a resource against a k8s service address but i can't do port forward
in this case. i'd like to run pulumi up
in cluster, specifically in a a cicd pipelinesquare-car-84996
05/09/2022, 2:52 PMKubeconfig user entry is using deprecated API version <http://client.authentication.k8s.io/v1alpha1|client.authentication.k8s.io/v1alpha1>. Run 'aws eks update-kubeconfig' to update.
I recently upgraded my local kubectl to 1.24, so i've had to upgrade my awscli to 2.6.3 (released in the past few days)future-refrigerator-88869
05/10/2022, 10:08 AMsquare-car-84996
05/10/2022, 1:46 PM@pulumi/eks
to 0.38, but my output kubeconfig is still showing v1alpha1... which then breaks everything downstream. I've added the unfor19/install-aws-cli-action
to ensure i've got the latest AWS cli version. Anyone else found a solution for github actions besides rolling back kubectl
to an old version?square-car-84996
05/10/2022, 2:48 PMwhite-chef-55657
05/11/2022, 2:27 PMpulumi:pulumi:Stack (infra-sandbox):
Warning: <http://apiextensions.k8s.io/v1beta1|apiextensions.k8s.io/v1beta1> CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use <http://apiextensions.k8s.io/v1|apiextensions.k8s.io/v1> CustomResourceDefinition
white-chef-55657
05/11/2022, 3:23 PMlively-helmet-97905
05/12/2022, 7:22 PMgetting credentials: exec plugin is configured to use API version <http://client.authentication.k8s.io/v1beta1|client.authentication.k8s.io/v1beta1>, plugin returned version <http://client.authentication.k8s.io/v1alpha1|client.authentication.k8s.io/v1alpha1>
Any walkaround of how to solve this ?dry-teacher-74595
05/16/2022, 7:13 PMquaint-eye-38036
05/17/2022, 5:15 AMkustomize
module in pulumi-python, trying to deploy from GitHub. How can I use transform
to add namespace
to all resources? Or is there a better workaround?purple-plumber-90981
05/17/2022, 2:02 PM<https://www.pulumi.com/registry/packages/kubernetes/api-docs/helm/v3/release/>
around development version which says
devel bool
Use chart development versions, too. Equivalent to version '>0.0.0-0'. If version is set, this is ignored.
i am looking at this because i want to deploy longhorn 1.3.0-rc1 to test it as a helm release.
the way this reads i can specify the version OR devel=true, but not both . . . is this right ? I know its not working for me to specify both, but i dont really understand the logic. the devel flag lets helm look at development versions in the helm repo as well as released versions. What is the point of having a devel flag if you cant specify WHICH devel version you want to deploy ???billowy-army-68599
dry-teacher-74595
05/18/2022, 6:08 PMdry-teacher-74595
05/18/2022, 10:39 PMskip-crds
flag, is there a way to pass this to the pulumi helm object?powerful-planet-88446
05/20/2022, 1:58 AMpowerful-planet-88446
05/20/2022, 1:58 AMpowerful-planet-88446
05/20/2022, 1:58 AMadorable-computer-41765
05/20/2022, 2:56 PMred-leather-22955
05/20/2022, 6:41 PM{
provider: cluster.provider,
}
as the third parameter(opts), I tried converting this to Python as:
opts=pulumi.ResourceOptions(provider=cluster.provider),
However my IDE complains about it being the wrong type (Output[Provider] instead of ProviderResource) and when running pulumi up
, I get:
ValueError: Attempted to register resource kubernetes:apps/v1:Deployment with a provider for '<pulumi.output.Output object at 0x7f695f68c5d0>'
error: an unhandled error occurred: Program exited with non-zero exit code: 1
Any idea of what I am doing wrong or how I can fix this?white-chef-55657
05/21/2022, 6:26 AMwhite-chef-55657
05/22/2022, 7:27 AMeks.Cluster
resource
ideas?fast-florist-41572
05/23/2022, 3:11 PMpulumi-eks
package does in golang but I appear to get an error. I'm trying to update the configmap for aws-auth
. In the nodejs/eks version it does this
const eksNodeAccess = new k8s.core.v1.ConfigMap(`${name}-nodeAccess`, {
apiVersion: "v1",
metadata: {
name: `aws-auth`,
namespace: "kube-system",
},
data: nodeAccessData,
}, { parent, provider: k8sProvider });
Which appears to work by actually altering the configmap. However in golang when I try do the same I get an error
_, err = corev1.NewConfigMap(ctx, "aws-auth", &corev1.ConfigMapArgs{
Metadata: &metav1.ObjectMetaArgs{
Name: pulumi.String("aws-auth"),
Namespace: pulumi.String("kube-system"),
},
Data: pulumi.StringMap{
"mapRoles": roleConfig,
},
}, pulumi.Provider(kubeProvider))
The error is
resource kube-system/aws-auth was not successfully created by the Kubernetes API server : configmaps "aws-auth" already exists
fast-florist-41572
05/23/2022, 3:12 PM