https://pulumi.com logo
#aws
Title
# aws
a

astonishing-journalist-77684

01/18/2024, 6:50 PM
Posting here in case it's helpful for anyone else trying to deploy to EKS with fargate: https://github.com/pulumi/pulumi-eks/issues/1007
s

stale-answer-34162

01/18/2024, 7:29 PM
oh is this a good idea? I was thinking of try pulumi-operator to deploy Stacks into an EKS cluster via an EKS cluster but maybe Fargate is smarter? @stocky-restaurant-98004 suggestions?
a

astonishing-journalist-77684

01/18/2024, 7:48 PM
hi Andrew - relatively new to pulumi (and fargate fwiw) but my team has been using this approach until recently and we haven't found a way to get that working. The Pulumi AI also recommends this path but if you can send me documentation for a different approach, I'd be happy to try it out.
s

stale-answer-34162

01/18/2024, 7:51 PM
my original conception was to create an EKS cluster and only install the pulumi-operator in it. From there use CI/CD with github actions to define Stacks which include the application EKS cluster and child helm chart, etc, container image, so basically you encapsulate your kubernetes orchestration and production workloads as an object in pulumi-operator https://github.com/pulumi/pulumi-kubernetes-operator/blob/master/docs/create-stacks-using-pulumi-ts.md
a

astonishing-journalist-77684

01/18/2024, 7:52 PM
that wouldn't address how to configure fargate successfully
(which isn't kubernetes specific, it's an AWS technology for having on-demand worker nodes vs. statically provisioned EC2 based nodes)
s

stale-answer-34162

01/18/2024, 7:53 PM
I think this is really smart as the pulumi-operator will do CRUD on your workloads.
I concur it does not help with getting fargate spun up.
a

astonishing-journalist-77684

01/18/2024, 7:53 PM
which is what the issue I filed is in reference to 😅
b

billowy-army-68599

01/18/2024, 7:56 PM
fwiw, I wrote my own Pulumi package to manage EKS to work around all the bugs in pulumi-eks https://github.com/lbrlabs/pulumi-lbrlabs-eks
it creates components for fargate profiles, installs all the needed addons and some extra goodies like Karpenter
s

stale-answer-34162

01/18/2024, 7:57 PM
wow lots of good stuff in there
do you have a suggestion for helm releases? Latest version from pulumi is completely broken, I think I have to use a bash script.
ah I see this
Copy code
const wordpress = new kubernetes.helm.v3.Release(
  "wordpress",
  {
    chart: "wordpress",
    repositoryOpts: {
      repo: "<https://charts.bitnami.com/bitnami>",
    },
    values: {
      wordpressUsername: "lbrlabs",
      wordpressPassword: "correct-horse-battery-stable",
      wordpressEmail: "<mailto:mail@lbrlabs.com|mail@lbrlabs.com>",
      ingress: {
        enabled: true,
        ingressClassName: "external",
        hostname: "wordpress.aws.briggs.work",
        tls: true,
        annotations: {
          "<http://cert-manager.io/cluster-issuer|cert-manager.io/cluster-issuer>": "letsencrypt-prod",
          "<http://nginx.ingress.kubernetes.io/force-ssl-redirect|nginx.ingress.kubernetes.io/force-ssl-redirect>": "true",
        },
      },
    },
  },
  {
    provider: provider,
  }
);
export const kubeconfig = cluster.kubeconfig;
b

billowy-army-68599

01/18/2024, 7:59 PM
the version I have pinned works for me
m

mammoth-airline-91759

01/19/2024, 4:34 PM
@billowy-army-68599 this seems like a bug in a Pulumi-supported module, wouldn’t you agree?
b

billowy-army-68599

01/19/2024, 5:55 PM
yes, there’s quite a few - that package needs completely overhauling imo