Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gs cloud #12

Closed
wants to merge 11 commits into from
Closed
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
44 changes: 16 additions & 28 deletions .github/workflows/UpdateHelmRepo.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Update Helm
name: Update Helm Packages

on:
push:
Expand All @@ -16,45 +16,33 @@ jobs:
- name: Set Env
run: |
echo "TAG=${GITHUB_REF:11}" >> $GITHUB_ENV

- name: Lint Helm
uses: WyriHaximus/[email protected]
with:
exec: helm lint ./geoserver && helm lint ./postgis && helm lint ./thredds
exec: helm lint ./geoserver && helm lint ./postgis && helm lint ./thredds && helm lint ./gs-cloud

- name: Package GeoServer Helm
uses: WyriHaximus/[email protected]
with:
exec: helm package ./geoserver
exec: helm package ./geoserver -d ./docs

- name: Package Thredds Helm
uses: WyriHaximus/[email protected]
with:
exec: helm package ./thredds
- name: Package PostGIS Helm
uses: WyriHaximus/[email protected]
with:
exec: helm package ./postgis
- name: Login to GHCR
if: ${{ github.event_name != 'pull_request' }}
uses: WyriHaximus/[email protected]
with:
exec: echo "${{ github.actor }}" | helm registry login -u ${{ secrets.GITHUB_TOKEN }} ghcr.io --password-stdin
- name: Push GeoServer Helm Package to GHCR
if: ${{ github.event_name != 'pull_request' }}
exec: helm package ./thredds -d ./docs

- name: Package GeoServer Cloud Helm
uses: WyriHaximus/[email protected]
with:
exec: |
export CHART_VERSION=$(grep 'version:' ./geoserver/Chart.yaml | tail -n1 | awk '{ print $2}')
helm push geoserver-${CHART_VERSION}.tgz oci://ghcr.io/aquaveo
- name: Push Thredds Helm Package to GHCR
if: ${{ github.event_name != 'pull_request' }}
exec: helm package ./gs-cloud -d ./docs

- name: Package PostGIS Helm
uses: WyriHaximus/[email protected]
with:
exec: |
export CHART_VERSION=$(grep 'version:' ./thredds/Chart.yaml | tail -n1 | awk '{ print $2}')
helm push thredds-${CHART_VERSION}.tgz oci://ghcr.io/aquaveo
- name: Push PostGIS Helm Package to GHCR
if: ${{ github.event_name != 'pull_request' }}
exec: helm package ./postgis -d ./docs

- name: Update Index yaml file
uses: WyriHaximus/[email protected]
with:
exec: |
export CHART_VERSION=$(grep 'version:' ./postgis/Chart.yaml | tail -n1 | awk '{ print $2}')
helm push postgis-${CHART_VERSION}.tgz oci://ghcr.io/aquaveo
exec: helm repo index ./docs
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
*.tar.gz
*.tar
# *.tgz
*-dev.yaml
*-prod.yaml
*.lock
Binary file added docs/gs-cloud-0.1.1.tgz
Binary file not shown.
51 changes: 42 additions & 9 deletions docs/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ entries:
geoserver:
- apiVersion: v2
appVersion: 2.8.2
created: "2023-08-01T13:44:41.635181348-06:00"
created: "2024-05-26T15:05:32.413871294-06:00"
description: GeoServer is an open source server for sharing geospatial data.
digest: c904fd2eadb4f0cac93c983218d8bc351d6b49c0af6b55c5688c4f6913e64ee5
icon: https://geoserver.org/img/geoserver-logo.png
Expand All @@ -14,7 +14,7 @@ entries:
version: 0.2.2
- apiVersion: v1
appVersion: latest
created: "2023-08-01T13:44:41.634122502-06:00"
created: "2024-05-26T15:05:32.413510211-06:00"
description: Geoserver
digest: 54e8f67108f42c169b015770af971486c5c452afa220488d6cb21ab056b1683e
name: geoserver
Expand All @@ -23,17 +23,50 @@ entries:
version: 0.1.13
- apiVersion: v1
appVersion: latest
created: "2023-08-01T13:44:41.633425252-06:00"
created: "2024-05-26T15:05:32.413175884-06:00"
description: Geoserver
digest: 31b4a4441ae2d88d20dcf18d8bbdc9fe81aa4d54f2141293a702a01483f43fda
name: geoserver
urls:
- geoserver-0.1.12.tgz
version: 0.1.12
gs-cloud:
- apiVersion: v2
appVersion: "1.0"
created: "2024-05-26T15:05:32.428613613-06:00"
dependencies:
- condition: rabbitmq.enabled
name: rabbitmq
repository: https://charts.bitnami.com/bitnami
version: 11.3.0
- condition: postgresql.enabled
name: postgresql
repository: https://charts.bitnami.com/bitnami
version: '*'
- name: geoservercloud
repository: https://camptocamp.github.io/helm-geoserver-cloud
version: '*'
description: Common dependencies for gscloud
digest: 4181c1cdd4e5af31bfe5ed39d4aec43434d6538303ac9229ecdf1a9cb6c7908d
name: gs-cloud
urls:
- gs-cloud-0.1.1.tgz
version: 0.1.1
postgis:
- apiVersion: v2
appVersion: 12-3.4
created: "2024-05-26T15:05:32.429971216-06:00"
description: PostgreSQL 12 database with PostGIS 3.4 installed.
digest: 0cdafdab057e2b835799bf8c58a9348927f8cf0fad0fedbdd0561ce67852c76c
icon: https://postgis.net/logos/postgis-logo-small.png
name: postgis
type: application
urls:
- postgis-0.2.3.tgz
version: 0.2.3
- apiVersion: v2
appVersion: 11-2.5
created: "2023-08-01T13:44:41.637342401-06:00"
created: "2024-05-26T15:05:32.429636641-06:00"
description: PostgreSQL 11 database with PostGIS 2.5 installed.
digest: a2fe70bc9861fd1711ed81189e74bf83deea6b8c8628a77248fb1d4dd10c7482
icon: https://postgis.net/logos/postgis-logo-small.png
Expand All @@ -44,7 +77,7 @@ entries:
version: 0.2.2
- apiVersion: v1
appVersion: latest
created: "2023-08-01T13:44:41.636949635-06:00"
created: "2024-05-26T15:05:32.429245196-06:00"
description: PostGIS Database
digest: cde9235283c6aefbfb121c30aeb39e6812ed063c7b36f09ca81a1f3537605e60
name: postgis
Expand All @@ -53,7 +86,7 @@ entries:
version: 0.1.13
- apiVersion: v1
appVersion: latest
created: "2023-08-01T13:44:41.636173588-06:00"
created: "2024-05-26T15:05:32.428941589-06:00"
description: PostGIS Database
digest: cf63015081eb71403bd06094b530407196f61a94b846852c7297717e5c23f447
name: postgis
Expand All @@ -63,17 +96,17 @@ entries:
thredds:
- apiVersion: v2
appVersion: 1.16.0
created: "2023-08-01T13:44:41.638778879-06:00"
created: "2024-05-26T15:05:32.430493934-06:00"
description: The THREDDS Data Server (TDS) provides catalog, metadata, and data
access services for scientific data. Every TDS publishes THREDDS catalogs that
advertise the datasets and services it makes available. THREDDS catalogs are
XML documents that list datasets and the data access services available for
the datasets
digest: 8a26bef848b5c6d5d12e0ee366178e3460187fa0b6bca360bd92f93da27eedfa
digest: a559e9ba3c8c8394654151d378429ef2a5195fe021d47097b20bbd83de93ca8d
icon: https://camo.githubusercontent.com/317090970757210…32f746872656464735f7464732d313530783135302e706e67
name: thredds
type: application
urls:
- thredds-0.2.3.tgz
version: 0.2.3
generated: "2023-08-01T13:44:41.632672427-06:00"
generated: "2024-05-26T15:05:32.412668343-06:00"
Binary file added docs/postgis-0.2.3.tgz
Binary file not shown.
Binary file modified docs/thredds-0.2.3.tgz
Binary file not shown.
2 changes: 1 addition & 1 deletion gs-cloud/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: '1.0'
description: Common dependencies for gscloud
name: gs-cloud
version: 0.1.0
version: 0.1.1
dependencies:
- name: 'rabbitmq'
version: 11.3.0
Expand Down
Binary file added gs-cloud/charts/geoservercloud-0.1.0.tgz
Binary file not shown.
Binary file added gs-cloud/charts/postgresql-13.4.1.tgz
Binary file not shown.
Binary file added gs-cloud/charts/rabbitmq-11.3.0.tgz
Binary file not shown.
17 changes: 14 additions & 3 deletions gs-cloud/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,14 @@ rabbitmq:
persistence:
enabled: false

