https://github.com/terminal127/k8s-configuration
Kubernetes manifests and the code and explanation what it does
https://github.com/terminal127/k8s-configuration
Last synced: about 1 year ago
JSON representation
Kubernetes manifests and the code and explanation what it does
- Host: GitHub
- URL: https://github.com/terminal127/k8s-configuration
- Owner: Terminal127
- Created: 2023-10-26T13:20:27.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-01-20T21:21:57.000Z (over 2 years ago)
- Last Synced: 2025-03-31T12:25:08.197Z (over 1 year ago)
- Homepage:
- Size: 5.86 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kubernetes Simple Reference
This repository contains Kubernetes configuration files for a project involving MongoDB and a web application using MongoDB. The project includes the following files:
- `mongo-configmap.yaml`: A Kubernetes ConfigMap file for configuring MongoDB.
- `mongo-express.yaml`: A Kubernetes Deployment file for running a web-based MongoDB administration tool.
- `mongo.yaml`: A Kubernetes Deployment file for setting up a MongoDB instance.
- `mongodb-secret.yaml`: A Kubernetes Secret file for storing sensitive information, such as passwords.
## Prerequisites
Before you begin, ensure you have the following:
- Access to a Kubernetes cluster. You can use Minikube for local development or a cloud-based Kubernetes cluster.
- `kubectl` installed and configured to manage your cluster.
- Docker or a container registry to build and push container images if required.
## Usage
1. Clone this repository to your local machine:
```bash
git clone https://github.com/yourusername/k8s-proj.git
cd k8s-proj
kubectl apply -f mongo-configmap.yaml
kubectl apply -f mongo-express.yaml
kubectl apply -f mongo.yaml
kubectl apply -f mongodb-secret.yaml
kubectl get pods
kubectl get services