{"id":17951815,"url":"https://github.com/francoposa/learn-infra-ops","last_synced_at":"2025-10-08T04:08:10.556Z","repository":{"id":132691542,"uuid":"272738322","full_name":"francoposa/learn-infra-ops","owner":"francoposa","description":"Learning infrastructure \u0026 operations. Ansible, Docker, Kubernetes, and Helm on Digital Ocean VMs.","archived":false,"fork":false,"pushed_at":"2025-02-09T21:10:03.000Z","size":9714,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-04T23:51:09.991Z","etag":null,"topics":["ansible","digitalocean","docker","helm","k3s","k8s","kubernetes"],"latest_commit_sha":null,"homepage":"https://francoposa.io/resources/infra-ops/","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/francoposa.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":"2020-06-16T15:01:20.000Z","updated_at":"2024-11-16T19:17:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"6e2d066b-730e-42a3-8057-309807b88ade","html_url":"https://github.com/francoposa/learn-infra-ops","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/francoposa/learn-infra-ops","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/francoposa%2Flearn-infra-ops","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/francoposa%2Flearn-infra-ops/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/francoposa%2Flearn-infra-ops/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/francoposa%2Flearn-infra-ops/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/francoposa","download_url":"https://codeload.github.com/francoposa/learn-infra-ops/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/francoposa%2Flearn-infra-ops/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278886898,"owners_count":26063068,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["ansible","digitalocean","docker","helm","k3s","k8s","kubernetes"],"created_at":"2024-10-29T09:51:18.586Z","updated_at":"2025-10-08T04:08:10.527Z","avatar_url":"https://github.com/francoposa.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# learn-infra-ops\n\n## Development\n\n#### Installing dev dependencies\n\n```\n% poetry install --no-root\n```\n\n#### Linting the YAML files in this repo:\n\nFrom the project root directory, yamllint uses the `.yamllint.yaml` file for configuration:\n\n```\n% yamllint .\n```\n\n## Cloud Infrastructure\n\n### Deploying K3s on a Digitalocean VM\n\nFrom the root directory:\n\n```shell\nexport DO_API_TOKEN=dop_v1_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n\n# Add the ssh key for the VM to the keychain\nssh-add ~/.ssh/id_ed25519_infra_ops  # ssh key for the DO droplet\n\n# Create a new DigitalOcean VM\nansible-playbook ./infrastructure/ansible/inventory/mgmt/digitalocean-demo-create.yaml\n\n# Run a quick demo do verify ssh access\nansible-playbook -i ./infrastructure/ansible/inventory/sources/ ./infrastructure/ansible/inventory/mgmt/digitalocean-demo-shell-example.yaml\n\n# Install k3s on the single VM\nansible-playbook -i ./infrastructure/ansible/inventory/sources/digitalocean.yaml ./infrastructure/ansible/k3s/install.yaml\n\n# Copy the kubeconfig for the cluster to local; merge with existing kubeconfigs\nansible-playbook -i ./infrastructure/ansible/inventory/sources/ ./infrastructure/ansible/k3s/local-kube-config.yaml\n\n# verify connectivity to k3s cluster\nkubectl cluster-info\nkubectl get nodes\n```\n\n---\n\nCreated by Franco Posa (franco @ [francoposa.io](https://francoposa.io))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrancoposa%2Flearn-infra-ops","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrancoposa%2Flearn-infra-ops","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrancoposa%2Flearn-infra-ops/lists"}