rhythmic-actor-14991
04/15/2021, 9:06 AM* 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
cuddly-dusk-95227
04/15/2021, 10:08 AMrhythmic-actor-14991
04/15/2021, 10:24 AMconst 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
);
cuddly-dusk-95227
04/15/2021, 10:36 AMcentral-http
healthy?rhythmic-actor-14991
04/16/2021, 3:54 AM