This message was deleted.
# ask-for-help
s
This message was deleted.
x
Thanks for your feedback, the ingress-class value in the network configmap must be a correct value, not the name of an environment variable
r
@Bo can you help for this question please?
b
@Xipeng Guan can you tell me why the Ingress is not working with AWS ALB? Or at least where can I find the Ingress manifest file for
yatai-deployment
so I can try to create it manually?
r
@Xipeng Guan Can I get in call with you or someone quickly? to understand how best to fix this problem? Thanks
x
@Boris Bibic @Rustem Salawat You can manually create an ingress with an ingressClass of alb to check if it can be assigned the address field correctly
@Rustem Salawat Sorry, I'm in the middle of China's National Day holiday and temporarily unavailable
👍 2
r
@Sean hi
x
@Boris Bibic @Rustem Salawat I just wrote a document on how to verify that the ingress class is working properly, and I thought it might help you. https://docs.bentoml.org/projects/yatai/en/latest/installation/yatai_deployment.html#verify-that-this-ingress-class-is-working-properly
❤️ 1
b
@Xipeng Guan thanks for the document. I can assure you that the Ingress Class is tested and is working. If you want I can show you the yaml file for test Ingress. The small issue is that I must add some annotations for this Ingress to be processed correctly by my IngressClass (alb).
Copy code
layers:
  network:
    ingressClass: alb
    ingressAnnotations:
      <http://alb.ingress.kubernetes.io/scheme|alb.ingress.kubernetes.io/scheme>: internal
      <http://alb.ingress.kubernetes.io/target-type|alb.ingress.kubernetes.io/target-type>: ip
This is something that I already done manually and changed the “network” ConfigMap as it is not parsed correctly by
yatai-deployment-default-domain
pods (json parsing problem)… Can you tell me how to set these Ingress annotations correctly using the docs you wrote?
x
@Boris Bibic Can you show me the contents of the network configmap? kubectl -n yatai-deployment get cm network -o yaml
b
Hi @Xipeng Guan, this is the current CM after I had to replace
[
with
{
inside the ingress-annotations data.
Copy code
apiVersion: v1
data:
  ingress-annotations: '{"<http://alb.ingress.kubernetes.io/scheme|alb.ingress.kubernetes.io/scheme>":"internal","<http://alb.ingress.kubernetes.io/target-type|alb.ingress.kubernetes.io/target-type>":"ip"}'
  ingress-class: alb
kind: ConfigMap
metadata:
  annotations:
    <http://meta.helm.sh/release-name|meta.helm.sh/release-name>: yatai-deployment
    <http://meta.helm.sh/release-namespace|meta.helm.sh/release-namespace>: yatai-deployment
  creationTimestamp: "2022-10-05T12:36:37Z"
  labels:
    <http://app.kubernetes.io/instance|app.kubernetes.io/instance>: yatai-deployment
    <http://app.kubernetes.io/managed-by|app.kubernetes.io/managed-by>: Helm
    <http://app.kubernetes.io/name|app.kubernetes.io/name>: yatai-deployment
    <http://app.kubernetes.io/version|app.kubernetes.io/version>: 1.0.0-a2
    <http://helm.sh/chart|helm.sh/chart>: yatai-deployment-1.0.0-a2
  name: network
  namespace: yatai-deployment
  resourceVersion: "4824238"
  uid: f84429ba-cd46-4621-a2a9-b710e92715a1