adding devops

used gemini to create the k8s/dockerfiles faster
This commit is contained in:
Smigz 2025-05-02 16:47:07 +00:00
parent 5c09c5a22f
commit 6c14a968c3
74 changed files with 2061 additions and 16 deletions

53
admin-dashboard/README.md Normal file
View file

@ -0,0 +1,53 @@
# Admin Dashboard Project
## Description
This project is a web application designed to display an admin dashboard. It utilizes HTML for structure, CSS for styling, and JavaScript for interactivity. The dashboard provides an overview of various metrics and data relevant to an administrator.
## Project Structure
- `index.html`: Main HTML file for the dashboard layout.
- `css/`: Directory containing CSS files for styling.
- `style.css`: Main stylesheet for the dashboard.
- `js/`: Directory containing JavaScript files for interactivity.
- `script.js`: JavaScript file for dashboard logic.
- `static/`: Directory containing static assets.
- `logo.png`: Dashboard logo.
## Local Development
### Prerequisites
- A web browser (e.g., Chrome, Firefox, Safari).
- A code editor (e.g., VS Code, Sublime Text).
### Build and Serve
This project is a static web application, so there is no build step involved. You can simply open the `index.html` file in your web browser to view the dashboard.
1. **Navigate to the Project Directory:**
```
bash
cd admin-dashboard
```
2. **Open `index.html` in Your Browser:**
Open `index.html` with your favorite browser.
You can navigate to the `index.html` file in your file explorer and then double click it to open it in your default browser.
### Development Workflow
1. **Edit Files:**
- Modify `index.html` to change the structure of the dashboard.
- Edit `css/style.css` to update the look and feel of the dashboard.
- Modify `js/script.js` to add or modify dashboard features.
2. **View Changes:**
- After making changes to the code, save the files.
- Refresh your browser to see the changes.
## Additional Notes
- Since this is a static web application, no server is required for local development.
- All changes made to the HTML, CSS, or JavaScript files will be immediately reflected in the browser upon refresh.
- To use this dashboard, simply open index.html.

View file

@ -0,0 +1,14 @@
# Use an official Nginx image as the base image
FROM nginx:alpine
# Set the working directory to /app inside the container
WORKDIR /app
# Copy the HTML, CSS, and JS files to the Nginx default directory
COPY . /usr/share/nginx/html
# Expose port 80 for the Nginx server
EXPOSE 80
# Command to start Nginx
CMD ["nginx", "-g", "daemon off;"]

View file

@ -0,0 +1,32 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: admin-dashboard-deployment
spec:
replicas: 3
selector:
matchLabels:
app: admin-dashboard
template:
metadata:
labels:
app: admin-dashboard
spec:
containers:
- name: admin-dashboard
image: admin-dashboard:latest # Replace with your image name and tag
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: admin-dashboard-service
spec:
type: LoadBalancer
selector:
app: admin-dashboard
ports:
- protocol: TCP
port: 80
targetPort: 80