-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
114 additions
and
0 deletions.
There are no files selected for viewing
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,9 @@ | ||
apiVersion: v2 | ||
name: opendata-ogc-features | ||
description: Helm chart for data-api (opendata-ogc-features) | ||
|
||
type: application | ||
|
||
version: 0.0.2 | ||
|
||
appVersion: "1.0.0" |
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,3 @@ | ||
# Opendata services - data API | ||
Source code: https://github.com/georchestra/data-api | ||
|
46 changes: 46 additions & 0 deletions
46
opendata-ogc-features/templates/opendata-ogc-features-depl.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,46 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
app.mel.fr/name: opendata-ogc-features | ||
name: opendata-ogc-features-depl | ||
spec: | ||
replicas: {{ .Values.replicaCount }} | ||
selector: | ||
matchLabels: | ||
app.mel.fr/name: opendata-ogc-features | ||
strategy: {} | ||
template: | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
app.mel.fr/name: opendata-ogc-features | ||
spec: | ||
containers: | ||
- image: {{ .Values.docker.image }}:{{ .Values.docker.tag }} | ||
name: opendata-ogc-features | ||
imagePullPolicy: {{.Values.docker.imagePullPolicy }} | ||
env: | ||
- name: MANAGEMENT_SERVER_PORT | ||
value: "8081" | ||
{{- with .Values.environment }} | ||
{{- . | toYaml | nindent 8 }} | ||
{{- end }} | ||
livenessProbe: | ||
httpGet: | ||
path: {{ .Values.livenessProbeHttpUrl }} | ||
port: 8080 | ||
initialDelaySeconds: 60 | ||
periodSeconds: 10 | ||
timeoutSeconds: 4 | ||
readinessProbe: | ||
httpGet: | ||
path: /actuator/health/readiness | ||
port: 8081 | ||
initialDelaySeconds: 60 | ||
periodSeconds: 10 | ||
{{- if .Values.tolerations }} | ||
tolerations: | ||
{{- .Values.tolerations | toYaml | nindent 6 }} | ||
{{- end }} |
10 changes: 10 additions & 0 deletions
10
opendata-ogc-features/templates/opendata-ogc-features-svc.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,10 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: opendata-ogc-features-svc | ||
spec: | ||
selector: | ||
app.mel.fr/name: opendata-ogc-features | ||
ports: | ||
- port: 8080 | ||
targetPort: 8080 |
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,46 @@ | ||
--- | ||
replicaCount: 1 | ||
# Should be set in coherence with the SERVER_SERVLET_CONTEXT_PATH variable | ||
livenessProbeHttpUrl: /data/ogcapi/ | ||
docker: | ||
image: georchestra/data-api | ||
tag: latest | ||
imagePullPolicy: Always | ||
# tag: latest | ||
environment: | ||
- name: SPRING_PROFILES_ACTIVE | ||
value: postgis | ||
- name: LOGGING_LEVEL_COM_CAMPTOCAMP | ||
value: DEBUG | ||
- name: LOGGING_LEVEL_ORG_GEOTOOLS | ||
value: DEBUG | ||
# See also the ingress in k8s-extra for this one, as | ||
# parameters have to match | ||
- name: SERVER_SERVLET_CONTEXT_PATH | ||
value: /data | ||
- name: POSTGRES_HOST | ||
valueFrom: | ||
secretKeyRef: | ||
key: host | ||
name: db-credentials-test-geodata | ||
- name: POSTGRES_PORT | ||
valueFrom: | ||
secretKeyRef: | ||
key: port | ||
name: db-credentials-test-geodata | ||
- name: POSTGRES_DB | ||
valueFrom: | ||
secretKeyRef: | ||
key: dbname | ||
name: db-credentials-test-geodata | ||
- name: POSTGRES_USER | ||
valueFrom: | ||
secretKeyRef: | ||
key: user | ||
name: db-credentials-test-geodata | ||
- name: POSTGRES_PASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
key: password | ||
name: db-credentials-test-geodata | ||
tolerations: [] |