-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "[SSR-1] Removal of Rendertron (#474)"
This reverts commit 7b58985.
- Loading branch information
1 parent
b8cb11d
commit 66feef2
Showing
5 changed files
with
133 additions
and
0 deletions.
There are no files selected for viewing
68 changes: 68 additions & 0 deletions
68
deployment/k3s/templates/deployments/web/rendertron-deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: rendertron | ||
labels: | ||
app: navigatum | ||
deployment: rendertron | ||
namespace: {{ $.Values.namespace }} | ||
spec: | ||
replicas: {{ if eq "nav.tum.de" $.Values.url }}2{{ else }}1{{ end }} | ||
revisionHistoryLimit: 1 | ||
selector: | ||
matchLabels: | ||
app: navigatum | ||
deployment: rendertron | ||
strategy: | ||
rollingUpdate: | ||
maxSurge: {{ if eq "nav.tum.de" $.Values.url }}50%{{ else }}100%{{ end }} | ||
maxUnavailable: {{ if eq "nav.tum.de" $.Values.url }}50%{{ else }}0%{{ end }} | ||
type: RollingUpdate | ||
template: | ||
metadata: | ||
labels: | ||
app: navigatum | ||
deployment: rendertron | ||
spec: | ||
affinity: | ||
nodeAffinity: | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
nodeSelectorTerms: | ||
- matchExpressions: | ||
- key: tileserver | ||
operator: In | ||
values: | ||
- ready | ||
volumes: | ||
- name: tmp-rendertron | ||
emptyDir: {} | ||
containers: | ||
- name: rendertron | ||
image: dockette/rendertron | ||
imagePullPolicy: Always | ||
ports: | ||
- containerPort: 3000 | ||
name: rendertron | ||
volumeMounts: | ||
- mountPath: /tmp | ||
name: tmp-rendertron | ||
securityContext: | ||
readOnlyRootFilesystem: true | ||
resources: | ||
requests: | ||
cpu: 50m | ||
memory: 200Mi | ||
limits: | ||
memory: 500Mi | ||
livenessProbe: | ||
httpGet: | ||
path: /_ah/health | ||
port: rendertron | ||
failureThreshold: 1 | ||
periodSeconds: 60 | ||
startupProbe: | ||
httpGet: | ||
path: /_ah/health | ||
port: rendertron | ||
failureThreshold: 20 | ||
periodSeconds: 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,5 @@ metadata: | |
spec: | ||
stripPrefix: | ||
prefixes: | ||
- /rendertron | ||
- /maps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters