Skip to content

Commit

Permalink
Use more variables especially from aute-deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
simar0at committed May 13, 2024
1 parent 793de5d commit e64dba4
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 62 deletions.
28 changes: 0 additions & 28 deletions chart/templates/acme-certificate.yaml

This file was deleted.

25 changes: 16 additions & 9 deletions chart/templates/deployment-iipsrv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
selector:
matchLabels:
{{- include "iipimage.selectorLabels" . | nindent 6 }}
app.kubernetes.io/component: iipsrv
app.kubernetes.io/component: {{ .Chart.Name }}-iipsrv
template:
metadata:
{{- with .Values.podAnnotations }}
Expand All @@ -20,12 +20,22 @@ spec:
{{- end }}
labels:
{{- include "iipimage.selectorLabels" . | nindent 8 }}
app.kubernetes.io/component: iipsrv
app.kubernetes.io/component: {{ .Chart.Name }}-iipsrv
spec:
containers:
- env:
- name: FILESYSTEM_PREFIX
value: /data/forIIIF/
- name: {{ .Chart.Name }}-iipsrv
# image: {{ template "iipimage.imagename" . }}
image: "ghcr.io/acdh-oeaw/iipsrv/iipsrv"
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- if .Values.application.secretName }}
envFrom:
- secretRef:
name: {{ .Values.application.secretName }}
{{- if .Values.extraEnvFrom }}
{{- toYaml .Values.extraEnvFrom | nindent 8 }}
{{- end }}
{{- end }}
env:
- name: JPEG_QUALITY
value: "50"
- name: LOGFILE
Expand All @@ -38,10 +48,7 @@ spec:
value: iiif/images=>IIIF
- name: VERBOSITY
value: "5"
image: "ghcr.io/acdh-oeaw/iipsrv/iipsrv"
# {{ .Values.image.tag | default .Chart.AppVersion }}
imagePullPolicy: IfNotPresent
name: {{ .Chart.Name }}-iipsrv
ports:
- containerPort: 9000
name: iipsrv
Expand Down Expand Up @@ -92,4 +99,4 @@ spec:
volumes:
- name: image-data
persistentVolumeClaim:
claimName: iiif-picture-storage
claimName: {{ .Values.persistence.imageStoragePVC }}
2 changes: 1 addition & 1 deletion chart/templates/deployment-imageserver-rev-proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,6 @@ spec:
volumes:
- name: image-data
persistentVolumeClaim:
claimName: iiif-picture-storage
claimName: {{ .Values.persistence.imageStoragePVC }}
- emptyDir: {}
name: lighttpd-tmp
33 changes: 16 additions & 17 deletions chart/templates/deployment-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
selector:
matchLabels:
{{- include "iipimage.selectorLabels" . | nindent 6 }}
app.kubernetes.io/component: node
app.kubernetes.io/component: {{ .Chart.Name }}-node
template:
metadata:
{{- with .Values.podAnnotations }}
Expand All @@ -20,26 +20,25 @@ spec:
{{- end }}
labels:
{{- include "iipimage.selectorLabels" . | nindent 8 }}
app.kubernetes.io/component: node
app.kubernetes.io/component: {{ .Chart.Name }}-node
spec:
containers:
- env:
- name: IIIF_DATA_PATH
value: /data/forIIIF
- name: IMAGE_DATA_PATH
value: /data/upload
- name: IMAGE_MD5_CHECKSUMS_PATH
value: /data/upload/md5
- name: {{ .Chart.Name }}-node
# image: {{ template "iipimage.imagename" . }}
image: ghcr.io/acdh-oeaw/jpeg2000-conversion-and-iiif-presentation/jp2-conv-iiif-pres
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- if .Values.application.secretName }}
envFrom:
- secretRef:
name: {{ .Values.application.secretName }}
{{- if .Values.extraEnvFrom }}
{{- toYaml .Values.extraEnvFrom | nindent 8 }}
{{- end }}
{{- end }}
env:
- name: MEMCACHED_SERVERS
value: {{ include "iipimage.fullname" . }}-memcached
- name: NO_VALIDATION_AT_STARTUP
value: "true"
- name: DEFAULT_COLLECTION
value: "{{ .Values.iiifDefaultCollection }}"
image: "ghcr.io/acdh-oeaw/jpeg2000-conversion-and-iiif-presentation/jp2-conv-iiif-pres"
# {{ .Values.image.tag }}
imagePullPolicy: IfNotPresent
name: node
ports:
- containerPort: 3000
name: node
Expand Down Expand Up @@ -95,4 +94,4 @@ spec:
volumes:
- name: image-data
persistentVolumeClaim:
claimName: iiif-picture-storage
claimName: {{ .Values.persistence.imageStoragePVC }}
4 changes: 2 additions & 2 deletions chart/templates/service-iipsrv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: {{ include "iipimage.fullname" . }}-iipsrv
labels:
{{- include "iipimage.labels" . | nindent 4 }}
app.kubernetes.io/component: iipsrv-svc
app.kubernetes.io/component: {{ .Chart.Name }}-iipsrv-svc
spec:
ports:
- name: iipsrv
Expand All @@ -13,5 +13,5 @@ spec:
targetPort: 9000
selector:
{{- include "iipimage.selectorLabels" . | nindent 4 }}
app.kubernetes.io/component: iipsrv
app.kubernetes.io/component: {{ .Chart.Name }}-iipsrv
type: ClusterIP
4 changes: 2 additions & 2 deletions chart/templates/service-imageserver-rev-proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: {{ include "iipimage.fullname" . }}-imageserver-rev-proxy
labels:
{{- include "iipimage.labels" . | nindent 4 }}
app.kubernetes.io/component: imageserver-rev-proxy-svc
app.kubernetes.io/component: {{ .Chart.Name }}-rev-proxy-svc
spec:
ports:
- name: http
Expand All @@ -13,5 +13,5 @@ spec:
targetPort: 8080
selector:
{{- include "iipimage.selectorLabels" . | nindent 4 }}
app.kubernetes.io/component: imageserver-rev-proxy
app.kubernetes.io/component: {{ .Chart.Name }}-rev-proxy
type: ClusterIP
4 changes: 2 additions & 2 deletions chart/templates/service-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: {{ include "iipimage.fullname" . }}-node
labels:
{{- include "iipimage.labels" . | nindent 4 }}
app.kubernetes.io/component: node-svc
app.kubernetes.io/component: {{ .Chart.Name }}-node-svc
spec:
ports:
- name: node
Expand All @@ -13,5 +13,5 @@ spec:
targetPort: 3000
selector:
{{- include "iipimage.selectorLabels" . | nindent 4 }}
app.kubernetes.io/component: node
app.kubernetes.io/component: {{ .Chart.Name }}-node
type: ClusterIP
5 changes: 4 additions & 1 deletion chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ replicaCount: 1

image:
repository: ghcr.io/acdh-oeaw/iiif-service/iiif-service
pullPolicy: IfNotPresent
pullPolicy: Always
# Overrides the image tag whose default is the chart appVersion.
tag: "latest"
application:
Expand Down Expand Up @@ -82,3 +82,6 @@ nodeSelector: {}
tolerations: []

affinity: {}

persistence:
imageStoragePVC: iiif-picture-storage

0 comments on commit e64dba4

Please sign in to comment.