{"id":30023225,"url":"https://github.com/narcello/my-kube-app","last_synced_at":"2026-02-10T10:39:45.860Z","repository":{"id":306238029,"uuid":"1024370848","full_name":"narcello/my-kube-app","owner":"narcello","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-27T14:24:51.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-06T04:44:15.084Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Smarty","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/narcello.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-22T15:37:36.000Z","updated_at":"2025-07-27T14:24:55.000Z","dependencies_parsed_at":"2025-07-27T16:27:57.897Z","dependency_job_id":null,"html_url":"https://github.com/narcello/my-kube-app","commit_stats":null,"previous_names":["narcello/my-kube-chart","narcello/my-kube-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/narcello/my-kube-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narcello%2Fmy-kube-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narcello%2Fmy-kube-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narcello%2Fmy-kube-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narcello%2Fmy-kube-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/narcello","download_url":"https://codeload.github.com/narcello/my-kube-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narcello%2Fmy-kube-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29297373,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-10T09:11:24.369Z","status":"ssl_error","status_checked_at":"2026-02-10T09:10:47.789Z","response_time":65,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2025-08-06T04:44:08.639Z","updated_at":"2026-02-10T10:39:45.856Z","avatar_url":"https://github.com/narcello.png","language":"Smarty","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🧠 Full Local Dev Setup: Docker + Kubernetes (Minikube) + Helm + ArgoCD\n\nThis guide walks you through setting up a full GitOps-based local Kubernetes environment using Docker, Helm, Minikube, and ArgoCD.\n\n---\n\n## ✅ Prerequisites\n\n- Docker installed\n- `kubectl` CLI\n- `minikube` installed\n- `helm` CLI installed\n- `argocd` CLI (optional but helpful)\n- GitHub repository with a valid Helm chart (e.g. `values.yaml`, `templates/`, `Chart.yaml`)\n\n---\n\n## 🚀 Step-by-Step Setup\n\n### 1. **Start Minikube**\n\n```bash\nminikube start\n```\n\n### 2. **Use Minikube’s Docker Daemon**\n\n```bash\neval $(minikube docker-env)\n```\n\n### 3. **Build Your Image**\n\n```bash\ndocker build -t my-kube-app:v1 .\n```\n\n### 4. **Create a Helm Chart**\n\nIf not already done:\n\n```bash\nhelm create my-kube-chart\n```\n\nCustomize:\n\n- `values.yaml`\n- `deployment.yaml`, `service.yaml`, etc in `templates/`\n\nSet image info in `values.yaml`:\n\n```yaml\nimage:\n  repository: my-kube-app\n  tag: v1\n  pullPolicy: IfNotPresent\n```\n\n### 5. **Install Helm Chart Locally (optional test)**\n\n```bash\nhelm install my-kube-chart ./my-kube-chart\n```\n\n### 6. **Expose the App via NodePort**\n\n```bash\nkubectl expose deployment my-app-my-kube-chart --type=NodePort --port=3000\nminikube service list\n```\n\nUse the `NodePort` in your browser.\n\n---\n\n### 7. **Install ArgoCD**\n\n```bash\nkubectl create namespace argocd\nkubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml\n```\n\nPort forward ArgoCD UI:\n\n```bash\nkubectl port-forward svc/argocd-server -n argocd 8080:443\n```\n\nOpen [https://localhost:8080](https://localhost:8080)\n\nLogin:\n\n```bash\nkubectl get secret argocd-initial-admin-secret -n argocd -o jsonpath=\"{.data.password}\" | base64 -d\n```\n\nUsername: `admin`\n\n---\n\n### 8. **Create ArgoCD Application**\n\n```yaml\napiVersion: argoproj.io/v1alpha1\nkind: Application\nmetadata:\n  name: my-kube-chart\n  namespace: argocd\nspec:\n  destination:\n    namespace: default\n    server: https://kubernetes.default.svc\n  source:\n    repoURL: https://github.com/your-username/my-kube-chart\n    path: .\n    targetRevision: main\n  project: default\n  syncPolicy:\n    automated:\n      prune: true\n      selfHeal: true\n```\n\nApply it:\n\n```bash\nkubectl apply -f app.yaml\n```\n\n---\n\n### 9. **Test New Image (v2+)**\n\n```bash\neval $(minikube docker-env)\ndocker build -t my-kube-app:v2 .\n\n# Update tag in values.yaml in GitHub repo\n# Commit and push\n\n# ArgoCD will detect the change, pull and deploy v2\n```\n\n---\n\n## 📖 Key Concepts \u0026 Terminology\n\n| Term             | Explanation                                       |\n| ---------------- | ------------------------------------------------- |\n| **Docker Image** | Packaged application environment                  |\n| **Container**    | Running instance of a Docker image                |\n| **Minikube**     | Lightweight Kubernetes cluster on your machine    |\n| **Helm**         | Package manager for Kubernetes (like apt or npm)  |\n| **Chart**        | Helm package: includes templates and values       |\n| **ArgoCD**       | GitOps controller: syncs Kubernetes from Git      |\n| **Deployment**   | Describes desired state: pods, replicas, image    |\n| **ReplicaSet**   | Ensures N pods are always running                 |\n| **Pod**          | Basic Kubernetes runtime unit, wraps containers   |\n| **NodePort**     | Exposes a service to be accessible on a node's IP |\n| **Service**      | Abstraction to expose pods                        |\n| **Namespace**    | Virtual cluster inside Kubernetes cluster         |\n| **Prune**        | ArgoCD removes resources not defined in Git       |\n| **Self-heal**    | ArgoCD restores cluster to Git-defined state      |\n\n---\n\n✅ You now have a Git-driven, production-like environment running entirely locally!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnarcello%2Fmy-kube-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnarcello%2Fmy-kube-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnarcello%2Fmy-kube-app/lists"}