{"id":16879967,"url":"https://github.com/aledbf/kubernetes-cluster-intel-nuc","last_synced_at":"2025-03-22T07:32:10.001Z","repository":{"id":149110247,"uuid":"47298854","full_name":"aledbf/kubernetes-cluster-intel-nuc","owner":"aledbf","description":"Kubernetes cluster running on Intel NUC","archived":false,"fork":false,"pushed_at":"2016-01-18T00:26:26.000Z","size":222,"stargazers_count":54,"open_issues_count":0,"forks_count":7,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-18T09:37:41.630Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aledbf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-03T01:17:53.000Z","updated_at":"2024-10-25T22:01:39.000Z","dependencies_parsed_at":"2023-04-18T08:25:00.262Z","dependency_job_id":null,"html_url":"https://github.com/aledbf/kubernetes-cluster-intel-nuc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aledbf%2Fkubernetes-cluster-intel-nuc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aledbf%2Fkubernetes-cluster-intel-nuc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aledbf%2Fkubernetes-cluster-intel-nuc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aledbf%2Fkubernetes-cluster-intel-nuc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aledbf","download_url":"https://codeload.github.com/aledbf/kubernetes-cluster-intel-nuc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244925175,"owners_count":20532873,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T15:56:44.483Z","updated_at":"2025-03-22T07:32:09.683Z","avatar_url":"https://github.com/aledbf.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kubernetes-cluster-intel-nuc\nKubernetes cluster running on Intel NUC\n\nBased on https://github.com/coreos/coreos-kubernetes\n\n## Why?\n\nI need a portable Cluster :P \n\n![Final result 1](screenshots/result1.jpg)\n![Final result 2](screenshots/result2.jpg)\n\n## Create configuration:\n\ncustomize network parameters and cluster size in `build-user-data.sh`\n```\n./build-user-data.sh\n```\n\n## CoreOS installation\n\nTo keep the installation process simple we use the provided iso file to create\n\nmount usb drive:\n\n```\nmount /dev/sdb1 /mnt\n```\n\ninstall CoreOS\n```\nwget https://raw.githubusercontent.com/coreos/init/master/bin/coreos-install\nchmod +x coreos-install\nsudo ./coreos-install -d /dev/sda -C stable -V 835.9.0 -c /mnt/user-data-\u003cnode ip\u003e\n```\n\nReboot\n\n## Configure kubectl\n\n```\nkubectl config set-cluster nuc --server=https://10.4.0.2:443 --certificate-authority=${PWD}/ssl/ca.pem\nkubectl config set-credentials nuc-admin --certificate-authority=${PWD}/ssl/ca.pem --client-key=${PWD}/ssl/admin-key.pem --client-certificate=${PWD}/ssl/admin.pem\nkubectl config set-context nuc --cluster=nuc --user=nuc-admin\nkubectl config use-context nuc\n```\n\n```\n$ kubectl get nodes\nNAME       LABELS                            STATUS    AGE\n10.4.0.2   kubernetes.io/hostname=10.4.0.2   Ready     3d\n10.4.0.3   kubernetes.io/hostname=10.4.0.3   Ready     3d\n10.4.0.4   kubernetes.io/hostname=10.4.0.4   Ready     1h\n10.4.0.5   kubernetes.io/hostname=10.4.0.5   Ready     1h\n```\n\n## Client certificate installation\n\nTo access the apiserver url (https://10.4.0.2) we need a client certificate. Without one we will see this error:\n```\n$ curl https://10.4.0.2/ -v\n*   Trying 10.4.0.2...\n* Connected to 10.4.0.2 (10.4.0.2) port 443 (#0)\n* WARNING: using IP address, SNI is being disabled by the OS.\n* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256\n* Server certificate: kube-controller\n* Server certificate: kube-ca\n\u003e GET / HTTP/1.1\n\u003e Host: 10.4.0.2\n\u003e User-Agent: curl/7.43.0\n\u003e Accept: */*\n\u003e\n\u003c HTTP/1.1 401 Unauthorized\n\u003c Content-Type: text/plain; charset=utf-8\n\u003c Date: Sun, 20 Dec 2015 22:42:52 GMT\n\u003c Content-Length: 13\n\u003c\nUnauthorized\n* Connection #0 to host 10.4.0.2 left intact\n```\n\n```\ncurl https://10.4.0.2/  -E ssl/worker.p12:\u003cyour password\u003e --cacert ssl/ca.pem\n{\n  \"paths\": [\n    \"/api\",\n    \"/api/v1\",\n    \"/apis\",\n    \"/apis/extensions\",\n    \"/apis/extensions/v1beta1\",\n    \"/healthz\",\n    \"/healthz/ping\",\n    \"/logs/\",\n    \"/metrics\",\n    \"/resetMetrics\",\n    \"/swagger-ui/\",\n    \"/swaggerapi/\",\n    \"/ui/\",\n    \"/version\"\n  ]\n}\n```\n\nTo fix this issue we need to install the generated certificate `worker.p12` and `ca.pem` located in the ssl directory.\n\n## Addon installation:\n```\nkubectl create -f manifests/kube-dns-rc.yaml\nkubectl create -f manifests/kube-dns-svc.yaml\nkubectl create -f manifests/kube-ui-rc.yaml\nkubectl create -f manifests/kube-ui-svc.yaml\n```\n\nNow we can access `kube-ui` located in `https://10.4.0.2/api/v1/proxy/namespaces/kube-system/services/kube-ui/#/dashboard/`\n\n![Image of kube-ui](screenshots/kube-ui.png)\n\n## TODO:\n- installation using TFTP (using a raspberry pi as server using https://github.com/pin/tftp)\n- no user intervention in installation\n- no internet connection for installation\n- \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faledbf%2Fkubernetes-cluster-intel-nuc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faledbf%2Fkubernetes-cluster-intel-nuc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faledbf%2Fkubernetes-cluster-intel-nuc/lists"}