Skip to content

Commit

Permalink
xnat-web add ingressClassName to ingress template and values file, re…
Browse files Browse the repository at this point in the history
…moving legacy setting
  • Loading branch information
dean-taylor committed Feb 22, 2024
1 parent b322df9 commit 2e0a716
Show file tree
Hide file tree
Showing 3 changed files with 124 additions and 36 deletions.
5 changes: 4 additions & 1 deletion releases/xnat/charts/xnat-web/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.ingressClassName }}
ingressClassName: {{ .Values.ingress.ingressClassName }}
{{- end }}
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
Expand All @@ -71,4 +74,4 @@ spec:
{{- end }}
{{- else }}
{{- end }}
{{- end }}
{{- end }}
4 changes: 2 additions & 2 deletions releases/xnat/charts/xnat-web/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ service:
ingress:
enabled: false
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
# nginx.ingress.kubernetes.io/whitelist-source-range: "130.95.0.0/16"
# nginx.ingress.kubernetes.io/proxy-connect-timeout: "150"
# nginx.ingress.kubernetes.io/proxy-send-timeout: "100"
# nginx.ingress.kubernetes.io/proxy-read-timeout: "100"
# nginx.ingress.kubernetes.io/proxy-buffers-number: "4"
# nginx.ingress.kubernetes.io/proxy-buffer-size: "32k"
# ingressClassName: nginx
hosts:
- host: "chart-example.local"
tls: []
Expand Down Expand Up @@ -231,4 +231,4 @@ probes:
periodSeconds: 10
timeoutSeconds: 3

timezone: ""
timezone: ""
151 changes: 118 additions & 33 deletions releases/xnat/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,45 +22,113 @@ postgresqlExternalName: ""
postgresqlExternalIPs: []
# - 130.95.126.8

# For more xnat-web details and values reference
# <https://github.com/Australian-Imaging-Service/charts/tree/main/releases/xnat/charts/xnat-web>
#
xnat-web:
enabled: true

# https://wiki.xnat.org/documentation/xnat-administration/connecting-xnat-to-dicom-scanners-and-pacs
# DICOM C-STORE Service Class Provider (SCP)
# DICOM Application Entity (AE)
dicom_scp:
serviceType: "NodePort"
replicaCount: 1

image:
repository: ghcr.io/australian-imaging-service/xnat
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: ""

imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""

serviceAccount:
# Specifies whether a service account should be created
create: true
# Annotations to add to the service account
annotations: {}
# metallb.universe.tf/address-pool: production-public-ips
# metallb.universe.tf/allow-shared-ip: true
recievers:
- ae_title: "XNAT"
port: 8104
# nodePort: 32514
# loadBalancerIp: "130.95.27.91"
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name: ""

podAnnotations: {}

podSecurityContext: {}
# fsGroup: 2000

securityContext: {}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000

service:
port: 80
type: ClusterIP

ingress:
enabled: false
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
# nginx.ingress.kubernetes.io/whitelist-source-range: "130.95.0.0/16"
# nginx.ingress.kubernetes.io/proxy-connect-timeout: "150"
# nginx.ingress.kubernetes.io/proxy-send-timeout: "100"
# nginx.ingress.kubernetes.io/proxy-read-timeout: "100"
# nginx.ingress.kubernetes.io/proxy-buffers-number: "4"
# nginx.ingress.kubernetes.io/proxy-buffer-size: "32k"
# ingressClassName: nginx
hosts:
- host: "chart-example.local"
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local

# xnat-web plugins must be referenced here to be enabled
resources:
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'
requests:
cpu: 250m
memory: 4000Mi
limits:
cpu: 250m
memory: 4000Mi

# nonheapmem is recommended to be set at 40-50% of the request/limit memory for XNAT
nonheapmem: 2000Mi

autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 100
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80

nodeSelector: {}

tolerations: []

affinity: {}

persistence:
cache:
accessMode: ReadWriteOnce
mountPath: "/data/xnat/cache"
# storageClass: "-"
size: 10Gi

volumes:
archive:
accessMode: ReadWriteMany
#existingClaim: ""
mountPath: "/data/xnat/archive"
#storageClass: "-"
size: 1Ti
prearchive:
accessMode: ReadWriteMany
#existingClaim: ""
mountPath: "/data/xnat/prearchive"
#storageClass: "-"
size: 1Ti

plugins: {}
#container-service: []
# Uncomment OHIF viewer line below for XNAT 1.8.2 and higher
Expand Down Expand Up @@ -145,21 +213,38 @@ xnat-web:
# givenNameProperty: given_name
# familyNameProperty: family_name

# xnat-web persistant volume settings
volumes:
archive:
#existingClaim: ""
#storageClass: "-"
size: 1Gi
prearchive:
#existingClaim: ""
#storageClass: "-"
size: 1Gi
# https://wiki.xnat.org/documentation/xnat-administration/connecting-xnat-to-dicom-scanners-and-pacs
# DICOM C-STORE Service Class Provider (SCP)
# DICOM Application Entity (AE)
dicom_scp:
serviceType: "NodePort"
annotations: {}
# metallb.universe.tf/address-pool: production-public-ips
# metallb.universe.tf/allow-shared-ip: true
recievers:
- ae_title: "XNAT"
port: 8104
# nodePort: 32514
# loadBalancerIp: "130.95.27.91"

# xnat-web postgresql client setting overrides
# these values can be set in the global section
postgresql:
postgresqlDatabase: "xnat"
postgresqlPassword: "xnat"
postgresqlUsername: "xnat"
postgresqlDatabase: "xnat_web"
postgresqlUsername: "xnat_web"
#postgresqlPassword: ""

probes:
startup:
# adjust below values to suit the startup time. Below startup time is 15*10=150s
failureThreshold: 15
periodSeconds: 10
liveness:
failureThreshold: 1
periodSeconds: 10
timeoutSeconds: 5
readiness:
failureThreshold: 1
periodSeconds: 10
timeoutSeconds: 3

timezone: ""

0 comments on commit 2e0a716

Please sign in to comment.