prehistoric-toddler-40668
02/20/2023, 2:40 PMHelm release "cert-manager/cert-manager" was created, but failed to initialize completely. Use Helm CLI to investigate.: failed to become available within allocated timeout. Error: Helm Release cert-manager/cert-manager: the server could not find the requested resource
after retrying with pulumi up everything is fine and it deploys as shown in the picture. help anyone please? 🙂
*I tried using every flag possible - skipAwait, waitForJobs, timeout (respectively) and neither are workinggorgeous-minister-41131
02/21/2023, 11:57 PM$.Release.Revision
from helm, in Pulumi?brief-church-51632
02/22/2023, 5:06 PMlb_controller_chart = k8s.helm.v3.Chart(
"albctl",
k8s.helm.v3.ChartOpts(
chart="aws-load-balancer-controller",
fetch_opts=k8s.helm.v3.FetchOpts(
repo="<https://aws.github.io/eks-charts>"
),
namespace=alb_controller_sa_namespace,
values={
"region": "us-west-2",
"serviceAccount": {
"name": alb_controller_sa,
"create": False,
},
"vpcId": eks_cluster.eks_cluster.vpc_config.vpc_id.apply(lambda c: c),
"clusterName": eks_cluster.eks_cluster.name.apply(lambda c: c),
},
),
opts=pulumi.ResourceOptions(provider=eks_provider)
)
...
ingress = k8s.networking.v1.Ingress(
"myingress",
metadata=k8s.meta.v1.ObjectMetaArgs(
name="myingress",
annotations={
"<http://alb.ingress.kubernetes.io/target-type|alb.ingress.kubernetes.io/target-type>": "ip",
"<http://alb.ingress.kubernetes.io/listen-ports|alb.ingress.kubernetes.io/listen-ports>": "[{\"HTTP\": 80}]",
"<http://alb.ingress.kubernetes.io/scheme|alb.ingress.kubernetes.io/scheme>": "internet-facing",
"<http://alb.ingress.kubernetes.io/subnets|alb.ingress.kubernetes.io/subnets>": eks_vpc.public_subnet_ids.apply(lambda ids: ", ".join(ids)),
"<http://alb.ingress.kubernetes.io/backend-protocol|alb.ingress.kubernetes.io/backend-protocol>": "HTTP"
}
),
spec=k8s.networking.v1.IngressSpecArgs(
ingress_class_name="alb",
rules=[k8s.networking.v1.IngressRuleArgs(
host="*.helloworld.responsive.dev",
http=k8s.networking.v1.HTTPIngressRuleValueArgs(
paths=[k8s.networking.v1.HTTPIngressPathArgs(
backend=k8s.networking.v1.IngressBackendArgs(
service=k8s.networking.v1.IngressServiceBackendArgs(
name="helloworld",
port=k8s.networking.v1.ServiceBackendPortArgs(number=8081)
)
),
path="/",
path_type="Prefix"
)]
)
)]
),
opts=pulumi.ResourceOptions(
provider=eks_provider, depends_on=[lb_controller_chart])
)
At create time, I need the ingress to only get created after the deployment resource that is part of the helm chart is created. However, often times it does not wait and the ingress creation fails. Similarly, at delete time the deployment in the helm chart is deleted before the ingress, and the ingress deletion hangs. I thought setting depends_on
would cover me here, but it doesn't seem to be working.
My pulumi version is v3.55.0
pulumi_kubernetes is at pulumi_kubernetes-3.24.1
jolly-afternoon-98260
02/28/2023, 2:20 PMhundreds-lunch-5706
03/01/2023, 7:42 PMpulumi up
? I’d like to catch any quick pod crashes immediately after deploying changes.brash-hairdresser-60389
03/02/2023, 3:41 PMstrategy: {
rollingUpdate: { maxUnavailable: '75%', maxSurge: '75%' },
},
Pulumi deletes the resources, in this case, all the 3 replicas, and then recreates the 3 replicas. I also tried to use the parameter deleteBeforeReplace: false,
but nothing changed.
The problem is annoying in production since the alerting system always notifies of an issue because the liveness probe results in a HTTP 503 error.
Any advice?
Many thanks for considering my request.worried-vr-42710
03/02/2023, 9:33 PMpulumi_kubernetes.helm.v3.Release
object.
Inside Charts
is easy because is inside this object ChartOpts
How I can add it to ReleaseArgs
?
Thanks in advance!!victorious-exabyte-70545
03/07/2023, 7:13 PMaverage-table-75151
03/14/2023, 11:40 AMError: Invoke: Default provider for 'kubernetes' disabled. 'kubernetes:yaml:decode' must use an explicit provider.
although i am passing an explicit provider to all k8s yaml resources. So i found there was a bug where the provider didn't propagate to some yaml functionalities:
https://github.com/pulumi/pulumi-kubernetes/issues/1938
And that a fix was released in version 3.19.4
, however upgrading my provider to that version didn't solve the issue.
I verified providers are on the right version using pulumi export
and still the issue persist.
@gorgeous-egg-16927 as the one who fixed this bug, do you have any idea what i might be missing here?straight-arm-50771
03/14/2023, 2:01 PMhelm install <name> <oci://registry-1.docker.io/thethingsindustries/lorawan-stack-helm-chart>
Below gives error: failed to pull chart: could not find protocol handler for:
ttn-deploy:
type: kubernetes:<http://helm.sh/v3:Release|helm.sh/v3:Release>
properties:
chart: thethingsindustries/lorawan-stack-helm-chart
version: 0.0.3
name: lorawan-stack-helm-chart
namespace: things
repositoryOpts:
repo: <http://registry-1.docker.io|registry-1.docker.io>
I've tried setting repo to <oci://registry-1.docker.io/>
which throws error: failed to pull chart: looks like "<oci://registry-1.docker.io/>" is not a valid chart repository or cannot be reached: object required
chilly-plastic-14224
03/16/2023, 6:01 AMapp_labels = {"app": "nginx"}
deployment = Deployment(
"nginx",
spec=DeploymentSpecArgs(
selector=LabelSelectorArgs(match_labels=app_labels),
replicas=1,
template=PodTemplateSpecArgs(
metadata=ObjectMetaArgs(labels=app_labels),
spec=PodSpecArgs(containers=[ContainerArgs(name="nginx", image="nginx")])
),
)
)
most-lighter-95902
03/17/2023, 5:32 PMamazon-k8s-cni-init:v1.11.0, amazon-k8s-cni:v1.11.0
) - how can I update this version? When I re-up pulumi stack that has eks.Cluster
, it doesn’t seem to update the vpc-cni. Thanks in advance for your help!most-lighter-95902
03/17/2023, 5:35 PMmost-lighter-95902
03/18/2023, 2:59 PMversion
property in eks.Cluster
and eks.ManagedNodeGroup
? I’m just not sure if there will be a down time if I use pulumi since aws console allows for rolling updates optionmost-lighter-95902
03/20/2023, 2:15 PMclusterSecurityGroupTags
and nodeSecurityGroupTags
in eks.Cluster
? I’m using Karpenter and it required to have a tag in the cluster security groups and when I tried clusterSecurityGroupTags
, it created a new security group instead of adding tags to the default cluster security group?agreeable-window-77899
03/23/2023, 9:15 AMamazon-k8s-cni-init
container image from ECR. This is the exact error that is seen the pod
Failed to pull image "<http://602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon-k8s-cni-init:v1.11.0|602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon-k8s-cni-init:v1.11.0>": rpc error: code = Unknown desc = failed to pull and unpack image "<http://602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon-k8s-cni-init:v1.11.0|602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon-k8s-cni-init:v1.11.0>": failed to resolve reference "<http://602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon-k8s-cni-init:v1.11.0|602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon-k8s-cni-init:v1.11.0>": pulling from host <http://602401143452.dkr.ecr.us-west-2.amazonaws.com|602401143452.dkr.ecr.us-west-2.amazonaws.com> failed with status code [manifests v1.11.0]: 401 UnauthorizedWarningFailed25 minuteskubeletError: ErrImagePullNormalBackOff25 minuteskubeletBack-off pulling image "<http://602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon-k8s-cni-init:v1.11.0|602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon-k8s-cni-init:v1.11.0>"WarningFailed25 minuteskubeletError: ImagePullBackOff
I did not make any change to the template provided by Pulumi. Any leads on this is appreciated.stocky-sundown-45608
03/29/2023, 8:49 AMglamorous-australia-21342
04/04/2023, 3:50 PMcfg.requireSecret("secret1").apply(secret1=>{
cfg.requireSecret("secret2").apply(secret2=>{
const k8sSecret = new k8s.core.v1.Secret(`${k8sSecretName}-secret`, {
data: {
"access-id": secret1,
"secret-key": secret2,
},
},{ parent: k8sNamespace });
})
})
And getting the following error:
error: resource default/k8sSecretName-7e8f35be was not successfully created by the Kubernetes API server : Secret in version "v1" cannot be handled as a Secret: illegal base64 data at input byte 40
numerous-journalist-43638
04/05/2023, 3:22 PMcreation failed: no matches for kind "DeschedulerPolicy" in version "descheduler/v1alpha2"
And here is my config for the policy:
k8s.apiextensions.CustomResource(
"descheduler-policy",
kind="DeschedulerPolicy",
api_version="descheduler/v1alpha2",
metadata=k8s.meta.v1.ObjectMetaArgs(
namespace="kube-system",
),
spec={
"profiles": [
{
"name": "default",
"pluginConfig": [
{
"name": "DefaultEvictor"
},
{
"name": "HighNodeUtilization",
"args": {
"thresholds": {"cpu": 20, "memory": 30},
},
},
],
"plugins": {
"evict": {"enabled": ["DefaultEvictor"]},
"balance": {"enabled": ["HighNodeUtilization"]}
},
}
],
},
opts=pulumi.ResourceOptions(
provider=provider,
depends_on=[
cluster,
descheduler
],
parent=self,
),
)
glamorous-australia-21342
04/05/2023, 3:57 PMgorgeous-minister-41131
04/07/2023, 5:25 PMcreamy-guitar-8902
04/10/2023, 9:38 PMvictorious-noon-30991
04/11/2023, 1:40 PMflaky-laptop-31684
04/13/2023, 9:04 AMcrooked-laptop-67565
04/17/2023, 10:27 PMcluster
argument. I'm finding that the cluster
it expects is not compatible with the result of aws.eks.getCluster
, and I'm not sure what to do.
const cluster = await aws.eks.getCluster({
name: "my-cluster-name",
})
const nodeGroup = new eks.ManagedNodeGroup("node-group", {cluster: cluster})
I'm getting a Typescript error
Type 'GetClusterResult' is not assignable to type 'Cluster | CoreData'.
Type 'GetClusterResult' is missing the following properties from type 'CoreData': cluster, vpcId, subnetIds, clusterSecurityGroup, and 5 more
(using getClusterOutput
has the same problem)crooked-laptop-67565
04/17/2023, 10:27 PMaws.eks.getCluster
because the cluster is created in another project, where I am exporting its namecrooked-laptop-67565
04/17/2023, 10:30 PM@pulumi/eks
doesn't seem to have a way to get an existing cluster, and @pulumi/aws
doesn't seem to know about managed node groups?modern-electrician-38377
04/19/2023, 9:57 PMcrd2pulumi
tool, but can’t seem to find a dedicated channel on that topic. Please let me know if there’s somewhere better to post this q!
I’m trying to generate Typescript code for multiple CRDs from the same project. Specifically, I’m trying to generate code for Traefik’s IngressRoute
and Middleware
resources. Based on the usage described in the README, it seems like you can only point crd2pulumi
to a single file. My approach has been to generate code for each CRD yml file and then move the generated code into separate directories (see attached screenshot).
I’m able to import and use the generated classes (yay!). However I see the following error when importing two classes in the same Pulumi program:
TypeError: Invalid Version:
The printed stack trace that points me to a line that reads pulumi.runtime.registerResourceModule("crds", "<http://traefik.containo.us/v1alpha1|traefik.containo.us/v1alpha1>", _module)
.
It looks like the version in each package.json
is empty, but I’m finding it curious that this error only seems to occur when I try to import two different classes generated as described above. Wondering if there’s some sort of conflict since I’m registering the same resource module twice? Am I just missing how to generate code for multiple CRDs that belong in the same module?
Thanks in advance for any advice here!modern-electrician-38377
04/19/2023, 9:58 PMable-crayon-21563
04/21/2023, 7:17 PMCustomResource
object (or for an object generated by crd2pulumi)? Or, is there good default behavior, e.g. looking to a Ready
status condition?
If no, would the community be interested in a contribution? Any known workarounds?