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

HELM-64 Add nodePort to XWiki service #32

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions charts/xwiki/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ name: xwiki
version: 1.4.0-Beta.2
type: application
keywords:
- xwiki
- xwiki
home: http://xwiki.org
icon: https://www.xwiki.org/xwiki/bin/download/Main/Logo/logo-x.png
sources:
- https://github.com/xwiki-contrib/docker-xwiki
- https://github.com/xwiki-contrib/docker-xwiki
maintainers:
- name: Ashish Sharma
email: [email protected]
Expand Down
5 changes: 5 additions & 0 deletions charts/xwiki/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ spec:
targetPort: {{ .Values.service.internalPort }}
protocol: TCP
name: {{ .Values.service.name }}
{{- if (and (or (eq .Values.service.type "NodePort") (eq .Values.service.type "LoadBalancer")) (not (empty .Values.service.nodePorts.http))) }}
nodePort: {{ .Values.service.nodePorts.http }}
{{- else if eq .Values.service.type "ClusterIP" }}
nodePort: null
{{- end }}
{{- if .Values.prometheus.javaagent.enabled }}
- port: {{ .Values.prometheus.javaagent.port }}
targetPort: {{ .Values.prometheus.javaagent.port }}
Expand Down
41 changes: 26 additions & 15 deletions charts/xwiki/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,29 @@ cluster:
image:
name: xwiki
pullPolicy: IfNotPresent
## Image Tag useful when externalDB is been used
tag: ''
## Image Tag useful when externalDB is been used
tag: ""

service:
portName: node
name: http
type: ClusterIP
externalPort: 80
internalPort: 8080
## Node ports to expose
## @param service.nodePorts.http Node port for HTTP
## NOTE: choose port between <30000-32767>
##
nodePorts:
http: ""
# Set an array of externalIPs for the service
externalIPs: []
externalIPs:
[]
# - 10.20.30.40
# - 10.20.30.41
# Reference: https://kubernetes.io/docs/reference/networking/virtual-ips/#session-affinity
sessionAffinity: ClientIP

resources: {}
# limits:
# cpu: 2000m
Expand Down Expand Up @@ -75,7 +84,7 @@ volumePermissions:
## https://github.com/bitnami/charts/tree/main/bitnami/mysql
##
mysql:
## Whether to deploy a mysql server. Set false for a different database.
## Whether to deploy a mysql server. Set false for a different database.
enabled: true
auth:
rootPassword: "xwiki"
Expand Down Expand Up @@ -126,7 +135,7 @@ mysql:
## https://github.com/bitnami/charts/tree/main/bitnami/mariadb
##
mariadb:
## Whether to deploy a mysql server. Set false for a different database.
## Whether to deploy a mysql server. Set false for a different database.
enabled: false
auth:
rootPassword: "xwiki"
Expand Down Expand Up @@ -167,13 +176,14 @@ mariadb:
port=3306
socket=/opt/bitnami/mariadb/tmp/mysql.sock
pid-file=/opt/bitnami/mariadb/tmp/mysqld.pid

##
## PostgreSQL chart configuration
##
## https://github.com/helm/charts/tree/master/stable/postgresql
##
postgresql:
## Whether to deploy a postgresql server. Set false for a different database.
## Whether to deploy a postgresql server. Set false for a different database.
enabled: false
auth:
postgresPassword: "xwiki"
Expand All @@ -198,8 +208,8 @@ externalDB:
# If set to true default secret will not be created, use custom secret
customKeyRef:
enabled: false
name: ''
key: ''
name: ""
key: ""

##
## To use external solr enable solr, provide host and port
Expand All @@ -209,7 +219,8 @@ solr:
enabled: false
replicaCount: 1
image: gridexx/xwiki:solr8
extraEnvVars: []
extraEnvVars:
[]
# - name: FOO
# value: "bar"
resources: {}
Expand Down Expand Up @@ -283,7 +294,6 @@ istio:
# name: issuer
# kind: ClusterIssuer


persistence:
enabled: true
existingClaim: ""
Expand All @@ -307,14 +317,16 @@ podDisruptionBudget:
nodeSelector: {}

# Reference: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
tolerations: []
tolerations:
[]
# - key: "key"
# operator: "Equal"
# value: "value"
# effect: "NoSchedule"

# https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
affinity: {}
affinity:
{}
# nodeAffinity:
# requiredDuringSchedulingIgnoredDuringExecution:
# nodeSelectorTerms:
Expand All @@ -333,16 +345,15 @@ affinity: {}
#
imagePullSecrets: []


# Custom configuration files for xwiki
customConfigs:
# Properties key that exists, replace in line is done with value here defined.
# If key don't exists, this key and value will be appended in that specific file.
# This files are list of key: value that are translated as key=value in that file.
# xwiki.cfg:
#
#
# xwiki.properties:
#
#

# Properties to be passed to Java process with -D parameters using JAVA_OPTS
properties:
Expand Down