This message was deleted.
# typescript
s
This message was deleted.
g
Autonaming is the default for Pulumi, but the intent is to allow overrides as needed. This feature is tracked in https://github.com/pulumi/pulumi-kubernetesx/issues/52 In the meantime, you’d have to specify the Service the usual way if you need a specific name. Something like this should work:
Copy code
const svc = new kx.Service("nginx", {
    metadata: { name: "nginx" },
    spec: {
        ports: { http: 80 },
        selector: deployment.spec.selector.matchLabels,
        type: kx.types.ServiceType.LoadBalancer,
    }
})
👍 1