https://pulumi.com logo
Title
r

rhythmic-actor-14991

04/15/2021, 9:06 AM
hi, I use pulumi install ingress on aws eks, but the pulumi always tells me:
* the Kubernetes API server reported that "yyy/xx-ingress" failed to fully initialize or become live: Resource operation was cancelled for "xx-ingress"
        * Ingress has at least one rule that does not target any Service. Field '.spec.rules[].http.paths[].backend.serviceName' may not match any active Service
I noticed the service is created and the alb is ready to serve.
c

cuddly-dusk-95227

04/15/2021, 10:08 AM
Can you get a copy of the yaml that’s being applied. Based on the error there’s a rule that doesn’t specify a backend servicename
r

rhythmic-actor-14991

04/15/2021, 10:24 AM
const centralIngress = new k8s.extensions.v1beta1.Ingress(`central-ingress`, {
    metadata: {
        name: `central-ingress`,
        namespace: project,
        annotations: {
            "<http://alb.ingress.kubernetes.io/certificate-arn|alb.ingress.kubernetes.io/certificate-arn>": certificateValidation.certificateArn.apply(args => `${args}`),
            "<http://alb.ingress.kubernetes.io/wafv2-acl-arn|alb.ingress.kubernetes.io/wafv2-acl-arn>": dbaasWebAcl.arn,
            "<http://alb.ingress.kubernetes.io/scheme|alb.ingress.kubernetes.io/scheme>": "internet-facing",
            "<http://alb.ingress.kubernetes.io/listen-ports|alb.ingress.kubernetes.io/listen-ports>": '[{"HTTP": 80}, {"HTTPS":443}]',
            "<http://kubernetes.io/ingress.class|kubernetes.io/ingress.class>": "alb",
            "<http://alb.ingress.kubernetes.io/healthcheck-path|alb.ingress.kubernetes.io/healthcheck-path>": "/healthz",
        },
    },
    spec: {
        rules: [
            {
                host: backendDomain,
                http: {
                    paths: [
                        {
                            backend: {
                                serviceName: "central-http",
                                servicePort: 11000,
                            },
                            path: "/*",
                        },
                    ]
                }
            }
        ],
    }
}, {dependsOn: [centralService]});
// const centralIngress = k8s.extensions.v1beta1.Ingress.get("central-ingress", `${namespace}/central-ingress`)

const centralAlbAddress = centralIngress.status.apply(
    (status) => status.loadBalancer.ingress[0].hostname
);
the service is installed by helm.
@cuddly-dusk-95227 the service is created by helm
c

cuddly-dusk-95227

04/15/2021, 10:36 AM
is svc
central-http
healthy?
r

rhythmic-actor-14991

04/16/2021, 3:54 AM
central-http NodePort 172.20.173.93 <none> 11000:31815/TCP 18h
I thought it is healthy
@cuddly-dusk-95227
hello