{"id":20594488,"url":"https://github.com/lyteabovenyte/fortune","last_synced_at":"2026-04-22T04:03:37.251Z","repository":{"id":246601764,"uuid":"821608047","full_name":"lyteabovenyte/fortune","owner":"lyteabovenyte","description":"fortune quotes are inspiring. so let's save them in html files for later ✓","archived":false,"fork":false,"pushed_at":"2024-07-04T02:12:27.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-06T14:52:58.317Z","etag":null,"topics":["kubernetes","shell-scripts"],"latest_commit_sha":null,"homepage":"https://mastodon.social/@lyteabovenyte","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/lyteabovenyte.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}},"created_at":"2024-06-29T00:14:58.000Z","updated_at":"2024-08-29T09:55:13.000Z","dependencies_parsed_at":"2024-06-29T01:32:38.148Z","dependency_job_id":"03b32287-7b08-4ec9-b1f7-ee26fc2d48d2","html_url":"https://github.com/lyteabovenyte/fortune","commit_stats":null,"previous_names":["lyteabovenyte/fortune-image"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lyteabovenyte/fortune","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyteabovenyte%2Ffortune","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyteabovenyte%2Ffortune/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyteabovenyte%2Ffortune/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyteabovenyte%2Ffortune/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lyteabovenyte","download_url":"https://codeload.github.com/lyteabovenyte/fortune/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyteabovenyte%2Ffortune/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32120402,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T00:31:26.853Z","status":"online","status_checked_at":"2026-04-22T02:00:05.693Z","response_time":58,"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":["kubernetes","shell-scripts"],"created_at":"2024-11-16T08:09:13.696Z","updated_at":"2026-04-22T04:03:37.235Z","avatar_url":"https://github.com/lyteabovenyte.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"##### a simple docker image to save fortune quotes every 10 second to a html file\n\n###### what's in there:\n##### v1: emptyDir volume.\n###### an emptyDir volume is used to share content between containers.\n- [x] a dockerfile for the fortune image to use in your k8s pod\n- [x] a bash shell script to write the quote from fortune command in /var/htdocs dir\n- [x] the yaml manifest of the pod for k8s, plus a volume called html for both the web-server nginx serves from and html-generator to write the quotes to\n###### Note:\n- you may need to port-forward a port from your local machine to the pod using:\n```\nkubectl port-forward \u003cyour-pod-name\u003e \u003cyour-desired-port\u003e:80\n``` \n- or you can also expose the pod through a service instead of port-forwarding (either LoadBalancer or NodePort)\n- [x] the yaml manifest of the type LoadBalancer service for the pods to connect. \n###### Note:\n- if you are using [Minikube](https://minikube.sigs.k8s.io/docs/) you can examine the externalIP of your services using the command below:\n```\nminikube service \u003cyour-loadbalancer-service-name\u003e\n```\nthen you should be forwarded to you browser at the externalIP page.\n\n##### v2: gitRepo volume:\n###### visit branch gitRepo of the repo\n- [x] in this branch of versioning, we have a nginx web-server that mounts the default path(/usr/share/nginx/html) to a gitRepo contianing the html pages\n\n##### v3: hostPath volume:\n###### using mongoDB database to persist JSON document in node filesystem using hostPath volume\n###### visit branch HostPath of the repo\n- create the pod from mongodb-pod-hostpath.yaml\n- execute mongodb shell using ```kubectl exec -it mongodb mongosh``` and save some json docs\n- after deleting the pod and recreating it you can see that the data is persisted in the node's filesystem\n- you can examine that by SSHing inside the node and inspect /tmp/mongodb directory.\n\n##### v4: PV and PVC using hostpath.\n\n###### v5: StorageClass in branch StorageClass\n- provisioning PV dynamically using storage classes.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flyteabovenyte%2Ffortune","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flyteabovenyte%2Ffortune","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flyteabovenyte%2Ffortune/lists"}