:wave: Hello, team! I just stared an EKS cluster, ...
# getting-started
b
👋 Hello, team! I just stared an EKS cluster, following https://github.com/pulumi/pulumi-eks/blob/master/examples/managed-nodegroups/index.ts I would like to install a nginx ingress controller, is there an example? Do I need to use helm myself?
g
You should be able to use the kubernetes provider to modify your cluster after it is created. https://www.pulumi.com/registry/packages/kubernetes/how-to-guides/
b
It has only something like
Deploy NGINX to a Kubernetes Cluster.
🤨 But I need to install ingress, so that I can assign host name to my services.
g
You mentioned installing the controller using Helm. There are also examples for installing Helm charts: https://www.pulumi.com/registry/packages/kubernetes/how-to-guides/wordpress-chart/
https://www.pulumi.com/registry/packages/kubernetes/api-docs/helm/v3/chart/ This shows how to use that resource in your language of choice
b
Copy code
import * as k8s from "@pulumi/kubernetes";

const nginxIngress = new k8s.helm.v3.Chart("nginx-ingress", {
    chart: "nginx-ingress",
    version: "1.24.4",
    namespace: "test-namespace",
    fetchOpts:{
        repo: "<https://charts.helm.sh/stable>",
    },
});
How do I specify which EKS cluster to install?
g
You set the
kubernetes:context
config value https://www.pulumi.com/registry/packages/kubernetes/installation-configuration/ In your case, if you want this all in one pulumi program, I suspect you’d set this in your program, after creating the cluster.
👍 1