{"id":24626571,"url":"https://github.com/iogbole/ebpf-k8s-experiment","last_synced_at":"2026-04-17T01:03:42.344Z","repository":{"id":218061972,"uuid":"745495568","full_name":"iogbole/ebpf-k8s-experiment","owner":"iogbole","description":"Quick K8s setup to aid with eBPF experimentation ","archived":false,"fork":false,"pushed_at":"2024-01-19T13:14:38.000Z","size":804,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-20T00:19:03.970Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iogbole.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2024-01-19T13:12:21.000Z","updated_at":"2024-01-19T14:05:02.000Z","dependencies_parsed_at":"2024-01-19T14:40:27.698Z","dependency_job_id":null,"html_url":"https://github.com/iogbole/ebpf-k8s-experiment","commit_stats":null,"previous_names":["iogbole/ebpf-k8s-experiment"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/iogbole/ebpf-k8s-experiment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iogbole%2Febpf-k8s-experiment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iogbole%2Febpf-k8s-experiment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iogbole%2Febpf-k8s-experiment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iogbole%2Febpf-k8s-experiment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iogbole","download_url":"https://codeload.github.com/iogbole/ebpf-k8s-experiment/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iogbole%2Febpf-k8s-experiment/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31910584,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"ssl_error","status_checked_at":"2026-04-16T18:21:47.142Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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-01-25T04:49:10.215Z","updated_at":"2026-04-17T01:03:42.315Z","avatar_url":"https://github.com/iogbole.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Kubernetes Application Overview\nThis application comprises three main components:\n\n1. **OpenMCT App**: A web-based mission control framework for visualization of data on desktop and mobile devices, primarily used by NASA. This service is exposed over an ingress. See `k8s-manifests/openmct-gke-ingres.yml`\n2. **Sender App**: A Node.js application that sends HTTP requests to a receiver, over a K8s service and prints a reponse.\n3. **Receiver App**: A Node.js application that responds to the Sender app with a simple \"Hello\" message.\n\nThe communication between the Sender and Receiver apps is managed through Kubernetes services, demonstrating basic inter-service communication in a microservices architecture.\n\n## Deployment Instructions\n\n### Prerequisites\n- `kubectl` should be installed and configured to interact with your Kubernetes cluster.\n\n### Step 1: Create Namespace\nCreate a dedicated namespace for the application components:\n\n```bash\nkubectl create ns ebpf\n```\n\n### Step 2: Set Namespace Context (Optional)\nOptionally, set the `ebpf` namespace as the default for the current context:\n\n```bash\nkubectl config set-context --current --namespace=ebpf\n```\n\n### Step 3: Deploy Resources\nChange directory to the k8s-manifests folder and apply all Kubernetes configurations in the current directory:\n\n```bash\n\nkubectl apply -f .\n\n```\n\nThis command creates the necessary ConfigMap, Deployments, and Services: \n- ConfigMap (`app-config`)\n- Ingress (`openmct-ingress`)\n- ServiceAccount (`israelo`)\n- Deployments (`openmct`, `receiver`, `sender`)\n- Services (`openmct`, `receiver-service`, `sender-service`)\n\n### Step 4: Verify Deployments\nCheck the status of the pods to ensure they're running successfully:\n\n```bash\nkubectl get pods\n```\n\nYou should see output similar to:\n\n```\nNAME                        READY   STATUS              RESTARTS   AGE\nopenmct-f68f5445f-6f2hr     0/1     ContainerCreating   0          4m\nreceiver-6fbffb4b6d-7h4s2   1/1     Running             0          4m\nreceiver-6fbffb4b6d-jwqzm   1/1     Running             0          4m\nsender-8b884c59-hfl6b       1/1     Running             0          3m59s\n```\n\n### Step 5: Access and Interact with the Applications\n\n- **OpenMCT App**: Accessible via the NodePort or LoadBalancer IP, depending on your service configuration.\n- **Sender and Receiver Apps**: Verify their interaction by checking the logs:\n\n**For the Sender app:**\n    ```bash\n    kubectl logs \u003csender-pod-name\u003e\n    ```\n\n You should see output similar to:\n   ``` \n$ k logs sender-8b884c59-hfl6b \nError connecting to Receiver: connect ECONNREFUSED 10.88.1.204:80\nResponse from Receiver: Hello from Receiver!\nResponse from Receiver: Hello from Receiver!\nResponse from Receiver: Hello from Receiver!\nResponse from Receiver: Hello from Receiver!\nResponse from Receiver: Hello from Receiver!\n```\n\n**For the Receiver app:**\n    ```bash\n    kubectl logs \u003creceiver-pod-name\u003e\n    ```\n\nYou should see output similar to:\n``` \nk logs receiver-6fbffb4b6d-7h4s2\nReceiver listening at http://localhost:3000\nReceived request from Sender\nReceived request from Sender\n```\n\n### Step 6: Clean Up\nTo delete all deployed resources:\n\n```bash\nkubectl delete -f . --force --grace-period=0\n```\n\n---\n\nReplace `\u003csender-pod-name\u003e` and `\u003creceiver-pod-name\u003e` with the actual names of your pods. This README provides a concise guide on deploying and interacting with your Kubernetes applications.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiogbole%2Febpf-k8s-experiment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiogbole%2Febpf-k8s-experiment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiogbole%2Febpf-k8s-experiment/lists"}