Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
M293 Webseite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eduardo Goncalves Silva
M293 Webseite
Commits
9483c00f
Commit
9483c00f
authored
3 weeks ago
by
EduardoGonçalvesSilva
Browse files
Options
Downloads
Plain Diff
Merge branch 'main' of git.gibb.ch:ego153448/m293-webseite
parents
ce1f9a53
fd85bdba
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Deployment.yaml
+27
-0
27 additions, 0 deletions
Deployment.yaml
Dockerfile
+8
-0
8 additions, 0 deletions
Dockerfile
Service.yaml
+12
-0
12 additions, 0 deletions
Service.yaml
with
47 additions
and
0 deletions
Deployment.yaml
0 → 100644
+
27
−
0
View file @
9483c00f
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
name
:
web-app
spec
:
replicas
:
2
selector
:
matchLabels
:
app
:
web-app
template
:
metadata
:
labels
:
app
:
web-app
spec
:
containers
:
-
name
:
web-server
image
:
nginx:latest
ports
:
-
containerPort
:
80
volumeMounts
:
-
name
:
website-data
mountPath
:
/usr/share/nginx/html
volumes
:
-
name
:
website-data
hostPath
:
path
:
/m293-webseite/
type
:
Directory
This diff is collapsed.
Click to expand it.
Dockerfile
0 → 100644
+
8
−
0
View file @
9483c00f
# Verwende eine spezifische Version von nginx (optional)
FROM
nginx:alpine
# Kopiere nur die benötigten Dateien
COPY
. /usr/share/nginx/html
# Stelle sicher, dass der Port 80 offen ist
EXPOSE
80
This diff is collapsed.
Click to expand it.
Service.yaml
0 → 100644
+
12
−
0
View file @
9483c00f
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
web-app-service
spec
:
selector
:
app
:
web-app
ports
:
-
protocol
:
TCP
port
:
80
targetPort
:
80
type
:
NodePort
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment