Skip to content

Commit

Permalink
added a container which serves the tileserver's sources
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Nov 11, 2023
1 parent 0e1dc41 commit e0195e4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
10 changes: 10 additions & 0 deletions deployment/k3s/templates/deployments/maps/maps-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,13 @@ spec:
port: tileserver
failureThreshold: 6
periodSeconds: 10
- name: tileserver-src # serve tileserver-vol at /maps/vol/...
image: nginx:1.25
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
name: http
volumeMounts:
- name: tileserver-vol
mountPath: /usr/share/nginx/html/maps/vol
readOnly: true
5 changes: 5 additions & 0 deletions deployment/k3s/templates/networking/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ spec:
services:
- name: api-svc
port: 7000
- kind: Rule
match: Host(`{{ $.Values.url }}`) && PathPrefix(`/maps/vol/`)
services:
- name: maps-svc
port: 7771
- kind: Rule
match: Host(`{{ $.Values.url }}`) && PathPrefix(`/maps/`)
services:
Expand Down
3 changes: 3 additions & 0 deletions deployment/k3s/templates/networking/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ spec:
- name: http
port: 7770
targetPort: 8080
- name: src
port: 7771
targetPort: 80
---
apiVersion: v1
kind: Service
Expand Down

0 comments on commit e0195e4

Please sign in to comment.