https://pulumi.com logo
#kubernetes
Title
# kubernetes
s

sparse-spring-91820

10/11/2021, 10:47 AM
This is my ingress rule:
Copy code
const ingress = new k8s.networking.v1.Ingress('nginx-ingress-rule', {
    metadata: {
        namespace,
        annotations: { '<http://kubernetes.io/ingress.class|kubernetes.io/ingress.class>': 'nginx' },
    },
    spec: {
        rules: [
            {
                // host: '<http://apps.example.com|apps.example.com>',
                http: {
                    paths: [
                        {
                            path: '/',
                            pathType: 'Prefix',
                            backend: {
                              service: {
                                name: service.metadata.name,
                                port: {
                                  number: 3000
                                }
                              }
                            }
                        }
                    ]
                }
            }
        ]
    }
}, options);
everything works fine except that ingress hostname output is not outputed from the stack
4 Views