{"action":"created","comment":{"url":"https://api.github.com/repos/gardener/documentation/pulls/comments/214621857","pull_request_review_id":151715953,"id":214621857,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNDYyMTg1Nw==","diff_hunk":"@@ -0,0 +1,66 @@\n+---\n+title:  Access a port of a pod locally\n+level: beginner\n+index: 100\n+type: tutorial-page\n+reviewer: Tieyan Fu\n+status: Reviewed\n+last_reviewed: 30.05.2018\n+category: Debugging\n+scope: app-developer\n+---\n+\n+\n+## Question\n+You deployed an application with a web UI or an internal endpoint in your Kubernetes (K8s) cluster.  How could I access \n+this endpoint **without an external load balancer** (e.g. Ingress)?\n+This tutorial presents two options:\n+\n+- Using Kubernetes port forward\n+- Using Kubernetes apiserver proxy\n+\n+Please note that the options described here are mostly for quick testing or troublshoot your application. For enabling access to your application for productive environment, please refer to [Access my service](2017-01-16-howto-service-access.md)\n+\n+## Solution 1: Using Kubernetes port forward\n+You could use the port forwarding functionality of `kubectl` to access the pods from your \n+local host __without involving a service__.\n+\n+To access any pod follow these steps:\n+-   Run `kubectl get pods`\n+-   Note down the name of the pod in question as `<your-pod-name>`\n+-   Run `kubectl port-forward <your-pod-name> <local-port>:<your-app-port>`\n+-   Run a web browser or curl locally and enter the URL `http(s)://localhost:<local-port>`\n+\n+In addition, `kubectl port-forward` allows using resource name, such as deployment name, service name, to select a matching pod to port forward.","path":"hugo/content/050-tutorials/content/howto/access_pod_from_local/_index.md","position":null,"original_position":34,"commit_id":"32cac0e29f935d53449d687cf004332510cb9783","original_commit_id":"f5e5105cd3db2a3c1df7135d89045d3fac7b7b8c","user":{"login":"freegroup","id":1155039,"node_id":"MDQ6VXNlcjExNTUwMzk=","avatar_url":"https://avatars1.githubusercontent.com/u/1155039?v=4","gravatar_id":"","url":"https://api.github.com/users/freegroup","html_url":"https://github.com/freegroup","followers_url":"https://api.github.com/users/freegroup/followers","following_url":"https://api.github.com/users/freegroup/following{/other_user}","gists_url":"https://api.github.com/users/freegroup/gists{/gist_id}","starred_url":"https://api.github.com/users/freegroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freegroup/subscriptions","organizations_url":"https://api.github.com/users/freegroup/orgs","repos_url":"https://api.github.com/users/freegroup/repos","events_url":"https://api.github.com/users/freegroup/events{/privacy}","received_events_url":"https://api.github.com/users/freegroup/received_events","type":"User","site_admin":false},"body":"32cac0e29f935d53449d687cf004332510cb9783","created_at":"2018-09-03T09:10:07Z","updated_at":"2018-09-03T09:10:08Z","html_url":"https://github.com/gardener/documentation/pull/21#discussion_r214621857","pull_request_url":"https://api.github.com/repos/gardener/documentation/pulls/21","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/gardener/documentation/pulls/comments/214621857"},"html":{"href":"https://github.com/gardener/documentation/pull/21#discussion_r214621857"},"pull_request":{"href":"https://api.github.com/repos/gardener/documentation/pulls/21"}},"in_reply_to_id":210252528},"pull_request":{"url":"https://api.github.com/repos/gardener/documentation/pulls/21","id":207292723,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA3MjkyNzIz","html_url":"https://github.com/gardener/documentation/pull/21","diff_url":"https://github.com/gardener/documentation/pull/21.diff","patch_url":"https://github.com/gardener/documentation/pull/21.patch","issue_url":"https://api.github.com/repos/gardener/documentation/issues/21","number":21,"state":"open","locked":false,"title":"refactor the old landingpage to the new site generation tool \"Hugo\". …","user":{"login":"freegroup","id":1155039,"node_id":"MDQ6VXNlcjExNTUwMzk=","avatar_url":"https://avatars1.githubusercontent.com/u/1155039?v=4","gravatar_id":"","url":"https://api.github.com/users/freegroup","html_url":"https://github.com/freegroup","followers_url":"https://api.github.com/users/freegroup/followers","following_url":"https://api.github.com/users/freegroup/following{/other_user}","gists_url":"https://api.github.com/users/freegroup/gists{/gist_id}","starred_url":"https://api.github.com/users/freegroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freegroup/subscriptions","organizations_url":"https://api.github.com/users/freegroup/orgs","repos_url":"https://api.github.com/users/freegroup/repos","events_url":"https://api.github.com/users/freegroup/events{/privacy}","received_events_url":"https://api.github.com/users/freegroup/received_events","type":"User","site_admin":false},"body":"…Add tutorials, components of the gardeneer and foreign links to gardener related pages","created_at":"2018-08-09T12:01:34Z","updated_at":"2018-09-03T09:10:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e23b07f3f94715f345557d8b50ccf9bc8d717a3d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/gardener/documentation/pulls/21/commits","review_comments_url":"https://api.github.com/repos/gardener/documentation/pulls/21/comments","review_comment_url":"https://api.github.com/repos/gardener/documentation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gardener/documentation/issues/21/comments","statuses_url":"https://api.github.com/repos/gardener/documentation/statuses/32cac0e29f935d53449d687cf004332510cb9783","head":{"label":"freegroup:master","ref":"master","sha":"32cac0e29f935d53449d687cf004332510cb9783","user":{"login":"freegroup","id":1155039,"node_id":"MDQ6VXNlcjExNTUwMzk=","avatar_url":"https://avatars1.githubusercontent.com/u/1155039?v=4","gravatar_id":"","url":"https://api.github.com/users/freegroup","html_url":"https://github.com/freegroup","followers_url":"https://api.github.com/users/freegroup/followers","following_url":"https://api.github.com/users/freegroup/following{/other_user}","gists_url":"https://api.github.com/users/freegroup/gists{/gist_id}","starred_url":"https://api.github.com/users/freegroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freegroup/subscriptions","organizations_url":"https://api.github.com/users/freegroup/orgs","repos_url":"https://api.github.com/users/freegroup/repos","events_url":"https://api.github.com/users/freegroup/events{/privacy}","received_events_url":"https://api.github.com/users/freegroup/received_events","type":"User","site_admin":false},"repo":{"id":144144629,"node_id":"MDEwOlJlcG9zaXRvcnkxNDQxNDQ2Mjk=","name":"documentation","full_name":"freegroup/documentation","owner":{"login":"freegroup","id":1155039,"node_id":"MDQ6VXNlcjExNTUwMzk=","avatar_url":"https://avatars1.githubusercontent.com/u/1155039?v=4","gravatar_id":"","url":"https://api.github.com/users/freegroup","html_url":"https://github.com/freegroup","followers_url":"https://api.github.com/users/freegroup/followers","following_url":"https://api.github.com/users/freegroup/following{/other_user}","gists_url":"https://api.github.com/users/freegroup/gists{/gist_id}","starred_url":"https://api.github.com/users/freegroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freegroup/subscriptions","organizations_url":"https://api.github.com/users/freegroup/orgs","repos_url":"https://api.github.com/users/freegroup/repos","events_url":"https://api.github.com/users/freegroup/events{/privacy}","received_events_url":"https://api.github.com/users/freegroup/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/freegroup/documentation","description":"Documentation and website","fork":true,"url":"https://api.github.com/repos/freegroup/documentation","forks_url":"https://api.github.com/repos/freegroup/documentation/forks","keys_url":"https://api.github.com/repos/freegroup/documentation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/freegroup/documentation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/freegroup/documentation/teams","hooks_url":"https://api.github.com/repos/freegroup/documentation/hooks","issue_events_url":"https://api.github.com/repos/freegroup/documentation/issues/events{/number}","events_url":"https://api.github.com/repos/freegroup/documentation/events","assignees_url":"https://api.github.com/repos/freegroup/documentation/assignees{/user}","branches_url":"https://api.github.com/repos/freegroup/documentation/branches{/branch}","tags_url":"https://api.github.com/repos/freegroup/documentation/tags","blobs_url":"https://api.github.com/repos/freegroup/documentation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/freegroup/documentation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/freegroup/documentation/git/refs{/sha}","trees_url":"https://api.github.com/repos/freegroup/documentation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/freegroup/documentation/statuses/{sha}","languages_url":"https://api.github.com/repos/freegroup/documentation/languages","stargazers_url":"https://api.github.com/repos/freegroup/documentation/stargazers","contributors_url":"https://api.github.com/repos/freegroup/documentation/contributors","subscribers_url":"https://api.github.com/repos/freegroup/documentation/subscribers","subscription_url":"https://api.github.com/repos/freegroup/documentation/subscription","commits_url":"https://api.github.com/repos/freegroup/documentation/commits{/sha}","git_commits_url":"https://api.github.com/repos/freegroup/documentation/git/commits{/sha}","comments_url":"https://api.github.com/repos/freegroup/documentation/comments{/number}","issue_comment_url":"https://api.github.com/repos/freegroup/documentation/issues/comments{/number}","contents_url":"https://api.github.com/repos/freegroup/documentation/contents/{+path}","compare_url":"https://api.github.com/repos/freegroup/documentation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/freegroup/documentation/merges","archive_url":"https://api.github.com/repos/freegroup/documentation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/freegroup/documentation/downloads","issues_url":"https://api.github.com/repos/freegroup/documentation/issues{/number}","pulls_url":"https://api.github.com/repos/freegroup/documentation/pulls{/number}","milestones_url":"https://api.github.com/repos/freegroup/documentation/milestones{/number}","notifications_url":"https://api.github.com/repos/freegroup/documentation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/freegroup/documentation/labels{/name}","releases_url":"https://api.github.com/repos/freegroup/documentation/releases{/id}","deployments_url":"https://api.github.com/repos/freegroup/documentation/deployments","created_at":"2018-08-09T11:39:41Z","updated_at":"2018-09-03T09:09:22Z","pushed_at":"2018-09-03T09:09:19Z","git_url":"git://github.com/freegroup/documentation.git","ssh_url":"git@github.com:freegroup/documentation.git","clone_url":"https://github.com/freegroup/documentation.git","svn_url":"https://github.com/freegroup/documentation","homepage":"","size":26202,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"gardener:master","ref":"master","sha":"22a04eba3413ec5b31d48074699b488e602d3469","user":{"login":"gardener","id":33683699,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMzNjgzNjk5","avatar_url":"https://avatars2.githubusercontent.com/u/33683699?v=4","gravatar_id":"","url":"https://api.github.com/users/gardener","html_url":"https://github.com/gardener","followers_url":"https://api.github.com/users/gardener/followers","following_url":"https://api.github.com/users/gardener/following{/other_user}","gists_url":"https://api.github.com/users/gardener/gists{/gist_id}","starred_url":"https://api.github.com/users/gardener/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gardener/subscriptions","organizations_url":"https://api.github.com/users/gardener/orgs","repos_url":"https://api.github.com/users/gardener/repos","events_url":"https://api.github.com/users/gardener/events{/privacy}","received_events_url":"https://api.github.com/users/gardener/received_events","type":"Organization","site_admin":false},"repo":{"id":113030845,"node_id":"MDEwOlJlcG9zaXRvcnkxMTMwMzA4NDU=","name":"documentation","full_name":"gardener/documentation","owner":{"login":"gardener","id":33683699,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMzNjgzNjk5","avatar_url":"https://avatars2.githubusercontent.com/u/33683699?v=4","gravatar_id":"","url":"https://api.github.com/users/gardener","html_url":"https://github.com/gardener","followers_url":"https://api.github.com/users/gardener/followers","following_url":"https://api.github.com/users/gardener/following{/other_user}","gists_url":"https://api.github.com/users/gardener/gists{/gist_id}","starred_url":"https://api.github.com/users/gardener/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gardener/subscriptions","organizations_url":"https://api.github.com/users/gardener/orgs","repos_url":"https://api.github.com/users/gardener/repos","events_url":"https://api.github.com/users/gardener/events{/privacy}","received_events_url":"https://api.github.com/users/gardener/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gardener/documentation","description":"Documentation and website","fork":false,"url":"https://api.github.com/repos/gardener/documentation","forks_url":"https://api.github.com/repos/gardener/documentation/forks","keys_url":"https://api.github.com/repos/gardener/documentation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gardener/documentation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gardener/documentation/teams","hooks_url":"https://api.github.com/repos/gardener/documentation/hooks","issue_events_url":"https://api.github.com/repos/gardener/documentation/issues/events{/number}","events_url":"https://api.github.com/repos/gardener/documentation/events","assignees_url":"https://api.github.com/repos/gardener/documentation/assignees{/user}","branches_url":"https://api.github.com/repos/gardener/documentation/branches{/branch}","tags_url":"https://api.github.com/repos/gardener/documentation/tags","blobs_url":"https://api.github.com/repos/gardener/documentation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gardener/documentation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gardener/documentation/git/refs{/sha}","trees_url":"https://api.github.com/repos/gardener/documentation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gardener/documentation/statuses/{sha}","languages_url":"https://api.github.com/repos/gardener/documentation/languages","stargazers_url":"https://api.github.com/repos/gardener/documentation/stargazers","contributors_url":"https://api.github.com/repos/gardener/documentation/contributors","subscribers_url":"https://api.github.com/repos/gardener/documentation/subscribers","subscription_url":"https://api.github.com/repos/gardener/documentation/subscription","commits_url":"https://api.github.com/repos/gardener/documentation/commits{/sha}","git_commits_url":"https://api.github.com/repos/gardener/documentation/git/commits{/sha}","comments_url":"https://api.github.com/repos/gardener/documentation/comments{/number}","issue_comment_url":"https://api.github.com/repos/gardener/documentation/issues/comments{/number}","contents_url":"https://api.github.com/repos/gardener/documentation/contents/{+path}","compare_url":"https://api.github.com/repos/gardener/documentation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gardener/documentation/merges","archive_url":"https://api.github.com/repos/gardener/documentation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gardener/documentation/downloads","issues_url":"https://api.github.com/repos/gardener/documentation/issues{/number}","pulls_url":"https://api.github.com/repos/gardener/documentation/pulls{/number}","milestones_url":"https://api.github.com/repos/gardener/documentation/milestones{/number}","notifications_url":"https://api.github.com/repos/gardener/documentation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gardener/documentation/labels{/name}","releases_url":"https://api.github.com/repos/gardener/documentation/releases{/id}","deployments_url":"https://api.github.com/repos/gardener/documentation/deployments","created_at":"2017-12-04T10:49:55Z","updated_at":"2018-08-11T07:43:07Z","pushed_at":"2018-09-03T09:09:22Z","git_url":"git://github.com/gardener/documentation.git","ssh_url":"git@github.com:gardener/documentation.git","clone_url":"https://github.com/gardener/documentation.git","svn_url":"https://github.com/gardener/documentation","homepage":"","size":4169,"stargazers_count":9,"watchers_count":9,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":4,"open_issues":4,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gardener/documentation/pulls/21"},"html":{"href":"https://github.com/gardener/documentation/pull/21"},"issue":{"href":"https://api.github.com/repos/gardener/documentation/issues/21"},"comments":{"href":"https://api.github.com/repos/gardener/documentation/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/gardener/documentation/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/gardener/documentation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gardener/documentation/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/gardener/documentation/statuses/32cac0e29f935d53449d687cf004332510cb9783"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"freegroup"}}