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

12
portfolio/README.md Normal file
View file

@ -0,0 +1,12 @@
# Portfolio Project
This is a static portfolio website built using HTML and CSS. It showcases my skills and projects.
## Viewing Locally
To view the project locally, follow these steps:
1. **Clone the repository:** If you haven't already, clone the repository to your local machine.
2. **Open `index.html`:** Navigate to the project directory in your file explorer and open the `index.html` file in your preferred web browser.
That's it! You should now be able to view the portfolio website in your browser.

View file

@ -0,0 +1,11 @@
# Use the official nginx image as the base image
FROM nginx:latest
# Copy the HTML and CSS files to the default nginx directory
COPY . /usr/share/nginx/html
# Expose port 80 to the outside world
EXPOSE 80
# Start nginx when the container starts
CMD ["nginx", "-g", "daemon off;"]

View file

@ -0,0 +1,32 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: portfolio-deployment
spec:
replicas: 3
selector:
matchLabels:
app: portfolio
template:
metadata:
labels:
app: portfolio
spec:
containers:
- name: portfolio
image: ghcr.io/smiggiddy/odin-codeprojects/portfolio:latest
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: portfolio-service
spec:
selector:
app: portfolio
ports:
- protocol: TCP
port: 80
targetPort: 80
type: LoadBalancer