resources: &common-resources
requests:
memory: 512Mi
cpu: 0.1
limits:
memory: 4Gi
cpu: 4.0

additionalVolumes: &additional-volumes
datadir:
persistentVolumeClaim:
Expand Down Expand Up @@ -196,6 +204,8 @@ additional-stuff: &additional-stuff

containers:
spring:
resources:
<<: *common-resources
env:
<<: *env-override
volumeMounts:
Expand Down Expand Up @@ -232,6 +242,7 @@ geoservercloud:
services:
gateway:
service:
name: 'gs-cloud-service-gateway'
annotations: {}
labels: {}
<<: *common-service-definition
Expand All @@ -251,7 +262,7 @@ geoservercloud:
initContainers:
<<: *additional-init-containers
wms:
replicaCount: 2
replicaCount: 1
<<: *additional-stuff
service:
<<: *common-service-definition
Expand All @@ -264,14 +275,14 @@ geoservercloud:
initContainers:
<<: *additional-init-containers
wfs:
replicaCount: 2
replicaCount: 1
<<: *additional-stuff
service:
<<: *common-service-definition
initContainers:
<<: *additional-init-containers
gwc:
replicaCount: 2
replicaCount: 1
<<: *additional-stuff
service:
<<: *common-service-definition
Expand Down
6 changes: 3 additions & 3 deletions postgis/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: 'v2'
appVersion: '11-2.5'
description: 'PostgreSQL 11 database with PostGIS 2.5 installed.'
appVersion: '12-3.4'
description: 'PostgreSQL 12 database with PostGIS 3.4 installed.'
icon: https://postgis.net/logos/postgis-logo-small.png
name: 'postgis'
type: 'application'
version: 0.2.2
version: 0.2.3
2 changes: 1 addition & 1 deletion postgis/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,4 @@ spec:
volumes:
- name: postgis-persistent-storage
persistentVolumeClaim:
claimName: postgis-pv-claim
claimName: {{ .Values.PersistentVolumeClaim.name }}
2 changes: 1 addition & 1 deletion postgis/templates/pvc.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: postgis-pv-claim
name: {{ .Values.PersistentVolumeClaim.name }}
labels:
app.kubernetes.io/name: {{ include "postgis.name" . }}
helm.sh/chart: {{ include "postgis.chart" . }}
Expand Down
5 changes: 4 additions & 1 deletion postgis/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ replicaCount: 1

image:
repository: postgis/postgis
tag: 11-2.5
tag: 12-3.4
pullPolicy: IfNotPresent

postgres_user: postgres
Expand Down Expand Up @@ -51,6 +51,9 @@ service:
storageClass:
storageClassName: ''

PersistentVolumeClaim:
name: postgis-pv-claim

resources:
requests:
cpu: 100m
Expand Down
9 changes: 6 additions & 3 deletions thredds/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@ metadata:
spec:
type: {{ .Values.service.type }}
ports:
- name: main-node
port: 8080
targetPort: 8080
{{- range $port := .Values.service.ports }}
- name: {{ $port.name }}
port: {{ $port.port }}
targetPort: {{ $port.targetPort }}
{{- end }}

selector:
app.kubernetes.io/name: {{ include "thredds.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
5 changes: 4 additions & 1 deletion thredds/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ persistentVolumeClaim:
service:
type: ClusterIP
port: 80

ports:
- name: main-node
port: 8080
targetPort: 8080
env:
- name: TDM_PW
value: 'tdm_pass'
Expand Down
Loading