{"action":"created","issue":{"url":"https://api.github.com/repos/kubic-project/caasp-services/issues/41","repository_url":"https://api.github.com/repos/kubic-project/caasp-services","labels_url":"https://api.github.com/repos/kubic-project/caasp-services/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/kubic-project/caasp-services/issues/41/comments","events_url":"https://api.github.com/repos/kubic-project/caasp-services/issues/41/events","html_url":"https://github.com/kubic-project/caasp-services/issues/41","id":314519198,"number":41,"title":"Portus nginx error","user":{"login":"YunSangJun","id":5904924,"avatar_url":"https://avatars1.githubusercontent.com/u/5904924?v=4","gravatar_id":"","url":"https://api.github.com/users/YunSangJun","html_url":"https://github.com/YunSangJun","followers_url":"https://api.github.com/users/YunSangJun/followers","following_url":"https://api.github.com/users/YunSangJun/following{/other_user}","gists_url":"https://api.github.com/users/YunSangJun/gists{/gist_id}","starred_url":"https://api.github.com/users/YunSangJun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YunSangJun/subscriptions","organizations_url":"https://api.github.com/users/YunSangJun/orgs","repos_url":"https://api.github.com/users/YunSangJun/repos","events_url":"https://api.github.com/users/YunSangJun/events{/privacy}","received_events_url":"https://api.github.com/users/YunSangJun/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-04-16T06:39:47Z","updated_at":"2018-04-24T21:06:47Z","closed_at":null,"author_association":"NONE","body":"## Problem\r\nThe following yaml is values file i used. \r\n[values.yaml.txt](https://github.com/kubic-project/caasp-services/files/1914041/values.yaml.txt)\r\n\r\n1. I got error message(HTTP 400) When i used service port as 80.\r\n```\r\n<values.yaml>\r\n  service:\r\n    port: 80\r\n\r\n<On my Browser>\r\nThe plain HTTP request was sent to HTTPS port\r\n\r\n<Pod Logs>\r\n$ kubectl logs -f portus-portus-nginx-75444987c5-7cqhd -n portus\r\n172.30.130.174 - - [16/Apr/2018:06:06:26 +0000] \"GET / HTTP/1.1\" 400 666 \"-\" \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.162 Safari/537.36\"\r\n...\r\n```\r\n\r\n2. I got error message(HTTP 502) When i used service port as 443. It looks like that Ingress request to nginx pod via 443 port. But nginx pod is listening only 80 port.\r\n```\r\n<values.yaml>\r\n  service:\r\n    port: 443\r\n\r\n<On my Browser>\r\n502 Bad Gateway\r\n\r\n<Ingress Logs>\r\n[error] 1454#1454: *44641 connect() failed (111: Connection refused) while connecting to upstream, client: 10.178.118.223, server: portus.ghama.io, request: \"GET /favicon.ico HTTP/1.1\", upstream: \"http://172.30.125.75:443/favicon.ico\", host: \"portus.ghama.io\", referrer: \"https://portus.ghama.io/\"\r\n...\r\n\r\n<Nginx pod logs>\r\n$ kubectl logs -f portus-portus-nginx-75444987c5-7cqhd -n portus\r\nnone\r\n\r\n<Nginx pod describe>\r\n$ kubectl describe pod portus-portus-nginx-cb75f6944-6n27d -n portus\r\nIP:             172.30.125.75\r\nContainers:\r\n  portus-portus-nginx:\r\n    Port:           443/TCP\r\n...\r\n\r\n<Nginx pod netstat>\r\nkubectl exec -it -n portus portus-portus-nginx-cb75f6944-6n27d sh\r\n/ # netstat -nltp\r\nActive Internet connections (only servers)\r\nProto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    \r\ntcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      1/nginx: master pro\r\n```\r\n\r\n\r\n## Environment\r\n-helm version : 2.8.1\r\n-portus Chart.yaml version : portus-0.1.2\r\n-kubernetes version : 1.8.8\r\n"},"comment":{"url":"https://api.github.com/repos/kubic-project/caasp-services/issues/comments/384080149","html_url":"https://github.com/kubic-project/caasp-services/issues/41#issuecomment-384080149","issue_url":"https://api.github.com/repos/kubic-project/caasp-services/issues/41","id":384080149,"user":{"login":"stefsuse","id":33298234,"avatar_url":"https://avatars1.githubusercontent.com/u/33298234?v=4","gravatar_id":"","url":"https://api.github.com/users/stefsuse","html_url":"https://github.com/stefsuse","followers_url":"https://api.github.com/users/stefsuse/followers","following_url":"https://api.github.com/users/stefsuse/following{/other_user}","gists_url":"https://api.github.com/users/stefsuse/gists{/gist_id}","starred_url":"https://api.github.com/users/stefsuse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefsuse/subscriptions","organizations_url":"https://api.github.com/users/stefsuse/orgs","repos_url":"https://api.github.com/users/stefsuse/repos","events_url":"https://api.github.com/users/stefsuse/events{/privacy}","received_events_url":"https://api.github.com/users/stefsuse/received_events","type":"User","site_admin":false},"created_at":"2018-04-24T21:06:47Z","updated_at":"2018-04-24T21:06:47Z","author_association":"NONE","body":"is this issue resolved?"}}
{"actor":{"display_login":"stefsuse"}}