Kubernetes入口:不创建LB? [英] Kubernetes ingress: Not creating an LB?

查看:159
本文介绍了Kubernetes入口:不创建LB?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个EKS集群.我们想要 -一个LB,它将重定向到群集内的多个名称空间, -避免使用针对一项服务的一个负载平衡器"的入口.我想按名称空间剪切它.

I have an EKS cluster. We want - One LB that will redirect to multiple namespace inside the cluster, - Ingress to avoid the "one load balancer for one service". I want to cut it by namespace.

我一直在阅读一些文档,但似乎无法绕开它.我有这个Yaml,据我所知,它将创建LB和入口规则.

I have been reading a bit of documentation but I can't seem to wrap my head around it. I have this yaml, which I understood would create a LB and the ingress rules.

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: simple-fanout-example
  namespace : default
  annotations:
    kubernetes.io/ingress.class: nginx
    nginx.ingress.kubernetes.io/rewrite-target: /
spec:
  rules:
  - host: domain.com
    http:
      paths:
      - path: /blabla
        backend:
          serviceName: blabla
          servicePort: 8000
      - path: /bleble
        backend:
          serviceName: bleble
          servicePort: 8000

此操作成功创建了入口,但是...什么都没有发生?

This create successfully the ingress but... Nothing else happens?

我不确定自己缺少什么,真的会感谢您的帮助.谢谢!

I'm unsure what I'm missing, would really appreciate some help. Thamks!

推荐答案

您是否首先部署了nginx入口部署? 例子:

Have you deployed nginx ingress deployment first ? example :

helm install stable/nginx-ingress --namespace kube-system

参考

这篇关于Kubernetes入口:不创建LB?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