mirror of
https://gitea.smigz.com/smiggiddy/odin-codeprojects.git
synced 2025-06-27 20:45:35 -04:00
adding devops
used gemini to create the k8s/dockerfiles faster
This commit is contained in:
parent
5c09c5a22f
commit
6c14a968c3
74 changed files with 2061 additions and 16 deletions
14
admin-dashboard/devops/Dockerfile
Normal file
14
admin-dashboard/devops/Dockerfile
Normal 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;"]
|
32
admin-dashboard/devops/deployment.yaml
Normal file
32
admin-dashboard/devops/deployment.yaml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue