Skip to content

Commit

Permalink
add ability to configure service annotations (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
edevosc2c authored May 13, 2024
1 parent 0b558d3 commit 9b91e4f
Show file tree
Hide file tree
Showing 18 changed files with 107 additions and 3 deletions.
4 changes: 4 additions & 0 deletions templates/analytics/analytics-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ metadata:
labels:
{{- include "georchestra.labels" . | nindent 4 }}
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-analytics
{{- with $webapp.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
ports:
- port: 8080
Expand Down
5 changes: 4 additions & 1 deletion templates/cas/cas-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ metadata:
labels:
{{- include "georchestra.labels" . | nindent 4 }}
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-cas

{{- with $webapp.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
ports:
- port: 8080
Expand Down
4 changes: 4 additions & 0 deletions templates/console/console-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ metadata:
labels:
{{- include "georchestra.labels" . | nindent 4 }}
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-console
{{- with $webapp.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
ports:
- port: 8080
Expand Down
4 changes: 4 additions & 0 deletions templates/datafeeder/datafeeder-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ metadata:
labels:
{{- include "georchestra.labels" . | nindent 4 }}
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-datafeeder
{{- with $webapp.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
ports:
- port: 8080
Expand Down
4 changes: 4 additions & 0 deletions templates/datafeeder/import-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ metadata:
labels:
{{- include "georchestra.labels" . | nindent 4 }}
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-datafeeder-import
{{- with $webapp.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
ports:
- port: 80
Expand Down
4 changes: 4 additions & 0 deletions templates/extractorapp/extractorapp-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ metadata:
labels:
{{- include "georchestra.labels" . | nindent 4 }}
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-extractorapp
{{- with $webapp.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
ports:
- port: 8080
Expand Down
4 changes: 4 additions & 0 deletions templates/gateway/gateway-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ metadata:
labels:
{{- include "georchestra.labels" . | nindent 4 }}
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-gateway
{{- with $webapp.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
ports:
- port: 8080
Expand Down
4 changes: 4 additions & 0 deletions templates/geonetwork/elasticsearch/es-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ metadata:
labels:
{{- include "georchestra.labels" . | nindent 4 }}
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-gn4-elasticsearch
{{- with $webapp.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
ports:
- port: 9200
Expand Down
4 changes: 4 additions & 0 deletions templates/geonetwork/geonetwork-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ metadata:
labels:
{{- include "georchestra.labels" . | nindent 4 }}
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-geonetwork
{{- with $webapp.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
ports:
- port: 8080
Expand Down
5 changes: 5 additions & 0 deletions templates/geonetwork/kibana/kibana-svc.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- $webapp := .Values.georchestra.webapps.geonetwork.kibana -}}
{{- if .Values.georchestra.webapps.geonetwork.enabled -}}
apiVersion: v1
kind: Service
Expand All @@ -6,6 +7,10 @@ metadata:
labels:
{{- include "georchestra.labels" . | nindent 4 }}
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-gn4-kibana
{{- with $webapp.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
ports:
- port: 5601
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
{{- if and .Values.georchestra.webapps.geonetwork.enabled .Values.georchestra.webapps.geonetwork.ogc_api_records.enabled -}}
{{- $webapp := .Values.georchestra.webapps.geonetwork.ogc_api_records -}}
{{- if and .Values.georchestra.webapps.geonetwork.enabled $webapp.enabled -}}
apiVersion: v1
kind: Service
metadata:
name: {{ include "georchestra.fullname" . }}-gn4-ogc-api-records-svc
labels:
{{- include "georchestra.labels" . | nindent 4 }}
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-gn4-ogc-api-records
{{- with $webapp.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
ports:
- port: 8080
Expand Down
4 changes: 4 additions & 0 deletions templates/geoserver/geoserver-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ metadata:
labels:
{{- include "georchestra.labels" . | nindent 4 }}
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-geoserver
{{- with $webapp.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
ports:
- port: 8080
Expand Down
7 changes: 6 additions & 1 deletion templates/header/header-svc.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
{{- if .Values.georchestra.webapps.header.enabled -}}
{{- $webapp := .Values.georchestra.webapps.header -}}
{{- if $webapp.enabled -}}
apiVersion: v1
kind: Service
metadata:
name: {{ include "georchestra.fullname" . }}-header-svc
labels:
{{- include "georchestra.labels" . | nindent 4 }}
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-header
{{- with $webapp.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
ports:
- port: 8080
Expand Down
4 changes: 4 additions & 0 deletions templates/ldap/openldap-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ metadata:
labels:
{{- include "georchestra.labels" . | nindent 4 }}
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-ldap
{{- with $webapp.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
ports:
- port: 389
Expand Down
4 changes: 4 additions & 0 deletions templates/mapfishapp/mapfishapp-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ metadata:
labels:
{{- include "georchestra.labels" . | nindent 4 }}
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-mapfishapp
{{- with $webapp.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
ports:
- port: 8080
Expand Down
4 changes: 4 additions & 0 deletions templates/mapstore/mapstore-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ metadata:
labels:
{{- include "georchestra.labels" . | nindent 4 }}
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-mapstore
{{- with $webapp.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
ports:
- port: 8080
Expand Down
4 changes: 4 additions & 0 deletions templates/security-proxy/security-proxy-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ metadata:
labels:
{{- include "georchestra.labels" . | nindent 4 }}
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-sp
{{- with $webapp.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
ports:
- port: 8080
Expand Down
34 changes: 34 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,25 @@ georchestra:
docker_image: georchestra/analytics:latest
extra_environment: []
# registry_secret: default
service:
annotations: {}
cas:
enabled: true
replicaCount: "1"
docker_image: georchestra/cas:latest
extra_environment: []
# registry_secret: default
service:
annotations: {}
console:
enabled: true
replicaCount: "1"
docker_image: georchestra/console:latest
extra_environment: []
lifecycle: {}
# registry_secret: default
service:
annotations: {}
datafeeder:
enabled: true # won't deploy if datafeeder_frontend is not enable
replicaCount: "1"
Expand All @@ -44,6 +50,8 @@ georchestra:
# registry_secret: default
envsubst:
enabled: true
service:
annotations: {}
datafeeder_frontend:
# Matches datafeeder/import-xxx.yaml templates in the helm chart
enabled: true # won't deploy if datafeeder is not enable
Expand All @@ -52,12 +60,16 @@ georchestra:
lifecycle: {}
extra_environment: []
# registry_secret: default
service:
annotations: {}
extractorapp:
enabled: false
replicaCount: "1"
docker_image: georchestra/extractorapp:latest
extra_environment: []
# registry_secret: default
service:
annotations: {}
geonetwork:
enabled: true
replicaCount: "1"
Expand All @@ -80,6 +92,8 @@ georchestra:
extra_environment: []
envsubst:
enabled: true
service:
annotations: {}
elasticsearch:
replicaCount: "1"
resources:
Expand All @@ -88,14 +102,20 @@ georchestra:
requests:
memory: 5120Mi
image: docker.elastic.co/elasticsearch/elasticsearch:7.15.1
service:
annotations: {}
kibana:
replicaCount: "1"
image: docker.elastic.co/kibana/kibana:7.15.1
service:
annotations: {}
# automatically clean some logs of geonetwork
housekeeping:
harvester_logs:
enabled: false
schedule: "0 1 * * *"
service:
annotations: {}
geoserver:
enabled: true
replicaCount: "1"
Expand All @@ -110,18 +130,24 @@ georchestra:
# variable above.
extra_volumeMounts: []
# registry_secret: default
service:
annotations: {}
header:
enabled: true
replicaCount: "1"
docker_image: georchestra/header:latest
extra_environment: []
# registry_secret: default
service:
annotations: {}
mapfishapp:
enabled: false
replicaCount: "1"
docker_image: georchestra/mapfishapp:latest
extra_environment: []
# registry_secret: default
service:
annotations: {}
mapstore:
enabled: true
replicaCount: "1"
Expand All @@ -132,6 +158,8 @@ georchestra:
command: []
args: []
lifecycle: {}
service:
annotations: {}
openldap:
enabled: true
replicaCount: "1"
Expand All @@ -146,6 +174,8 @@ georchestra:
# - name: my-sidecar
# image: nginx:latest
# registry_secret: default
service:
annotations: {}
proxy:
enabled: true
replicaCount: "1"
Expand All @@ -155,13 +185,17 @@ georchestra:
# registry_secret: default
envsubst:
enabled: true
service:
annotations: {}
gateway:
enabled: false
replicaCount: "1"
docker_image: georchestra/gateway:latest
environment:
JAVA_TOOL_OPTIONS: "-Dgeorchestra.datadir=/etc/georchestra"
extra_environment: []
service:
annotations: {}
datadir:
volume:
- name: georchestra-datadir
Expand Down

0 comments on commit 9b91e4f

Please sign in to comment.