Skip to content

Commit

Permalink
adding opendata-ogc-features chart
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanmi151 committed Sep 6, 2024
1 parent 1997903 commit 4d71a9c
Show file tree
Hide file tree
Showing 5 changed files with 114 additions and 0 deletions.
9 changes: 9 additions & 0 deletions opendata-ogc-features/Chart.yaml
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"
3 changes: 3 additions & 0 deletions opendata-ogc-features/README.md
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 opendata-ogc-features/templates/opendata-ogc-features-depl.yaml
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 opendata-ogc-features/templates/opendata-ogc-features-svc.yaml
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
46 changes: 46 additions & 0 deletions opendata-ogc-features/values.yaml
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: []

0 comments on commit 4d71a9c

Please sign in to comment.