-
Notifications
You must be signed in to change notification settings - Fork 27
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
tharanath
committed
Mar 25, 2024
1 parent
f5c903e
commit f59a44f
Showing
21 changed files
with
1,462 additions
and
14 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 |
---|---|---|
|
@@ -11,7 +11,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
|
@@ -20,18 +20,6 @@ jobs: | |
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "[email protected]" | ||
- name: Dereference README symlink | ||
run: | | ||
# Define the path to the dependency chart directory | ||
DEPENDENCY_CHART_DIR="charts/common" | ||
# Find the README symlink | ||
README_SYMLINK="${DEPENDENCY_CHART_DIR}/README.md" | ||
# Dereference the symlink | ||
# Replace the symlink with the actual README content | ||
cat "${README_SYMLINK}" > "${README_SYMLINK}.tmp" && mv "${README_SYMLINK}.tmp" "${README_SYMLINK}" | ||
- name: Run chart-releaser | ||
uses: lucernae/[email protected] | ||
with: | ||
|
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 |
---|---|---|
@@ -1 +1 @@ | ||
v0.1.4/README.md | ||
v0.1.5/README.md |
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,28 @@ | ||
apiVersion: v2 | ||
name: geoserver-standalone | ||
|
||
version: 0.1.4 | ||
appVersion: 2.24.2 | ||
|
||
description: Chart for GeoServer | ||
|
||
keywords: | ||
- GeoServer | ||
- GIS | ||
|
||
home: http://geoserver.org | ||
sources: | ||
- https://github.com/geoserver/geoserver | ||
maintainers: | ||
- name: tharanath-kartoza | ||
email: [email protected] | ||
|
||
dependencies: | ||
- condition: postgis.enabled | ||
name: postgis | ||
repository: https://kartoza.github.io/charts | ||
tags: | ||
- geoserver-database | ||
version: 0.2.4 | ||
|
||
icon: https://raw.githubusercontent.com/kartoza/charts/master/assets/logo/GeoServer_500.png |
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,91 @@ | ||
# GeoServer | ||
|
||
This is Kartoza's GeoServer Chart | ||
|
||
GeoServer is an open source server for sharing geospatial data. | ||
|
||
|
||
# How to Use | ||
|
||
For helm: | ||
|
||
```bash | ||
helm install release-name kartoza/geoserver-standalone | ||
``` | ||
|
||
# Intro | ||
|
||
This chart bootstrap a GeoServer installation. | ||
Most GeoServer packages are shipped with Jetty or Tomcat Server to be directly used in production instance. | ||
On top of that you can cascade with Nginx or Apache if you need more control over the routing mechanism. | ||
|
||
# What it can do | ||
|
||
The default install uses kartoza/geoserver image, which can do the following: | ||
|
||
- Default TLS enabled | ||
- Generate new datadir at startup if volume empty | ||
- Some plugins are shipped | ||
|
||
Full list of options can be seen in: https://github.com/kartoza/docker-geoserver/ | ||
|
||
# Parameters | ||
|
||
| Parameter | Description | | ||
|---|---| | ||
| image.registry | Docker image registry | | ||
| image.repository | Docker image repository | | ||
| image.tag | Docker image tag | | ||
| image.digest | Apache image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag | | ||
| image.pullPolicy | Docker image pull policy | | ||
| global.imageRegistry | Global Docker image registry | | ||
| global.imagePullSecrets | Global Docker registry secret names as an array | | ||
| nameOverride | String to partially override common.names.fullname | | ||
| fullnameOverride | String to fully override common.names.fullname | | ||
| replicas | Number of replicas of the Geoserver deployment | | ||
| geoserverUser | GeoServer super user name | | ||
| geoserverPassword | GeoServer password for super user. If you fill it, it will then stored in k8s secret. | | ||
| annotations | Pod annotations | | ||
| labels | Extra labels for Apache pods | | ||
| affinity | Affinity for pod assignment | | ||
| nodeSelector | Node labels for pod assignment | | ||
| tolerations | Tolerations for pod assignment | | ||
| existingSecret | [tpl string] The name of the secret to get the geoserver password | | ||
| extraPodEnv | [tpl string] Provide extra environment that will be passed into pods. Useful for non default image. | | ||
| extraSecret | [tpl string] Provide extra secret that will be included in the pods. Useful for non default image. | | ||
| configMaps | [tpl string] Provide extra config map that will be included in the pods. Useful for non default image. | | ||
| extraVolumeMounts | [tpl string] Provide extra volume mounts declaration that will be included in the pods. Useful if you want to mount extra things. | | ||
| extraVolume | [tpl string] Configuration pair with extraVolumeMounts. Declare which volume to mount in the pods. | | ||
| strategy.type | specifies the strategy used to replace old Pods by new ones | | ||
| persistence.enabled | For geoserverDataDir volume. Default to true. If set, it will make a volume claim. | | ||
| persistence.existingClaim | For geoserverDataDir volume. Default to false. If set, it will use an existing claim name provided. | | ||
| persistence.mountPath | For geoserverDataDir volume. The path where the volume will be in the pods. Make sure that it corresponds to your geoserverDataDir key | | ||
| persistence.subPath | For geoserverDataDir volume. The path inside the the volume to mount to. Useful if you want to reuse the same volume but mount the subpath for different services. | | ||
| persistence.size | For geoserverDataDir volume. Size of the volume | | ||
| persistence.accessModes | For geoserverDataDir volume. K8s Access mode of the volume. | | ||
| persistentVolumeClaimRetentionPolicy | describes the lifecycle of persistent volume claims created from volumeClaimTemplates | | ||
| service.type | The type of kubernetes service to be created. Leave it be for Headless service | | ||
| service.loadBalancerIP | Only used if you use LoadBalancer service.type | | ||
| service.externalIPs | External IPs to use for the service | | ||
| service.nodePort | Node port for the service | | ||
| service.port | External port to use/expose | | ||
| rbac.enabled | Enable Role and rolebinding for priveledged PSP | | ||
| serviceAccount.create | Wether to create a serviceaccount or use an existing one | | ||
| serviceAccount.annotations | Serviceaccount annotations | | ||
| serviceAccount.name | The name of the sevice account that the deployment will use | | ||
| resources.limits | The resources limits for the container | | ||
| resources.requests | The requested resources for the container | | ||
| autoscaling.enabled | Enable Horizontal POD autoscaling | | ||
| autoscaling.minReplicas | Minimum number of replicas | | ||
| autoscaling.maxReplicas | Maximum number of replicas | | ||
| autoscaling.targetCPUUtilizationPercentage | Target CPU utilization percentage | | ||
| autoscaling.targetMemoryUtilizationPercentage | Target Memory utilization percentage | | ||
| podSecurityContext | Optional security context for the Geoserver Pod | | ||
| containerSecurityContext | Optional security context for the Geoserver Container | | ||
| ingress.enabled | Switch to true to enable ingress resource | | ||
| ingress.host | The host name/site name the ingress will serve | | ||
| ingress.tls.enabled | Set it to true to enable HTTPS | | ||
| ingress.className | IngressClass that will be be used to implement the Ingress | | ||
| ingress.annotations | Additional annotations for the Ingress resource. To enable certificate autogeneration, place here your cert-manager annotations | | ||
| ingress.tls.secretName | Providing this will activate HTTPS ingress based on the provided certificate | | ||
| customProbes | An override options for pod probe/health check | |
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,6 @@ | ||
# GeoServer | ||
|
||
This is Kartoza's GeoServer Kubernetes charts | ||
|
||
GeoServer is an open source server for sharing geospatial data. | ||
|
Binary file not shown.
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,19 @@ | ||
--- | ||
|
||
geoserverUser: superadmin | ||
geoserverPassword: superpasswordlol | ||
|
||
persistence: | ||
geoserverDataDir: | ||
enabled: true | ||
storageClass: "default" | ||
mountPath: /opt/mygeoserver/data_dir | ||
|
||
ingress: | ||
enabled: true | ||
host: geoserver.test | ||
annotations: | ||
cert-manager.io/cluster-issuer: selfsigned-issuer | ||
tls: | ||
enabled: true | ||
secretName: geoserver-tls |
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,7 @@ | ||
Check that the Geoserver is up and running: | ||
|
||
kubectl get deployment/{{ include "geoserver.fullname" . }} -n {{ .Release.Namespace }} | ||
|
||
Check that the secret has been created: | ||
|
||
kubectl get secret/{{ include "geoserver.fullname" . }} -n {{ .Release.Namespace }} |
203 changes: 203 additions & 0 deletions
203
charts/geoserver-standalone/v0.1.5/templates/_helpers.tpl
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,203 @@ | ||
{{/* | ||
Expand the name of the chart. | ||
*/}} | ||
{{- define "geoserver.name" -}} | ||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
|
||
{{/* | ||
Create a default fully qualified app name. | ||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). | ||
If release name contains chart name it will be used as a full name. | ||
*/}} | ||
{{- define "geoserver.fullname" -}} | ||
{{- if .Values.fullnameOverride }} | ||
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} | ||
{{- else }} | ||
{{- $name := default .Chart.Name .Values.nameOverride }} | ||
{{- if contains $name .Release.Name }} | ||
{{- .Release.Name | trunc 63 | trimSuffix "-" }} | ||
{{- else }} | ||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
|
||
{{/* | ||
Create chart name and version as used by the chart label. | ||
*/}} | ||
{{- define "geoserver.chart" -}} | ||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
|
||
{{/* | ||
Common labels | ||
*/}} | ||
{{- define "geoserver.labels" -}} | ||
helm.sh/chart: {{ include "geoserver.chart" . }} | ||
{{ include "geoserver.selectorLabels" . }} | ||
{{- if .Chart.AppVersion }} | ||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} | ||
{{- end }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
{{- end }} | ||
|
||
{{/* | ||
Selector labels | ||
*/}} | ||
{{- define "geoserver.selectorLabels" -}} | ||
app.kubernetes.io/name: {{ include "geoserver.name" . }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
{{- end }} | ||
|
||
|
||
{{/* | ||
Get the configMap key. | ||
*/}} | ||
{{- define "geoserver.configName" -}} | ||
{{- if .Values.existingConfig -}} | ||
{{- printf "%s" (tpl .Values.existingConfig $) -}} | ||
{{- else -}} | ||
{{- printf "%s" (include "geoserver.fullname" .) -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Get the password secret. | ||
*/}} | ||
{{- define "geoserver.secretName" -}} | ||
{{- if .Values.existingSecret -}} | ||
{{- printf "%s" (tpl .Values.existingSecret $) -}} | ||
{{- else -}} | ||
{{- printf "%s" (include "geoserver.fullname" .) -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
|
||
{{/* | ||
Return GeoServer user | ||
*/}} | ||
{{- define "geoserver.user" -}} | ||
{{- if .Values.geoserverUser -}} | ||
{{- .Values.geoserverUser -}} | ||
{{- else -}} | ||
{{- randAlphaNum 7 -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
|
||
{{/* | ||
Return GeoServer password | ||
*/}} | ||
{{- define "geoserver.password" -}} | ||
{{- if .Values.geoserverPassword -}} | ||
{{- .Values.geoserverPassword -}} | ||
{{- else -}} | ||
{{- randAlphaNum 12 -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Create the name of the service account to use | ||
*/}} | ||
{{- define "geoserver.serviceAccountName" -}} | ||
{{- if .Values.serviceAccount.create }} | ||
{{- default (include "geoserver.fullname" .) .Values.serviceAccount.name }} | ||
{{- else }} | ||
{{- default "default" .Values.serviceAccount.name }} | ||
{{- end }} | ||
{{- end }} | ||
|
||
{{/* | ||
Return GeoServer Data Dir storageClass declaration | ||
*/}} | ||
{{- define "geoserver.geoserverDataDir.storageClass" -}} | ||
{{- if .Values.global -}} | ||
{{- if .Values.global.storageClass -}} | ||
{{- if (eq "-" .Values.global.storageClass) -}} | ||
{{- printf "storageClassName: \"\"" -}} | ||
{{- else }} | ||
{{- printf "storageClassName: %s" .Values.global.storageClass -}} | ||
{{- end -}} | ||
{{- else -}} | ||
{{- if .Values.persistence.geoserverDataDir.storageClass -}} | ||
{{- if (eq "-" .Values.persistence.geoserverDataDir.storageClass) -}} | ||
{{- printf "storageClassName: \"\"" -}} | ||
{{- else }} | ||
{{- printf "storageClassName: %s" .Values.persistence.geoserverDataDir.storageClass -}} | ||
{{- end -}} | ||
{{- end -}} | ||
{{- end -}} | ||
{{- else -}} | ||
{{- if .Values.persistence.geoserverDataDir.storageClass -}} | ||
{{- if (eq "-" .Values.persistence.geoserverDataDir.storageClass) -}} | ||
{{- printf "storageClassName: \"\"" -}} | ||
{{- else }} | ||
{{- printf "storageClassName: %s" .Values.persistence.geoserverDataDir.storageClass -}} | ||
{{- end -}} | ||
{{- end -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Return the Postgis Hostname | ||
*/}} | ||
{{- define "geoserver.databaseHost" -}} | ||
{{- if .Values.postgis.enabled }} | ||
{{- printf "%s" (include "geoserver.fullname" .) -}} | ||
{{- else -}} | ||
{{- printf "%s" .Values.externalDatabase.host -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Return the Postgis Port | ||
*/}} | ||
{{- define "geoserver.databasePort" -}} | ||
{{- if .Values.postgis.enabled }} | ||
{{- printf "5432" -}} | ||
{{- else -}} | ||
{{- printf "%d" (.Values.externalDatabase.port | int ) -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Return the Postgis Database Name | ||
*/}} | ||
{{- define "geoserver.databaseName" -}} | ||
{{- if .Values.postgis.enabled }} | ||
{{- printf "%s" .Values.postgis.auth.database -}} | ||
{{- else -}} | ||
{{- printf "%s" .Values.externalDatabase.database -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Return the Postgis User | ||
*/}} | ||
{{- define "geoserver.databaseUser" -}} | ||
{{- if .Values.postgis.enabled }} | ||
{{- printf "%s" .Values.postgis.auth.username -}} | ||
{{- else -}} | ||
{{- printf "%s" .Values.externalDatabase.user -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
|
||
{{/* | ||
Return the Postgis Secret Name | ||
*/}} | ||
{{- define "geoserver.databaseSecretName" -}} | ||
{{- if and (.Values.postgis.enabled) (not .Values.postgis.existingSecret) -}} | ||
{{- printf "%s" (include "geoserver.fullname" .) -}} | ||
{{- else if and (.Values.postgis.enabled) (.Values.postgis.existingSecret) -}} | ||
{{- printf "%s" .Values.postgis.auth.existingSecret -}} | ||
{{- else }} | ||
{{- if .Values.externalDatabase.existingSecret -}} | ||
{{- printf "%s" .Values.externalDatabase.existingSecret -}} | ||
{{- else -}} | ||
{{- printf "%s-%s" .Release.Name "externaldb" -}} | ||
{{- end -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
Oops, something went wrong.