{"id":21187968,"url":"https://github.com/guyromb/k8s-tools","last_synced_at":"2025-03-14T20:23:57.150Z","repository":{"id":93688377,"uuid":"168690386","full_name":"guyromb/k8s-tools","owner":"guyromb","description":"Some useful k8s tools to simplify your life using old great bash ","archived":false,"fork":false,"pushed_at":"2019-03-26T14:54:59.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-21T13:09:07.434Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/guyromb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-01T11:52:34.000Z","updated_at":"2019-03-26T14:55:00.000Z","dependencies_parsed_at":"2023-04-23T10:18:10.911Z","dependency_job_id":null,"html_url":"https://github.com/guyromb/k8s-tools","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/guyromb%2Fk8s-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guyromb%2Fk8s-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guyromb%2Fk8s-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guyromb%2Fk8s-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guyromb","download_url":"https://codeload.github.com/guyromb/k8s-tools/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243640600,"owners_count":20323687,"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-11-20T18:41:54.598Z","updated_at":"2025-03-14T20:23:57.121Z","avatar_url":"https://github.com/guyromb.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OneFit K8s-tools (samples)\nDeploy:\nThis tool allows you to build Kustomize overlays with placeholders, deploy to google cloud, with status monitoring.\nWatch:\nThis tool allows you to watch local files and rsync it with remote K8s container.\n\n### Setup\n\n##### Install Google Cloud SDK\n```\ncurl https://sdk.cloud.google.com | bash\nexec -l $SHELL\ngcloud init\n```\n\n##### Install Kubernetes or enable Kubernetes via Docker Settings\n```\nbrew install kubernetes-cli\n```\n\n##### Install Envsubst\nWe use it for filling placeholders\n```\nbrew install gettext\n```\nFor MacOS it should be already installed, so need only to link:\n```\nbrew link --force gettext\n```\n\n##### Install Kustomize\nWe use it for reusability of K8s configurations\n```\nbrew install kustomize\n```\n\n##### Install fswatch\nWe use it for the watcher syncing files from local to remote k8s\n```\nbrew install fswatch\n```\n\n##### Install GNU-Core-Utils\nWe use it for timeout command (gtimeout for mac)\n```\nbrew install coreutils\n```\n\n\n### Deploy\nThe following command will generate a new environment in Google Cloud\n```\n./bin/k8s-deploy kubernetes/overlays/ENV/APP \\\n-n NAMESPACE \\\n-t CONTAINER_REGISTRY_TAG\n```\nAPP is the name of the overlay, \nENV is dev or production\nNAMESPACE can be your name (also in URL), \nand TAG is version (e.g. 1.0.0).\n\n##### Sync Watcher:\nOur current structure supports easy syncing between local dev files and remote cloud files.\nFor your convenience it is recommended to place it in your PATH:\n```\nexport PATH=$PATH:PATH/TO/CLOUD/REPO/BIN\n```\nTo make this permanent, add it to your ~/.bashrc or ~/.bash_profile and source it.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguyromb%2Fk8s-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguyromb%2Fk8s-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguyromb%2Fk8s-tools/lists"}