nginx-ingress

Kubernetes Nginx Ingress can connect to https pods?

让人想犯罪 __ 提交于 2021-02-11 15:37:32
问题 I have three pods with HTTPS servers inside. I used to acces them via NodePort services. Now I deployed a Nginx Ingress to have them all in one IP. I have noticed that the Nginx Ingress can't connect with an HTTPS server in a pod, but it connects perfectly if I change it to HTTP. How can I make the Ingress connect with HTTPS servers in pods? I have tried to configure a tls secret, and add it to the Ingress: apiVersion: extensions/v1beta1 kind: Ingress metadata: name: k8s-ingress annotations:

Debugging Kubernetes/GKE timeout issue while creating ingress with ingress-nginx

流过昼夜 提交于 2021-02-11 13:54:42
问题 Using ingress-nginx v0.30 in the GKE cluster has no issue creating the ingress using kubectl apply -f command. After upgrading to ingress-nginx v0.31.1 , the following error has been shown: Error from server (Timeout): error when creating "kubernetes/ingress.yaml": Timeout: request did not complete within requested timeout 30s Questions: How to debug the timeout of this request? There is no connection issue same ingress file works on v0.30 Stackdriver shows no clue Any way to increase the

websphere application server behind ingress redirects to dns:port

☆樱花仙子☆ 提交于 2021-02-11 13:19:44
问题 I am trying to run websphere behind ingress. I have successfully configured the ingress for it and I am able to access the console. The ip on which I am able to access the console is https://mydomain/ibm/console/logon.jsp Note: I have a domain , for which I created a A record. When I login into the console , I am redirected to https://mydomain:9043/ibm/console/ This page does not exist. If I explicitly run the URL https://dns/ibm/console/login.do?action=secure . My application works fine. Can

Reverse proxy a site with SNI support using kubernetes nginx-ingress

爷,独闯天下 提交于 2021-02-11 13:01:44
问题 I am setting a reverse proxy using kubernetes nginx-ingress, but I don't know how to add nginx parameters to the configuration, specifically: proxy_ssl_server_name. How do I set ingress parameters in yaml configurations? I already tried using the server-snippet annotation, but it seems like it's not adding the parameter to the nginx.conf file in the cluster pods. Here is the current code for the reverse proxy: kind: Service apiVersion: v1 metadata: name: formstack namespace: serves spec: type

External ip always <none> or <pending> in kubernetes

大城市里の小女人 提交于 2021-02-08 06:33:23
问题 Recently i started building my very own kubernetes cluster using a few Raspberry pi's. I have gotten to the point where i have a cluster up and running! Some background info on how i setup the cluster, i used this guide But now, when i want to deploy and expose an application i encounter some issues... Following the kubernetes tutorials i have made an deployment of nginx, this is running fine. when i do a port-forward i can see the default nginx page on my localhost. Now the tricky part,

Make links in response relative to new path

喜夏-厌秋 提交于 2021-02-08 04:09:29
问题 How do I redirect all my hrefs within my response to hit my new path. For e.g., my ingress file is apiVersion: extensions/v1beta1 kind: Ingress metadata: name: ingress-odin annotations: nginx.ingress.kubernetes.io/rewrite-target: /$1 spec: rules: - http: paths: - path: /odin/?(.*) backend: serviceName: flask-app-tutorial servicePort: 8080 When I visit the page at https://mysite/odin. It works and returns back the response: The HTML response is: <html> .. <body> <div> <a href="/v0/index">Home<

Make links in response relative to new path

佐手、 提交于 2021-02-08 04:07:16
问题 How do I redirect all my hrefs within my response to hit my new path. For e.g., my ingress file is apiVersion: extensions/v1beta1 kind: Ingress metadata: name: ingress-odin annotations: nginx.ingress.kubernetes.io/rewrite-target: /$1 spec: rules: - http: paths: - path: /odin/?(.*) backend: serviceName: flask-app-tutorial servicePort: 8080 When I visit the page at https://mysite/odin. It works and returns back the response: The HTML response is: <html> .. <body> <div> <a href="/v0/index">Home<

Make links in response relative to new path

时光毁灭记忆、已成空白 提交于 2021-02-08 04:05:21
问题 How do I redirect all my hrefs within my response to hit my new path. For e.g., my ingress file is apiVersion: extensions/v1beta1 kind: Ingress metadata: name: ingress-odin annotations: nginx.ingress.kubernetes.io/rewrite-target: /$1 spec: rules: - http: paths: - path: /odin/?(.*) backend: serviceName: flask-app-tutorial servicePort: 8080 When I visit the page at https://mysite/odin. It works and returns back the response: The HTML response is: <html> .. <body> <div> <a href="/v0/index">Home<

Make links in response relative to new path

青春壹個敷衍的年華 提交于 2021-02-08 04:05:08
问题 How do I redirect all my hrefs within my response to hit my new path. For e.g., my ingress file is apiVersion: extensions/v1beta1 kind: Ingress metadata: name: ingress-odin annotations: nginx.ingress.kubernetes.io/rewrite-target: /$1 spec: rules: - http: paths: - path: /odin/?(.*) backend: serviceName: flask-app-tutorial servicePort: 8080 When I visit the page at https://mysite/odin. It works and returns back the response: The HTML response is: <html> .. <body> <div> <a href="/v0/index">Home<

Trying to rewrite url for Grafana with Ingress

丶灬走出姿态 提交于 2021-02-07 11:10:21
问题 In my kubernetes cluster I would like to do monitoring so I installed grafana. I would like to access the grafana dashboard as http://example.com/monitoring , so I tried to include this in my ingress configuration apiVersion: extensions/v1beta1 kind: Ingress metadata: name: example-ingress annotations: nginx.ingress.kubernetes.io/rewrite-target: /$1 spec: rules: - host: example.com http: paths: - path: /monitoring/(.*) backend: serviceName: grafana servicePort: 80 The idea is to add other