nginx-ingress

ingress routing api prefix issue

我们两清 提交于 2020-08-10 23:20:30
问题 paths: - backend: serviceName: booknotes-front-end-service servicePort: 80 path: / - backend: serviceName: booknotes-back-end-service servicePort: 3000 path: /api Here is a rules in my ingres-nginx resource . I try to direct all traffic which starts from /api to my back end service, which works properly, but if some route in my back end will be like /api/users it doesn't work , my back end send response not found , when I run it locally this route working properly. Also I've tried delete /api

Nginx Ingress: service “ingress-nginx-controller-admission” not found

你。 提交于 2020-08-04 03:08:13
问题 We created a kubernetes cluster for a customer about one year ago with two environments; staging and production separated in namespaces. We are currently developing the next version of the application and need an environment for this development work, so we've created a beta environment in its own namespace. This is a bare metal kubernetes cluster with MetalLB and and nginx-ingress. The nginx ingress controllers is installed with helm and the ingresses are created with the following manifest

Error on Websocket Implementation on Azure Kubernetes Cluster Not working

爷,独闯天下 提交于 2020-07-23 07:17:18
问题 I am trying to make the websocket service work on Azure Kubernetes Cluster on our organization environment. My existing environment also have REST api and Angular application working on ingress with ssl. But when I added the websocket service on the ingress it is not working. So, I tried to use Azure Free Subscription to first implement the same WITHOUT SSL. For my applications I enabled Http Routing and using the annotation addon-http-application-routing. I am getting below error. 'ws://40

Error on Websocket Implementation on Azure Kubernetes Cluster Not working

自作多情 提交于 2020-07-23 07:16:08
问题 I am trying to make the websocket service work on Azure Kubernetes Cluster on our organization environment. My existing environment also have REST api and Angular application working on ingress with ssl. But when I added the websocket service on the ingress it is not working. So, I tried to use Azure Free Subscription to first implement the same WITHOUT SSL. For my applications I enabled Http Routing and using the annotation addon-http-application-routing. I am getting below error. 'ws://40

Error on Websocket Implementation on Azure Kubernetes Cluster Not working

爷,独闯天下 提交于 2020-07-23 07:15:06
问题 I am trying to make the websocket service work on Azure Kubernetes Cluster on our organization environment. My existing environment also have REST api and Angular application working on ingress with ssl. But when I added the websocket service on the ingress it is not working. So, I tried to use Azure Free Subscription to first implement the same WITHOUT SSL. For my applications I enabled Http Routing and using the annotation addon-http-application-routing. I am getting below error. 'ws://40

Kubernetes Ingress non-root path 404 Not Found

我们两清 提交于 2020-07-17 10:29:45
问题 I have the following that config that works when I try <NodeIP>:30080 apiVersion: extensions/v1beta1 kind: Deployment metadata: name: app-deployment spec: replicas: 3 template: metadata: labels: name: app-node spec: containers: - name: app image: myregistry.net/repo/app:latest imagePullPolicy: Always ports: - containerPort: 8080 env: - name: NODE_ENV value: production --- apiVersion: v1 kind: Service metadata: name: app-service spec: selector: name: app-node ports: - protocol: TCP port: 80

Nginx Ingress Controller - Failed Calling Webhook

故事扮演 提交于 2020-07-09 12:15:31
问题 I set up a k8s cluster using kubeadm (v1.18) on an Ubuntu virtual machine. Now I need to add an Ingress Controller. I decided for nginx (but I'm open for other solutions). I installed it according to the docs, section "bare-metal": kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-0.31.1/deploy/static/provider/baremetal/deploy.yaml The installation seems fine to me: kubectl get all -n ingress-nginx NAME READY STATUS RESTARTS AGE pod/ingress-nginx-admission

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

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

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