{"id":26092876,"url":"https://github.com/jazzshu/kubernetes","last_synced_at":"2026-05-30T22:32:05.391Z","repository":{"id":160009414,"uuid":"634866131","full_name":"jazzshu/kubernetes","owner":"jazzshu","description":"A simple Kubernetes all-around guide on how to use and description of the different components","archived":false,"fork":false,"pushed_at":"2024-04-06T17:17:48.000Z","size":92,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-16T11:57:12.128Z","etag":null,"topics":["devops","kubernetes"],"latest_commit_sha":null,"homepage":"","language":null,"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/jazzshu.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":"2023-05-01T12:12:53.000Z","updated_at":"2023-07-18T09:27:12.000Z","dependencies_parsed_at":"2024-01-04T14:25:57.359Z","dependency_job_id":"7500f922-68c0-4ad7-b872-2a42210514a7","html_url":"https://github.com/jazzshu/kubernetes","commit_stats":null,"previous_names":["jazzshu/kubernetes"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jazzshu/kubernetes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazzshu%2Fkubernetes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazzshu%2Fkubernetes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazzshu%2Fkubernetes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazzshu%2Fkubernetes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jazzshu","download_url":"https://codeload.github.com/jazzshu/kubernetes/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazzshu%2Fkubernetes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33712579,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-30T02:00:06.278Z","response_time":92,"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":["devops","kubernetes"],"created_at":"2025-03-09T11:10:16.072Z","updated_at":"2026-05-30T22:32:05.364Z","avatar_url":"https://github.com/jazzshu.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kubernetes\n\nI'm creating this Kubernetes cheatsheet in order to identify and debug common problems and always have useful commands at hand at any time.\nThe project is still in the making so please be sure to double-check before using any of the commands showed in this repository.\n\nFeel free to make requests for updates or correct mistakes.\n\nUseful image for Troubleshooting a Kubernetes infrastructure\n\n(image courtesy of [ByteByteGo](https://www.linkedin.com/posts/bytebytego_systemdesign-coding-interviewtips-activity-7059045288400805888--Esb?utm_source=share\u0026utm_medium=member_desktop))\n![1683007546827](https://user-images.githubusercontent.com/50492920/235598157-d14fc5c6-de4c-477e-9fe6-b1d666697aab.jpg)\n\n\n## Minikube vs Kubernetes Cluster\n\nThe main difference is that minikube has a single node that acts both as a master and as a worker node, thus removing some of the network complexity.\n\nThat's why when using Kubernetes Cluster, you cannot just build your docker images locally, but you need them to build on the node from where you will deploy your pods.\n\nThat's why it is better to use a customer container registry from where to retrieve the images each time you want to deploy something.\n\n##### Private Registry\n\nIf you want to use minikube with local docker images, you have to define the imagePullPolicy as \"Never\", and/or define the --insecure-registry flag when starting your minikube cluster.\n\nAs an example:\n```shell\nminikube start --insecure-registry=\"https://private-registry:8080\"\n```\n\n## Useful links\n\n- [Sealed Secrets for K8s with GitOps](https://piotrminkowski.com/2022/12/14/sealed-secrets-on-kubernetes-with-argocd-and-terraform/)\n\n## Skaffold\n\nAnother useful tool for K8S deployment is Skaffold\n\n- [Skaffold](https://skaffold.dev/)\n\n### Notes\n\n#### Jib\n\nJib is a tool that lets you create Docker images without using Docker.\nIt's a maven/gradle plugin that you can integrate into your Java project.\n\nOne of the best practices that Jib uses is that it does not run your container as root.\n\n#### Kompose\n\nAs per the official documentation, kompose is a tool that let's you transform your docker compose file into different kubernetes files (deployment and services).\n\n#### ClusterWatch\n\nAnother very cool project is [ClusterWatch](https://github.com/oslabs-beta/ClusterWatch) :\n\nClusterWatch is an open-source tool which simplifies and provides an all-in-one hub for Kubernetes cluster monitoring. It reduces the need for DevOps engineers to configure their own Kubernetes monitoring stacks, and automates the process so you can get vital cluster information from various different tools, all in one place, in just a few seconds.\n\n#### K9S\n\n[K9S](https://k9scli.io/) is a tool that lets you monitor your cluster resources on a colorful terminal, so you never have to leave it to control if it's functioning properly. \n\nYou can either download and install the binary from their site or use the docker images as follows:\n\n#### Kubernetes API\n\nThere is a way in which you can view the Kubernetes API using OpenAPI specification and swagger-ui. \n\n```shell\nkubectl proxy --port=8080\n```\n\nOnce kubectl is proxying the Kubernetes API itself,  you can download the swagger.json file:\n\n```shell\ncurl localhost:8080/openapi/v2 \u003e k8s-swagger.json\n```\n\nAfter you've downloaded the swagger you can now use Docker to run swagger ui and view the API's:\n\n```shell\ndocker run --rm -p 80:8080 -e SWAGGER_JSON=/k8s-swagger.json -v $(pwd)/k8s-swagger.json:/k8s-swagger.json swaggerapi/swagger-ui\n```\n\nAfter this you can reach http://localhost and view the results\n\n#### ZSH-KUBECTL-PROMPT\n\n[zsh-kubectl-prompt](https://github.com/superbrothers/zsh-kubectl-prompt) is a plugin for zsh to have the kubectl context at all times in your terminal\n\n```shell\ndocker run --rm -it -v $KUBECONFIG:/root/.kube/config quay.io/derailed/k9s\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjazzshu%2Fkubernetes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjazzshu%2Fkubernetes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjazzshu%2Fkubernetes/lists"}