kubernetes-ingress

Nginx ingress controller websocket support

淺唱寂寞╮ 提交于 2020-07-03 02:43:06
问题 Recently I've been working on a toy app using Kubernetes. Part of the app is a web server that needs to support WebSockets. Currently, I'm using port-forwarding to access the web server and everything works just fine. I'd like to switch to using an Ingress and IngressController to avoid using the port forwarding. Here is my Ingress config: apiVersion: extensions/v1beta1 kind: Ingress metadata: name: app-ingress annotations: nginx.ingress.kubernetes.io/rewrite-target: / nginx.ingress

IP Blacklisting in Istio

∥☆過路亽.° 提交于 2020-06-27 03:49:11
问题 The IP whitelisting/blacklisting example explained here https://kubernetes.io/docs/tutorials/services/source-ip/ uses source.ip attribute. However, in kubernetes (kubernetes cluster running on docker-for-desktop) source.ip returns the IP of kube-proxy. A suggested workaround is to use request.headers["X-Real-IP"] , however it doesn't seem to work and returns kube-proxy IP in docker-for-desktop in mac. https://github.com/istio/istio/issues/7328 mentions this issue and states: With a proxy that

Unable to add multiple Ingresses with same host on nginx-ingress

纵然是瞬间 提交于 2020-06-09 04:30:50
问题 I am trying to add multiple Ingresses which should share the same host. One Ingress should handle requests to www.example.de/some and the one all other requests. Here is a snipped with the Ingress configurations apiVersion: extensions/v1beta1 kind: Ingress metadata: name: some-ingress annotations: kubernetes.io/ingress.class: "nginx" spec: rules: - host: "www.example.de" http: paths: - path: "/some" backend: serviceName: some-svc servicePort: 8585 apiVersion: extensions/v1beta1 kind: Ingress

Kubernetes ALB ingress: How to expose multiple ports on ingress resource

耗尽温柔 提交于 2020-06-08 03:17:08
问题 I'm trying to find a solution for the problem that seems like something very common. I have a k8s cluster ip service which exposes two ports: 8088 and 60004 I would like to expose these same ports on ALB and not use path based routing This works for exposing one service on 8088 port: --- apiVersion: extensions/v1beta1 kind: Ingress metadata: name: myingress namespace: myns annotations: kubernetes.io/ingress.class: alb alb.ingress.kubernetes.io/healthcheck-path: /ping alb.ingress.kubernetes.io

Kubernetes ALB ingress: How to expose multiple ports on ingress resource

安稳与你 提交于 2020-06-08 03:16:16
问题 I'm trying to find a solution for the problem that seems like something very common. I have a k8s cluster ip service which exposes two ports: 8088 and 60004 I would like to expose these same ports on ALB and not use path based routing This works for exposing one service on 8088 port: --- apiVersion: extensions/v1beta1 kind: Ingress metadata: name: myingress namespace: myns annotations: kubernetes.io/ingress.class: alb alb.ingress.kubernetes.io/healthcheck-path: /ping alb.ingress.kubernetes.io

Unable to reach services via Azure Traffic Manager and Nginx Ingress on AKS

扶醉桌前 提交于 2020-06-01 05:08:15
问题 I have two AKS clusters as primary and secondary in two different regions. I want to use Azure traffic manager for the the Priority based endpoint monitoring and fail-over mechanism on the primary and secondary clusters. I got two services: A and B that routes at the relative path /service-a and /service-b respectively. I have nginx ingress controller on each cluster with PIP mapped to the custom host aks-primary.xyz.com and aks-secondary.xyz.com respectively. The services are reachable on

Kubernetes Cross Namespace Ingress Network

为君一笑 提交于 2020-05-25 05:11:50
问题 I have a simple ingress network, I want to access services at different namespaces, from this ingress network. How I can do this? My ingress network yaml file: apiVersion: extensions/v1beta1 kind: Ingress metadata: name: ingress spec: rules: - host: api.myhost.com http: paths: - backend: serviceName: bookapi-2 servicePort: 8080 path: /booking-service/ I've set the ExternalNames service type to the yaml file: apiVersion: v1 kind: Service metadata: name: bookapi-2 namespace: booking-namespace

Adding Nginx-Ingress/Certmanager as Dependency in Helm Charts

孤者浪人 提交于 2020-05-13 07:33:26
问题 I have a Kubernetes cluster(Azure) with nginx-ingress, certmanager and one application, and I was wondering if there's a way of making the whole system as one single package so if there's any problem with the cluster it'd be easier to spin up another one. My main idea is to make the manual configuration of nginx-ingress and certmanager automatic, but I'm not sure how it'd included in a helm chart, if possible. If not possible, is there a way(or tool) for minimising the manual configuration of

Adding Nginx-Ingress/Certmanager as Dependency in Helm Charts

自闭症网瘾萝莉.ら 提交于 2020-05-13 07:33:19
问题 I have a Kubernetes cluster(Azure) with nginx-ingress, certmanager and one application, and I was wondering if there's a way of making the whole system as one single package so if there's any problem with the cluster it'd be easier to spin up another one. My main idea is to make the manual configuration of nginx-ingress and certmanager automatic, but I'm not sure how it'd included in a helm chart, if possible. If not possible, is there a way(or tool) for minimising the manual configuration of

Adding Nginx-Ingress/Certmanager as Dependency in Helm Charts

陌路散爱 提交于 2020-05-13 07:31:20
问题 I have a Kubernetes cluster(Azure) with nginx-ingress, certmanager and one application, and I was wondering if there's a way of making the whole system as one single package so if there's any problem with the cluster it'd be easier to spin up another one. My main idea is to make the manual configuration of nginx-ingress and certmanager automatic, but I'm not sure how it'd included in a helm chart, if possible. If not possible, is there a way(or tool) for minimising the manual configuration of