Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Demo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
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
Container Registry
Model registry
Operate
Environments
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
ACS
Public
VILLASframework
Demo
Commits
51815a21
Commit
51815a21
authored
5 years ago
by
Steffen Vogel
Browse files
Options
Downloads
Patches
Plain Diff
kubernetes: replace nginx deployment by ingress rules
parent
2ca53f3d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
kubernetes/ingress.yaml
+39
-4
39 additions, 4 deletions
kubernetes/ingress.yaml
kubernetes/nginx-deployment.yaml
+0
-37
0 additions, 37 deletions
kubernetes/nginx-deployment.yaml
kubernetes/nginx-service.yaml
+0
-12
0 additions, 12 deletions
kubernetes/nginx-service.yaml
with
39 additions
and
53 deletions
kubernetes/ingress.yaml
+
39
−
4
View file @
51815a21
apiVersion
:
extensions/v1beta1
kind
:
Ingress
metadata
:
name
:
nginx
name
:
demo
labels
:
app.kubernetes.io/component
:
nginx
app.kubernetes.io/part-of
:
villas-web
...
...
@@ -21,8 +21,20 @@ spec:
paths
:
-
path
:
/
backend
:
serviceName
:
nginx
servicePort
:
80
serviceName
:
frontend
servicePort
:
5000
-
path
:
/api/
backend
:
serviceName
:
backend
servicePort
:
4000
-
path
:
/public/
backend
:
serviceName
:
backend
servicePort
:
4000
-
path
:
/ws/relay/
backend
:
serviceName
:
relay
servicePort
:
8888
-
path
:
/mongo-express/
backend
:
serviceName
:
mongo-express
...
...
@@ -31,7 +43,30 @@ spec:
backend
:
serviceName
:
broker
servicePort
:
web-admin
-
path
:
/mockup/
---
apiVersion
:
extensions/v1beta1
kind
:
Ingress
metadata
:
name
:
demo-rewrite
labels
:
app.kubernetes.io/component
:
nginx
app.kubernetes.io/part-of
:
villas-web
annotations
:
kubernetes.io/ingress.class
:
nginx
certmanager.k8s.io/cluster-issuer
:
letsencrypt-prod
eonerc.rwth-aachen.de/description
:
VILLASweb
eonerc.rwth-aachen.de/link
:
https://git.rwth-aachen.de/acs/public/villas/VILLASweb
nginx.ingress.kubernetes.io/rewrite-target
:
/$3
spec
:
tls
:
-
hosts
:
-
villas.k8s.fein-aachen.org
secretName
:
letsencrypt-prod-upload
rules
:
-
host
:
villas.k8s.fein-aachen.org
http
:
paths
:
-
path
:
/(ws|mockup)(/|$)(.*)
backend
:
serviceName
:
node
servicePort
:
80
This diff is collapsed.
Click to expand it.
kubernetes/nginx-deployment.yaml
deleted
100644 → 0
+
0
−
37
View file @
2ca53f3d
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
labels
:
app.kubernetes.io/component
:
nginx
app.kubernetes.io/part-of
:
villas-web
name
:
nginx
spec
:
replicas
:
3
selector
:
matchLabels
:
app.kubernetes.io/component
:
nginx
app.kubernetes.io/part-of
:
villas-web
template
:
metadata
:
labels
:
app.kubernetes.io/component
:
nginx
app.kubernetes.io/part-of
:
villas-web
spec
:
containers
:
-
image
:
nginx:1.17.4-alpine
name
:
nginx
ports
:
-
containerPort
:
80
volumeMounts
:
-
mountPath
:
/etc/nginx/conf.d/
name
:
config
livenessProbe
:
httpGet
:
path
:
/
port
:
80
initialDelaySeconds
:
3
periodSeconds
:
3
volumes
:
-
name
:
config
configMap
:
name
:
nginx-config
This diff is collapsed.
Click to expand it.
kubernetes/nginx-service.yaml
deleted
100644 → 0
+
0
−
12
View file @
2ca53f3d
apiVersion
:
v1
kind
:
Service
metadata
:
labels
:
app.kubernetes.io/component
:
nginx
name
:
nginx
spec
:
ports
:
-
name
:
"
http"
port
:
80
selector
:
app.kubernetes.io/component
:
nginx
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