Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions helm-chart/eoapi/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version numbers below correspond to helm chart `appVersion`: see ./helm-chart/eoapi/Chart.yaml
---
# 0.1.1 (2023-07-21)

* For the shared-nginx ingress option [add root path with docs](https://github.com/developmentseed/eoapi-k8s/issues/18) pointing to path rewrites

# 0.1.0 (2023-07-01)

* Adds basic AWS EKS services with ALB and NLB options
4 changes: 2 additions & 2 deletions helm-chart/eoapi/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ kubeVersion: ">=1.23.0-0"
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: "0.1.2"
version: "0.1.3"

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.1.0"
appVersion: "0.1.1"
9 changes: 8 additions & 1 deletion helm-chart/eoapi/templates/services/ingress-nginx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ spec:
{{- end }}{{/* END: if index $v "enabled" */}}
{{- end }}{{/* END: if (or (eq $serviceName "raster") (eq $serviceName "stac") (eq $serviceName "vector")) */}}
{{- end }}{{/* END: range $serviceName, $v := .Values*/}}
- pathType: Prefix
path: /(/|$)
backend:
service:
name: doc-server
port:
number: 80
---
{{/* END: if .Values.ingress.className "alb" */}}
{{/* END: if .Values.ingress.className "nginx" */}}
{{- end }}
62 changes: 62 additions & 0 deletions helm-chart/eoapi/templates/services/nginx-doc-server.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{{- if (and (.Values.ingress.className) (eq .Values.ingress.className "nginx")) }}
apiVersion: v1
kind: ConfigMap
metadata:
name: nginx-root-html
data:
index.html: |
<html>
<head>
<title>eoAPI</title>
</head>
<body>
<h2>This is the root path /</h2>
<p>Your service configuration is using ingress-nginx with path rewrites. So use these paths for each service:</p>
<ul>
<li><a href="/raster" target="_blank" rel="noopener noreferrer">/raster</a></li>
<li><a href="/vector" target="_blank" rel="noopener noreferrer">/vector</a></li>
<li><a href="/stac" target="_blank" rel="noopener noreferrer">/stac</a></li>
</ul>
</body>
</html>
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: doc-server
spec:
replicas: 1
selector:
matchLabels:
app: doc-server
template:
metadata:
labels:
app: doc-server
spec:
containers:
- name: doc-server
image: nginx:alpine
volumeMounts:
- name: doc-html
mountPath: /usr/share/nginx/html
ports:
- containerPort: 80
volumes:
- name: doc-html
configMap:
name: nginx-root-html
---
apiVersion: v1
kind: Service
metadata:
name: doc-server
spec:
selector:
app: doc-server
ports:
- protocol: TCP
port: 80
targetPort: 80
---
{{- end }}