diff --git a/opendata-ogc-features/Chart.yaml b/opendata-ogc-features/Chart.yaml new file mode 100644 index 0000000..adbc4bc --- /dev/null +++ b/opendata-ogc-features/Chart.yaml @@ -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" diff --git a/opendata-ogc-features/README.md b/opendata-ogc-features/README.md new file mode 100644 index 0000000..bb651d5 --- /dev/null +++ b/opendata-ogc-features/README.md @@ -0,0 +1,3 @@ +# Opendata services - data API +Source code: https://github.com/georchestra/data-api + diff --git a/opendata-ogc-features/templates/opendata-ogc-features-depl.yaml b/opendata-ogc-features/templates/opendata-ogc-features-depl.yaml new file mode 100644 index 0000000..44c968a --- /dev/null +++ b/opendata-ogc-features/templates/opendata-ogc-features-depl.yaml @@ -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 }} \ No newline at end of file diff --git a/opendata-ogc-features/templates/opendata-ogc-features-svc.yaml b/opendata-ogc-features/templates/opendata-ogc-features-svc.yaml new file mode 100644 index 0000000..fc53d91 --- /dev/null +++ b/opendata-ogc-features/templates/opendata-ogc-features-svc.yaml @@ -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 diff --git a/opendata-ogc-features/values.yaml b/opendata-ogc-features/values.yaml new file mode 100644 index 0000000..247b8b0 --- /dev/null +++ b/opendata-ogc-features/values.yaml @@ -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: []