{"action":"created","comment":{"url":"https://api.github.com/repos/clearlinux/clear-linux-documentation/pulls/comments/222563964","pull_request_review_id":161478951,"id":222563964,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMjU2Mzk2NA==","diff_hunk":"@@ -0,0 +1,303 @@\n+  .. _kubernetes:\n+\n+Run Kubernetes\\* on Clear Linux\n+###############################\n+\n+This tutorial describes how to install, configure, and run the \n+`Kubernetes container orchestration system`_ on |CL-ATTR| using different\n+container engines and runtimes.\n+\n+Kubernetes\\* is an open source system for automating deployment, scaling, and\n+management of containerized applications. It groups containers that make up an\n+application into logical units for easy management and discovery.\n+\n+Runc and kata-runtime are runtimes that adhere to :abbr:`OCI (Open Container\n+Initiative)` guidelines and work seamlessly with Kubernetes. `Kata\n+Containers`_\\* provide strong isolation for untrusted workloads or\n+multi-tenant scenarios.  Runc and Kata Containers can be allocated on a\n+per-pod basis so you can mix and match both on the same host to suit your needs.\n+\n+Prerequisites\n+*************\n+\n+This tutorial assumes you have installed |CL| updated to the latest release\n+on your host system. You can learn about the benefits for cloud orchestration\n+of having an up-to-date system in the `Software Update documentation`_.\n+For detailed instructions on installing |CL| on a bare metal system, follow\n+the :ref:`bare metal installation tutorial<bare-metal-install>`.\n+\n+Before you install any new packages, update |CL| with the following command:\n+\n+.. code-block:: bash\n+\n+   sudo swupd update\n+\n+Install Kubernetes and CRI runtimes\n+***********************************\n+\n+Kubernetes and a set of supported :abbr:`CRI (Container Runtime Interface)` \n+runtimes are included in the `cloud-native-basic`_ bundle. To install the \n+framework, enter the following command:\n+\n+.. code-block:: bash\n+\n+   sudo swupd bundle-add cloud-native-basic\n+\n+Configure Kubernetes\n+********************\n+\n+This tutorial uses the basic default Kubernetes configuration for simplicity.\n+You must define your Kubernetes configuration according to your specific\n+deployment and your security needs.\n+\n+#. Enable IP forwarding to avoid \"preflight check\" errors:\n+\n+   Create (or edit if it exists) the file :file:`/etc/sysctl.d/60-k8s.conf`\n+   and include the following line:\n+\n+   .. code-block:: bash\n+\n+      net.ipv4.ip_forward = 1\n+\n+   Apply the change:\n+\n+   .. code-block:: bash\n+\n+      sudo systemctl restart systemd-sysctl\n+\n+#. Enable kubelet service:\n+\n+   .. code-block:: bash\n+\n+      sudo systemctl enable kubelet.service\n+\n+#. Disable swap using one of the following methods, either:\n+\n+   a) Temporarily:\n+\n+      .. code-block:: bash\n+\n+         sudo swapoff -a\n+\n+      .. note::\n+\n+         Swap will be enabled at next reboot, causing failures in\n+         your cluster.\n+\n+   or:\n+\n+   b) Permanently:\n+\n+      Mask the swap partition:\n+\n+      .. code-block:: bash\n+\n+         sudo systemctl mask `sed -n -e 's#^/dev/\\([0-9a-z]*\\).*#dev-\\1.swap#p' /proc/swaps\n+         sudo swapoff -a\n+\n+      .. note::\n+\n+         On systems with limited resources, some performance degradation may\n+         be observed while swap is disabled.\n+\n+#. Configure the Kubernetes runtime interface, either:\n+\n+   a) Run Kubernetes with Docker + runc:\n+\n+      #. Enable docker.service:\n+\n+         .. code-block:: bash\n+\n+            sudo systemctl enable docker.service\n+\n+      #. Create (or edit if it exists) the file :file:`/etc/systemd/system/docker.service.d/51-runtime.conf` and include the following lines:\n+\n+         .. code-block:: bash\n+\n+            [Service]\n+            Environment=\"DOCKER_DEFAULT_RUNTIME=--default-runtime runc\"\n+\n+      #. Create (or edit if it exists) the file :file:`/etc/systemd/system/kubelet.service.d/10-kubeadm.conf` and include the following lines:\n+\n+         .. code-block:: bash\n+\n+            [Service]\n+            Environment=\"KUBELET_EXTRA_ARGS=\"\n+\n+      #. Restart services:\n+\n+         .. code-block:: bash\n+\n+            sudo systemctl daemon-reload\n+            sudo systemctl restart docker\n+            sudo systemctl restart kubelet\n+\n+   or:\n+\n+   b) Run Kubernetes with CRI-O + your desired runtime. You can use multiple\n+      runtimes with CRI-O, including *runc* and *kata-runtime*. To use\n+      CRI-O + *kata-runtime*:\n+\n+      #. Enable crio.service:\n+\n+         .. code-block:: bash\n+\n+            sudo systemctl enable crio.service\n+\n+      #. Restart services:\n+\n+         .. code-block:: bash\n+\n+            sudo systemctl restart crio\n+            sudo systemctl restart kubelet\n+","path":"source/clear-linux/tutorials/kubernetes.rst","position":153,"original_position":153,"commit_id":"2807437b32d9f13d7e001fac108df84a3895f491","original_commit_id":"0ba6beb49d19cceb3bc715364b073ff76ed19bd4","user":{"login":"mythi","id":1049565,"node_id":"MDQ6VXNlcjEwNDk1NjU=","avatar_url":"https://avatars2.githubusercontent.com/u/1049565?v=4","gravatar_id":"","url":"https://api.github.com/users/mythi","html_url":"https://github.com/mythi","followers_url":"https://api.github.com/users/mythi/followers","following_url":"https://api.github.com/users/mythi/following{/other_user}","gists_url":"https://api.github.com/users/mythi/gists{/gist_id}","starred_url":"https://api.github.com/users/mythi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mythi/subscriptions","organizations_url":"https://api.github.com/users/mythi/orgs","repos_url":"https://api.github.com/users/mythi/repos","events_url":"https://api.github.com/users/mythi/events{/privacy}","received_events_url":"https://api.github.com/users/mythi/received_events","type":"User","site_admin":false},"body":"There's also https://kubernetes.io/docs/setup/cri/ we could point ","created_at":"2018-10-04T07:35:38Z","updated_at":"2018-10-04T07:35:38Z","html_url":"https://github.com/clearlinux/clear-linux-documentation/pull/248#discussion_r222563964","pull_request_url":"https://api.github.com/repos/clearlinux/clear-linux-documentation/pulls/248","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/clearlinux/clear-linux-documentation/pulls/comments/222563964"},"html":{"href":"https://github.com/clearlinux/clear-linux-documentation/pull/248#discussion_r222563964"},"pull_request":{"href":"https://api.github.com/repos/clearlinux/clear-linux-documentation/pulls/248"}},"in_reply_to_id":222484442},"pull_request":{"url":"https://api.github.com/repos/clearlinux/clear-linux-documentation/pulls/248","id":219089356,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE5MDg5MzU2","html_url":"https://github.com/clearlinux/clear-linux-documentation/pull/248","diff_url":"https://github.com/clearlinux/clear-linux-documentation/pull/248.diff","patch_url":"https://github.com/clearlinux/clear-linux-documentation/pull/248.patch","issue_url":"https://api.github.com/repos/clearlinux/clear-linux-documentation/issues/248","number":248,"state":"open","locked":false,"title":"Kubernetes: Add tutorial","user":{"login":"joselamego","id":8462055,"node_id":"MDQ6VXNlcjg0NjIwNTU=","avatar_url":"https://avatars0.githubusercontent.com/u/8462055?v=4","gravatar_id":"","url":"https://api.github.com/users/joselamego","html_url":"https://github.com/joselamego","followers_url":"https://api.github.com/users/joselamego/followers","following_url":"https://api.github.com/users/joselamego/following{/other_user}","gists_url":"https://api.github.com/users/joselamego/gists{/gist_id}","starred_url":"https://api.github.com/users/joselamego/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joselamego/subscriptions","organizations_url":"https://api.github.com/users/joselamego/orgs","repos_url":"https://api.github.com/users/joselamego/repos","events_url":"https://api.github.com/users/joselamego/events{/privacy}","received_events_url":"https://api.github.com/users/joselamego/received_events","type":"User","site_admin":false},"body":"This tutorial describes how to install, configure, and run the Kubernetes\r\nsystem on Cler Linux OS using either the Kubernetes runtime interface\r\nCRI-O and kata-runtime or Docker* and runc.\r\n\r\nThis PR supersede #245 ","created_at":"2018-09-28T21:22:59Z","updated_at":"2018-10-04T07:35:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2b66f28177d0b0efab58faa5681a74e0efe89e3a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/clearlinux/clear-linux-documentation/pulls/248/commits","review_comments_url":"https://api.github.com/repos/clearlinux/clear-linux-documentation/pulls/248/comments","review_comment_url":"https://api.github.com/repos/clearlinux/clear-linux-documentation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/clearlinux/clear-linux-documentation/issues/248/comments","statuses_url":"https://api.github.com/repos/clearlinux/clear-linux-documentation/statuses/2807437b32d9f13d7e001fac108df84a3895f491","head":{"label":"joselamego:lamego/k8s","ref":"lamego/k8s","sha":"2807437b32d9f13d7e001fac108df84a3895f491","user":{"login":"joselamego","id":8462055,"node_id":"MDQ6VXNlcjg0NjIwNTU=","avatar_url":"https://avatars0.githubusercontent.com/u/8462055?v=4","gravatar_id":"","url":"https://api.github.com/users/joselamego","html_url":"https://github.com/joselamego","followers_url":"https://api.github.com/users/joselamego/followers","following_url":"https://api.github.com/users/joselamego/following{/other_user}","gists_url":"https://api.github.com/users/joselamego/gists{/gist_id}","starred_url":"https://api.github.com/users/joselamego/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joselamego/subscriptions","organizations_url":"https://api.github.com/users/joselamego/orgs","repos_url":"https://api.github.com/users/joselamego/repos","events_url":"https://api.github.com/users/joselamego/events{/privacy}","received_events_url":"https://api.github.com/users/joselamego/received_events","type":"User","site_admin":false},"repo":{"id":118935465,"node_id":"MDEwOlJlcG9zaXRvcnkxMTg5MzU0NjU=","name":"clear-linux-documentation","full_name":"joselamego/clear-linux-documentation","private":false,"owner":{"login":"joselamego","id":8462055,"node_id":"MDQ6VXNlcjg0NjIwNTU=","avatar_url":"https://avatars0.githubusercontent.com/u/8462055?v=4","gravatar_id":"","url":"https://api.github.com/users/joselamego","html_url":"https://github.com/joselamego","followers_url":"https://api.github.com/users/joselamego/followers","following_url":"https://api.github.com/users/joselamego/following{/other_user}","gists_url":"https://api.github.com/users/joselamego/gists{/gist_id}","starred_url":"https://api.github.com/users/joselamego/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joselamego/subscriptions","organizations_url":"https://api.github.com/users/joselamego/orgs","repos_url":"https://api.github.com/users/joselamego/repos","events_url":"https://api.github.com/users/joselamego/events{/privacy}","received_events_url":"https://api.github.com/users/joselamego/received_events","type":"User","site_admin":false},"html_url":"https://github.com/joselamego/clear-linux-documentation","description":"This repository contains the documentation source files for Clear Linux OS for Intel Architecture.","fork":true,"url":"https://api.github.com/repos/joselamego/clear-linux-documentation","forks_url":"https://api.github.com/repos/joselamego/clear-linux-documentation/forks","keys_url":"https://api.github.com/repos/joselamego/clear-linux-documentation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joselamego/clear-linux-documentation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joselamego/clear-linux-documentation/teams","hooks_url":"https://api.github.com/repos/joselamego/clear-linux-documentation/hooks","issue_events_url":"https://api.github.com/repos/joselamego/clear-linux-documentation/issues/events{/number}","events_url":"https://api.github.com/repos/joselamego/clear-linux-documentation/events","assignees_url":"https://api.github.com/repos/joselamego/clear-linux-documentation/assignees{/user}","branches_url":"https://api.github.com/repos/joselamego/clear-linux-documentation/branches{/branch}","tags_url":"https://api.github.com/repos/joselamego/clear-linux-documentation/tags","blobs_url":"https://api.github.com/repos/joselamego/clear-linux-documentation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joselamego/clear-linux-documentation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joselamego/clear-linux-documentation/git/refs{/sha}","trees_url":"https://api.github.com/repos/joselamego/clear-linux-documentation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joselamego/clear-linux-documentation/statuses/{sha}","languages_url":"https://api.github.com/repos/joselamego/clear-linux-documentation/languages","stargazers_url":"https://api.github.com/repos/joselamego/clear-linux-documentation/stargazers","contributors_url":"https://api.github.com/repos/joselamego/clear-linux-documentation/contributors","subscribers_url":"https://api.github.com/repos/joselamego/clear-linux-documentation/subscribers","subscription_url":"https://api.github.com/repos/joselamego/clear-linux-documentation/subscription","commits_url":"https://api.github.com/repos/joselamego/clear-linux-documentation/commits{/sha}","git_commits_url":"https://api.github.com/repos/joselamego/clear-linux-documentation/git/commits{/sha}","comments_url":"https://api.github.com/repos/joselamego/clear-linux-documentation/comments{/number}","issue_comment_url":"https://api.github.com/repos/joselamego/clear-linux-documentation/issues/comments{/number}","contents_url":"https://api.github.com/repos/joselamego/clear-linux-documentation/contents/{+path}","compare_url":"https://api.github.com/repos/joselamego/clear-linux-documentation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joselamego/clear-linux-documentation/merges","archive_url":"https://api.github.com/repos/joselamego/clear-linux-documentation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joselamego/clear-linux-documentation/downloads","issues_url":"https://api.github.com/repos/joselamego/clear-linux-documentation/issues{/number}","pulls_url":"https://api.github.com/repos/joselamego/clear-linux-documentation/pulls{/number}","milestones_url":"https://api.github.com/repos/joselamego/clear-linux-documentation/milestones{/number}","notifications_url":"https://api.github.com/repos/joselamego/clear-linux-documentation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joselamego/clear-linux-documentation/labels{/name}","releases_url":"https://api.github.com/repos/joselamego/clear-linux-documentation/releases{/id}","deployments_url":"https://api.github.com/repos/joselamego/clear-linux-documentation/deployments","created_at":"2018-01-25T16:06:45Z","updated_at":"2018-10-04T02:12:57Z","pushed_at":"2018-10-04T02:50:52Z","git_url":"git://github.com/joselamego/clear-linux-documentation.git","ssh_url":"git@github.com:joselamego/clear-linux-documentation.git","clone_url":"https://github.com/joselamego/clear-linux-documentation.git","svn_url":"https://github.com/joselamego/clear-linux-documentation","homepage":"https://www.clearlinux.org/documentation","size":49622,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"clearlinux:master","ref":"master","sha":"3d6f5b631ac7897e8c39e8b78f08298695bb2740","user":{"login":"clearlinux","id":12545216,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNTQ1MjE2","avatar_url":"https://avatars2.githubusercontent.com/u/12545216?v=4","gravatar_id":"","url":"https://api.github.com/users/clearlinux","html_url":"https://github.com/clearlinux","followers_url":"https://api.github.com/users/clearlinux/followers","following_url":"https://api.github.com/users/clearlinux/following{/other_user}","gists_url":"https://api.github.com/users/clearlinux/gists{/gist_id}","starred_url":"https://api.github.com/users/clearlinux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clearlinux/subscriptions","organizations_url":"https://api.github.com/users/clearlinux/orgs","repos_url":"https://api.github.com/users/clearlinux/repos","events_url":"https://api.github.com/users/clearlinux/events{/privacy}","received_events_url":"https://api.github.com/users/clearlinux/received_events","type":"Organization","site_admin":false},"repo":{"id":85125899,"node_id":"MDEwOlJlcG9zaXRvcnk4NTEyNTg5OQ==","name":"clear-linux-documentation","full_name":"clearlinux/clear-linux-documentation","private":false,"owner":{"login":"clearlinux","id":12545216,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNTQ1MjE2","avatar_url":"https://avatars2.githubusercontent.com/u/12545216?v=4","gravatar_id":"","url":"https://api.github.com/users/clearlinux","html_url":"https://github.com/clearlinux","followers_url":"https://api.github.com/users/clearlinux/followers","following_url":"https://api.github.com/users/clearlinux/following{/other_user}","gists_url":"https://api.github.com/users/clearlinux/gists{/gist_id}","starred_url":"https://api.github.com/users/clearlinux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clearlinux/subscriptions","organizations_url":"https://api.github.com/users/clearlinux/orgs","repos_url":"https://api.github.com/users/clearlinux/repos","events_url":"https://api.github.com/users/clearlinux/events{/privacy}","received_events_url":"https://api.github.com/users/clearlinux/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/clearlinux/clear-linux-documentation","description":"This repository contains the documentation source files for Clear Linux OS for Intel Architecture.","fork":false,"url":"https://api.github.com/repos/clearlinux/clear-linux-documentation","forks_url":"https://api.github.com/repos/clearlinux/clear-linux-documentation/forks","keys_url":"https://api.github.com/repos/clearlinux/clear-linux-documentation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/clearlinux/clear-linux-documentation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/clearlinux/clear-linux-documentation/teams","hooks_url":"https://api.github.com/repos/clearlinux/clear-linux-documentation/hooks","issue_events_url":"https://api.github.com/repos/clearlinux/clear-linux-documentation/issues/events{/number}","events_url":"https://api.github.com/repos/clearlinux/clear-linux-documentation/events","assignees_url":"https://api.github.com/repos/clearlinux/clear-linux-documentation/assignees{/user}","branches_url":"https://api.github.com/repos/clearlinux/clear-linux-documentation/branches{/branch}","tags_url":"https://api.github.com/repos/clearlinux/clear-linux-documentation/tags","blobs_url":"https://api.github.com/repos/clearlinux/clear-linux-documentation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/clearlinux/clear-linux-documentation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/clearlinux/clear-linux-documentation/git/refs{/sha}","trees_url":"https://api.github.com/repos/clearlinux/clear-linux-documentation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/clearlinux/clear-linux-documentation/statuses/{sha}","languages_url":"https://api.github.com/repos/clearlinux/clear-linux-documentation/languages","stargazers_url":"https://api.github.com/repos/clearlinux/clear-linux-documentation/stargazers","contributors_url":"https://api.github.com/repos/clearlinux/clear-linux-documentation/contributors","subscribers_url":"https://api.github.com/repos/clearlinux/clear-linux-documentation/subscribers","subscription_url":"https://api.github.com/repos/clearlinux/clear-linux-documentation/subscription","commits_url":"https://api.github.com/repos/clearlinux/clear-linux-documentation/commits{/sha}","git_commits_url":"https://api.github.com/repos/clearlinux/clear-linux-documentation/git/commits{/sha}","comments_url":"https://api.github.com/repos/clearlinux/clear-linux-documentation/comments{/number}","issue_comment_url":"https://api.github.com/repos/clearlinux/clear-linux-documentation/issues/comments{/number}","contents_url":"https://api.github.com/repos/clearlinux/clear-linux-documentation/contents/{+path}","compare_url":"https://api.github.com/repos/clearlinux/clear-linux-documentation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/clearlinux/clear-linux-documentation/merges","archive_url":"https://api.github.com/repos/clearlinux/clear-linux-documentation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/clearlinux/clear-linux-documentation/downloads","issues_url":"https://api.github.com/repos/clearlinux/clear-linux-documentation/issues{/number}","pulls_url":"https://api.github.com/repos/clearlinux/clear-linux-documentation/pulls{/number}","milestones_url":"https://api.github.com/repos/clearlinux/clear-linux-documentation/milestones{/number}","notifications_url":"https://api.github.com/repos/clearlinux/clear-linux-documentation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/clearlinux/clear-linux-documentation/labels{/name}","releases_url":"https://api.github.com/repos/clearlinux/clear-linux-documentation/releases{/id}","deployments_url":"https://api.github.com/repos/clearlinux/clear-linux-documentation/deployments","created_at":"2017-03-15T22:13:08Z","updated_at":"2018-10-03T22:12:32Z","pushed_at":"2018-10-04T03:15:24Z","git_url":"git://github.com/clearlinux/clear-linux-documentation.git","ssh_url":"git@github.com:clearlinux/clear-linux-documentation.git","clone_url":"https://github.com/clearlinux/clear-linux-documentation.git","svn_url":"https://github.com/clearlinux/clear-linux-documentation","homepage":"https://www.clearlinux.org/documentation","size":51880,"stargazers_count":13,"watchers_count":13,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":45,"mirror_url":null,"archived":false,"open_issues_count":6,"license":null,"forks":45,"open_issues":6,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/clearlinux/clear-linux-documentation/pulls/248"},"html":{"href":"https://github.com/clearlinux/clear-linux-documentation/pull/248"},"issue":{"href":"https://api.github.com/repos/clearlinux/clear-linux-documentation/issues/248"},"comments":{"href":"https://api.github.com/repos/clearlinux/clear-linux-documentation/issues/248/comments"},"review_comments":{"href":"https://api.github.com/repos/clearlinux/clear-linux-documentation/pulls/248/comments"},"review_comment":{"href":"https://api.github.com/repos/clearlinux/clear-linux-documentation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/clearlinux/clear-linux-documentation/pulls/248/commits"},"statuses":{"href":"https://api.github.com/repos/clearlinux/clear-linux-documentation/statuses/2807437b32d9f13d7e001fac108df84a3895f491"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"mythi"}}