Skip to content

Commit 476611e

Browse files
Implement browser service and ingress configuration; remove deprecated stac-browser resources
1 parent 4ecc498 commit 476611e

File tree

4 files changed

+50
-59
lines changed

4 files changed

+50
-59
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{{- if (and (.Values.browser.enabled) (not .Values.testing) (.Values.docServer.enabled))}}
2+
apiVersion: apps/v1
3+
kind: Deployment
4+
metadata:
5+
name: browser-{{ .Release.Name }}
6+
spec:
7+
replicas: {{.Values.browser.replicaCount}}
8+
selector:
9+
matchLabels:
10+
app: browser-{{ .Release.Name }}
11+
template:
12+
metadata:
13+
labels:
14+
app: browser-{{ .Release.Name }}
15+
spec:
16+
containers:
17+
- name: browser
18+
image: {{ .Values.browser.image.name }}:{{ .Values.browser.image.tag }}
19+
ports:
20+
- containerPort: 8080
21+
env:
22+
- name: SB_catalogUrl
23+
value: "/stac"
24+
- name: SB_prefixPath
25+
value: "/stac-browser"
26+
{{- end }}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{{- if (and (.Values.browser.enabled) (not .Values.testing) (.Values.docServer.enabled))}}
2+
apiVersion: v1
3+
kind: Service
4+
metadata:
5+
name: browser-{{ .Release.Name }}
6+
spec:
7+
selector:
8+
app: browser-{{ .Release.Name }}
9+
ports:
10+
- protocol: TCP
11+
port: 8080
12+
targetPort: 8080
13+
{{- end }}

helm-chart/eoapi/templates/services/ingress.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,17 @@ spec:
7373
number: {{ .Values.service.port }}
7474
{{- end }}
7575

76+
{{- if (and (.Values.browser.enabled) (not .Values.testing) (.Values.docServer.enabled)) }}
77+
# We need a separate path because browser does not play well with nginx rewrite_path directive
78+
- pathType: Prefix
79+
path: "/browser"
80+
backend:
81+
service:
82+
name: browser-{{ $.Release.Name }}
83+
port:
84+
number: 8080
85+
{{- end }}
86+
7687
{{- if .Values.docServer.enabled }}
7788
- pathType: {{ $.Values.ingress.pathType | default "Prefix" }}
7889
path: "/{{ $.Values.ingress.rootPath | default "" }}"

helm-chart/eoapi/templates/services/stac-browser.yaml

Lines changed: 0 additions & 59 deletions
This file was deleted.

0 commit comments

Comments
 (0)