This repository contains a collection of Kubernetes objects that can be used as templates or examples for deploying various applications and services in a Kubernetes cluster.
To use the Kubernetes objects in this repository, you must have the following installed on your local machine:
kubectl: the Kubernetes command-line tool A running Kubernetes cluster, such as Minikube
To deploy a Kubernetes object from this repository, follow these steps:
Clone this repository to your local machine:
git clone https://github.com/bhowmickkrishnendu/k8sobjects.git
Change into the directory for the object you want to deploy:
cd k8sobjects/
Edit the YAML file for the object to customize it for your specific needs.
Deploy the object to your Kubernetes cluster using kubectl:
kubectl apply -f .yaml
Replace with the name of the YAML file for the object you want to deploy.
This repository contains the following Kubernetes objects:
deployment.yaml: a deployment object that creates a replica set for a sample web application. service.yaml: a service object that exposes the sample web application deployment on port 80. configmap.yaml: a config map object that stores the configuration data for the sample web application. secret.yaml: a secret object that stores sensitive information, such as passwords or API keys, for the sample web application. job.yaml: a job object that runs a batch process to generate a report and save it to a shared volume. cronjob.yaml: a cron job object that schedules the batch process to run at regular intervals.
If you have a Kubernetes object that you'd like to add to this repository, please fork the repository, create a new branch for your changes, add your object to the appropriate directory, and submit a pull request.
This repository is licensed under the MIT License.