add initial helm chart values
This commit is contained in:
7
Chart.yaml
Normal file
7
Chart.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
apiVersion: v1
|
||||
name: koha
|
||||
version: 1.0.0
|
||||
maintainers:
|
||||
- name: Agustin Moyano
|
||||
email: agustinmoyano@theke.io
|
||||
appVersion: 23.05.02
|
94
README.md
94
README.md
@@ -1,93 +1,3 @@
|
||||
# koha
|
||||
# Koha
|
||||
|
||||
|
||||
|
||||
## Getting started
|
||||
|
||||
To make it easy for you to get started with GitLab, here's a list of recommended next steps.
|
||||
|
||||
Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
|
||||
|
||||
## Add your files
|
||||
|
||||
- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
|
||||
- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
|
||||
|
||||
```
|
||||
cd existing_repo
|
||||
git remote add origin https://gitlab.dit.htwk-leipzig.de/fsr-im/k8s/koha.git
|
||||
git branch -M main
|
||||
git push -uf origin main
|
||||
```
|
||||
|
||||
## Integrate with your tools
|
||||
|
||||
- [ ] [Set up project integrations](https://gitlab.dit.htwk-leipzig.de/fsr-im/k8s/koha/-/settings/integrations)
|
||||
|
||||
## Collaborate with your team
|
||||
|
||||
- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
|
||||
- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
|
||||
- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
|
||||
- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
|
||||
- [ ] [Set auto-merge](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
|
||||
|
||||
## Test and Deploy
|
||||
|
||||
Use the built-in continuous integration in GitLab.
|
||||
|
||||
- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
|
||||
- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing (SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
|
||||
- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
|
||||
- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
|
||||
- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
|
||||
|
||||
***
|
||||
|
||||
# Editing this README
|
||||
|
||||
When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thanks to [makeareadme.com](https://www.makeareadme.com/) for this template.
|
||||
|
||||
## Suggestions for a good README
|
||||
|
||||
Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
|
||||
|
||||
## Name
|
||||
Choose a self-explaining name for your project.
|
||||
|
||||
## Description
|
||||
Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
|
||||
|
||||
## Badges
|
||||
On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
|
||||
|
||||
## Visuals
|
||||
Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
|
||||
|
||||
## Installation
|
||||
Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
|
||||
|
||||
## Usage
|
||||
Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
|
||||
|
||||
## Support
|
||||
Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
|
||||
|
||||
## Roadmap
|
||||
If you have ideas for releases in the future, it is a good idea to list them in the README.
|
||||
|
||||
## Contributing
|
||||
State if you are open to contributions and what your requirements are for accepting them.
|
||||
|
||||
For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
|
||||
|
||||
You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
|
||||
|
||||
## Authors and acknowledgment
|
||||
Show your appreciation to those who have contributed to the project.
|
||||
|
||||
## License
|
||||
For open source projects, say how it is licensed.
|
||||
|
||||
## Project status
|
||||
If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
|
||||
helm chart from here: (https://gitlab.com/thekesolutions/charts/koha-helm-chart)[https://gitlab.com/thekesolutions/charts/koha-helm-chart]
|
33
templates/PersistentVolumes.yaml
Normal file
33
templates/PersistentVolumes.yaml
Normal file
@@ -0,0 +1,33 @@
|
||||
{{ if .Values.pv.enabled }}
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: {{ .Values.pv.koha.name }}
|
||||
spec:
|
||||
capacity:
|
||||
storage: 10Gi
|
||||
volumeMode: Filesystem
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
persistentVolumeReclaimPolicy: Recycle
|
||||
nfs:
|
||||
path: {{ .Values.pv.koha.path }}
|
||||
server: {{ .Values.pv.koha.server }}
|
||||
{{ if not .Values.db.external }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: {{ .Values.pv.mysql.name }}
|
||||
spec:
|
||||
capacity:
|
||||
storage: 10Gi
|
||||
volumeMode: Filesystem
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
persistentVolumeReclaimPolicy: Recycle
|
||||
nfs:
|
||||
path: {{ .Values.pv.mysql.path }}
|
||||
server: {{ .Values.pv.mysql.server }}
|
||||
{{ end }}
|
||||
{{ end }}
|
49
templates/configMap.yml
Normal file
49
templates/configMap.yml
Normal file
@@ -0,0 +1,49 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: koha-map
|
||||
namespace: koha-{{ .Values.instance }}
|
||||
labels:
|
||||
app: koha
|
||||
data:
|
||||
KOHA_INSTANCE: {{ required "You must provide an instance name, either using --set instance=myinstance or in a custom values.yaml" .Values.instance | quote }}
|
||||
KOHA_DOMAIN: {{ .Values.global.domain | quote }}
|
||||
KOHA_INTRANET_PORT: {{ .Values.staff.port | quote }}
|
||||
{{ with .Values.staff.prefix }}
|
||||
KOHA_INTRANET_PREFIX: {{ . | quote }}
|
||||
{{ end }}
|
||||
{{ with .Values.staff.suffix }}
|
||||
KOHA_INTRANET_SUFFIX: {{ . | quote }}
|
||||
{{ end }}
|
||||
KOHA_MARC_FLAVOUR: {{ .Values.global.marc_flavour }}
|
||||
KOHA_OPAC_PORT: {{ .Values.opac.port | quote }}
|
||||
{{ with .Values.opac.prefix }}
|
||||
KOHA_OPAC_PREFIX: {{ . | quote }}
|
||||
{{ end }}
|
||||
{{ with .Values.opac.suffix }}
|
||||
KOHA_OPAC_SUFFIX: {{ . | quote }}
|
||||
{{ end }}
|
||||
{{ with .Values.global.lang }}
|
||||
KOHA_LANGS: {{ range $index, $lang := . }}
|
||||
{{ if $index }} {{ end }}
|
||||
{{ $lang }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
KOHA_PASS: {{ .Values.global.pass }}
|
||||
KOHA_USER: {{ .Values.global.user }}
|
||||
MANA_URL: {{ .Values.global.mana }}
|
||||
MYSQL_SERVER: {{ with .Values.db.server }} {{ . | quote }} {{ else }} "{{ .Values.instance }}-db" {{ end }}
|
||||
MYSQL_ROOT_USER: {{ .Values.db.root_user }}
|
||||
MYSQL_DATABASE: {{ with .Values.db.database }} {{ . | quote }} {{ else }} "koha_{{ .Values.instance }}" {{ end }}
|
||||
MYSQL_ROOT_PASSWORD: {{ .Values.db.root_pass }}
|
||||
MYSQL_USER: {{ with .Values.db.user }} {{ . | quote }} {{ else }} "koha_{{ .Values.instance }}" {{ end }}
|
||||
MYSQL_PASSWORD: {{ .Values.db.pass }}
|
||||
ZEBRA_MARC_FORMAT: {{ .Values.zebra.marc_format }}
|
||||
{{ if .Values.elasticsearch.enabled }}
|
||||
OVERRIDE_SYSPREF_SearchEngine: "Elasticsearch"
|
||||
KOHA_ES_NAME: {{ with .Values.elasticsearch.server }} {{ . | quote }} {{ else }} "{{ .Values.instance }}-es" {{ end }}
|
||||
{{ end }}
|
||||
{{ if .Values.memcached.enabled }}
|
||||
MEMCACHED_SERVERS: {{ with .Values.memcached.server }} {{ . | quote }} {{ else }} "{{ .Values.instance }}-memcached:11211" {{ end }}
|
||||
{{ end }}
|
||||
KOHA_PLACK_NAME: "{{ .Values.instance }}-plack"
|
355
templates/deploy.yml
Normal file
355
templates/deploy.yml
Normal file
@@ -0,0 +1,355 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: koha
|
||||
namespace: koha-{{ .Values.instance }}
|
||||
labels:
|
||||
app: koha
|
||||
component: plack
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: koha
|
||||
component: plack
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: koha
|
||||
component: plack
|
||||
spec:
|
||||
containers:
|
||||
- name: koha
|
||||
image: {{ .Values.docker.registry }}:{{ .Values.docker.tag }}
|
||||
env:
|
||||
- name: USE_PLACK
|
||||
value: "1"
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: koha-map
|
||||
optional: false
|
||||
volumeMounts:
|
||||
- name: koha-pv
|
||||
mountPath: /var/lib/koha
|
||||
subPath: koha
|
||||
- name: koha-pv
|
||||
mountPath: /etc/koha/sites
|
||||
subPath: sites
|
||||
- name: koha-pv
|
||||
mountPath: /tmp/libshare
|
||||
subPath: lib
|
||||
volumes:
|
||||
- name: koha-pv
|
||||
persistentVolumeClaim:
|
||||
claimName: koha-{{ .Values.instance }}-pvc
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: koha-apache
|
||||
namespace: koha-{{ .Values.instance }}
|
||||
labels:
|
||||
app: koha
|
||||
component: apache
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: koha
|
||||
component: apache
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: koha
|
||||
component: apache
|
||||
spec:
|
||||
initContainers:
|
||||
- name: init-wait
|
||||
image: alpine
|
||||
command: ["sh", "-c", "for i in $(seq 1 300); do nc -zvw1 {{ .Values.instance }}-plack 5000 && exit 0 || sleep 3; done; exit 1"]
|
||||
containers:
|
||||
- name: apache
|
||||
image: {{ .Values.docker.registry }}:{{ .Values.docker.tag }}
|
||||
securityContext:
|
||||
capabilities:
|
||||
add:
|
||||
- ALL
|
||||
env:
|
||||
- name: USE_APACHE2
|
||||
value: "1"
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: koha-map
|
||||
volumeMounts:
|
||||
- name: koha-pv
|
||||
mountPath: /etc/koha/sites
|
||||
subPath: sites
|
||||
- name: koha-pv
|
||||
mountPath: /tmp/libshare
|
||||
subPath: lib
|
||||
ports:
|
||||
- containerPort: {{ .Values.opac.port }}
|
||||
- containerPort: {{ .Values.staff.port }}
|
||||
volumes:
|
||||
- name: koha-pv
|
||||
persistentVolumeClaim:
|
||||
claimName: koha-{{ .Values.instance }}-pvc
|
||||
{{ if not .Values.db.external }}
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: koha-mysql
|
||||
namespace: koha-{{ .Values.instance }}
|
||||
labels:
|
||||
app: koha
|
||||
component: db
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: koha
|
||||
component: db
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: koha
|
||||
component: db
|
||||
spec:
|
||||
securityContext:
|
||||
runAsUser: 999
|
||||
fsGroup: 999
|
||||
containers:
|
||||
- name: db
|
||||
image: mariadb:10.3
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: koha-map
|
||||
ports:
|
||||
- containerPort: 3306
|
||||
volumeMounts:
|
||||
- name: koha-mysql-pv
|
||||
mountPath: /var/lib/mysql
|
||||
volumes:
|
||||
- name: koha-mysql-pv
|
||||
persistentVolumeClaim:
|
||||
claimName: koha-{{ .Values.instance }}-mysql-pvc
|
||||
{{ end }}
|
||||
{{ if and .Values.elasticsearch.enabled (not .Values.elasticsearch.external) }}
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: koha-es
|
||||
namespace: koha-{{ .Values.instance }}
|
||||
labels:
|
||||
app: koha
|
||||
component: es
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: koha
|
||||
component: es
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: koha
|
||||
component: es
|
||||
spec:
|
||||
containers:
|
||||
- name: es
|
||||
image: koha/elasticsearch-icu
|
||||
securityContext:
|
||||
capabilities:
|
||||
add:
|
||||
- IPC_LOCK
|
||||
- SYS_RESOURCE
|
||||
env:
|
||||
- name: cluster.name
|
||||
value: "docker-cluster"
|
||||
- name: bootstrap.memory_lock
|
||||
value: "true"
|
||||
- name: xpack.security.enabled
|
||||
value: "false"
|
||||
- name: ES_JAVA_OPTS
|
||||
value: "-Xms1g -Xmx1g"
|
||||
- name: SET_ULIMIT
|
||||
value: "1"
|
||||
initContainers:
|
||||
- name: set-max-map-count
|
||||
image: alpine
|
||||
securityContext:
|
||||
privileged: true
|
||||
command: ["sh", "-c", "sysctl -w vm.max_map_count=262144 && sysctl -w fs.file-max=65536"]
|
||||
{{ end }}
|
||||
{{ if .Values.sip.enabled }}
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: koha-sip
|
||||
namespace: koha-{{ .Values.instance }}
|
||||
labels:
|
||||
app: koha
|
||||
component: sip
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: koha
|
||||
component: sip
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: koha
|
||||
component: sip
|
||||
spec:
|
||||
initContainers:
|
||||
- name: init-wait
|
||||
image: alpine
|
||||
command: ["sh", "-c", "for i in $(seq 1 300); do nc -zvw1 {{ .Values.instance }}-plack 5000 && exit 0 || sleep 3; done; exit 1"]
|
||||
containers:
|
||||
- name: sip
|
||||
image: {{ .Values.docker.registry }}:{{ .Values.docker.tag }}
|
||||
env:
|
||||
- name: USE_SIP
|
||||
value: "1"
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: koha-map
|
||||
volumeMounts:
|
||||
- name: koha-pv
|
||||
mountPath: /etc/koha/sites
|
||||
subPath: sites
|
||||
- name: koha-pv
|
||||
mountPath: /tmp/libshare
|
||||
subPath: lib
|
||||
ports:
|
||||
- containerPort: 6001
|
||||
volumes:
|
||||
- name: koha-pv
|
||||
persistentVolumeClaim:
|
||||
claimName: koha-{{ .Values.instance }}-pvc
|
||||
{{ end }}
|
||||
{{ if .Values.z3950.enabled }}
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: koha-z3950
|
||||
namespace: koha-{{ .Values.instance }}
|
||||
labels:
|
||||
app: koha
|
||||
component: z3950
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: koha
|
||||
component: z3950
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: koha
|
||||
component: z3950
|
||||
spec:
|
||||
initContainers:
|
||||
- name: init-wait
|
||||
image: alpine
|
||||
command: ["sh", "-c", "for i in $(seq 1 300); do nc -zvw1 {{ .Values.instance }}-plack 5000 && exit 0 || sleep 3; done; exit 1"]
|
||||
containers:
|
||||
- name: z3950
|
||||
image: {{ .Values.docker.registry }}:{{ .Values.docker.tag }}
|
||||
env:
|
||||
- name: USE_Z3950
|
||||
value: "1"
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: koha-map
|
||||
volumeMounts:
|
||||
- name: koha-pv
|
||||
mountPath: /etc/koha/sites
|
||||
subPath: sites
|
||||
- name: koha-pv
|
||||
mountPath: /tmp/libshare
|
||||
subPath: lib
|
||||
ports:
|
||||
- containerPort: 2100
|
||||
volumes:
|
||||
- name: koha-pv
|
||||
persistentVolumeClaim:
|
||||
claimName: koha-{{ .Values.instance }}-pvc
|
||||
{{ end }}
|
||||
{{ if .Values.ncip.enabled }}
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: koha-ncip
|
||||
namespace: koha-{{ .Values.instance }}
|
||||
labels:
|
||||
app: koha
|
||||
component: ncip
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: koha
|
||||
component: ncip
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: koha
|
||||
component: ncip
|
||||
spec:
|
||||
initContainers:
|
||||
- name: init-wait
|
||||
image: alpine
|
||||
command: ["sh", "-c", "for i in $(seq 1 300); do nc -zvw1 {{ .Values.instance }}-plack 5000 && exit 0 || sleep 3; done; exit 1"]
|
||||
containers:
|
||||
- name: ncip
|
||||
image: bywater/koha-ncip-server:v19.05-latest
|
||||
env:
|
||||
- name: KOHA_CONF
|
||||
value: "/conf/{{ .Values.instance }}/koha-conf.xml"
|
||||
volumeMounts:
|
||||
- name: koha-pv
|
||||
mountPath: /conf
|
||||
subPath: sites
|
||||
- name: koha-pv
|
||||
mountPath: /usr/share/koha/lib
|
||||
subPath: lib
|
||||
volumes:
|
||||
- name: koha-pv
|
||||
persistentVolumeClaim:
|
||||
claimName: koha-{{ .Values.instance }}-pvc
|
||||
{{ end }}
|
||||
|
||||
{{ if and .Values.memcached.enabled (not .Values.memcached.external) }}
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: koha-memcached
|
||||
namespace: koha-{{ .Values.instance }}
|
||||
labels:
|
||||
app: koha
|
||||
component: memcached
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: koha
|
||||
component: memcached
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: koha
|
||||
component: memcached
|
||||
spec:
|
||||
containers:
|
||||
- name: memcached
|
||||
image: memcached
|
||||
command: [ "memcached", "-m", "64m" ]
|
||||
{{ end }}
|
74
templates/ingress.yml
Normal file
74
templates/ingress.yml
Normal file
@@ -0,0 +1,74 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: koha-ingress
|
||||
namespace: koha-{{ .Values.instance }}
|
||||
{{ if and .Values.tls.enabled .Values.tls.cert_manager.enabled }}
|
||||
annotations:
|
||||
{{ if eq .Values.tls.cert_manager.kind "cluster-issuer" }}
|
||||
cert-manager.io/cluster-issuer: {{ .Values.tls.cert_manager.name }}
|
||||
{{ else }}
|
||||
cert-manager.io/issuer: {{ .Values.tls.cert_manager.name }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
labels:
|
||||
app: koha
|
||||
spec:
|
||||
{{ if .Values.tls.enabled }}
|
||||
tls:
|
||||
- hosts:
|
||||
- {{ .Values.staff.prefix }}{{ .Values.instance }}{{ .Values.staff.suffix }}{{ .Values.global.domain }}
|
||||
- {{ .Values.opac.prefix }}{{ .Values.instance }}{{ .Values.opac.suffix }}{{ .Values.global.domain }}
|
||||
secretName: koha-{{ .Values.instance }}-tls-secret
|
||||
{{ end }}
|
||||
rules:
|
||||
- host: {{ .Values.staff.prefix }}{{ .Values.instance }}{{ .Values.staff.suffix }}{{ .Values.global.domain }}
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
service:
|
||||
name: {{ .Values.instance }}-koha
|
||||
port:
|
||||
number: {{ .Values.staff.port }}
|
||||
pathType: ImplementationSpecific
|
||||
- host: {{ .Values.opac.prefix }}{{ .Values.instance }}{{ .Values.opac.suffix }}{{ .Values.global.domain }}
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
service:
|
||||
name: {{ .Values.instance }}-koha
|
||||
port:
|
||||
number: {{ .Values.opac.port }}
|
||||
pathType: ImplementationSpecific
|
||||
{{ if .Values.sip.enabled }}
|
||||
- host: {{ .Values.instance }}{{ .Values.sip.suffix }}{{ .Values.global.domain }}
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
service:
|
||||
name: {{ .Values.instance }}-sip
|
||||
port:
|
||||
number: 6001
|
||||
{{ end }}
|
||||
{{ if .Values.ncip.enabled }}
|
||||
- host: {{ .Values.instance }}{{ .Values.ncip.suffix }}{{ .Values.global.domain }}
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
service:
|
||||
name: {{ .Values.instance }}-ncip
|
||||
port:
|
||||
number: 3000
|
||||
pathType: ImplementationSpecific
|
||||
{{ end }}
|
||||
{{ if .Values.z3950.enabled }}
|
||||
- host: {{ .Values.instance }}{{ .Values.z3950.suffix }}{{ .Values.global.domain }}
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
service:
|
||||
name: {{ .Values.instance }}-z3950
|
||||
port:
|
||||
number: 2100
|
||||
pathType: ImplementationSpecific
|
||||
{{ end }}
|
143
templates/service.yml
Normal file
143
templates/service.yml
Normal file
@@ -0,0 +1,143 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ .Values.instance }}-koha
|
||||
namespace: koha-{{ .Values.instance }}
|
||||
labels:
|
||||
run: {{ .Values.instance }}-koha
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- name: staff
|
||||
port: {{ .Values.staff.port }}
|
||||
protocol: TCP
|
||||
- name: opac
|
||||
port: {{ .Values.opac.port }}
|
||||
protocol: TCP
|
||||
selector:
|
||||
app: koha
|
||||
component: apache
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ .Values.instance }}-plack
|
||||
namespace: koha-{{ .Values.instance }}
|
||||
labels:
|
||||
run: {{ .Values.instance }}-plack
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- port: 5000
|
||||
protocol: TCP
|
||||
selector:
|
||||
app: koha
|
||||
component: plack
|
||||
{{ if .Values.sip.enabled }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ .Values.instance }}-sip
|
||||
namespace: koha-{{ .Values.instance }}
|
||||
labels:
|
||||
run: {{ .Values.instance }}-sip
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- port: 6001
|
||||
protocol: TCP
|
||||
selector:
|
||||
app: koha
|
||||
component: sip
|
||||
{{ end }}
|
||||
{{ if .Values.ncip.enabled }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ .Values.instance }}-ncip
|
||||
namespace: koha-{{ .Values.instance }}
|
||||
labels:
|
||||
run: {{ .Values.instance }}-ncip
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- port: 3000
|
||||
protocol: TCP
|
||||
selector:
|
||||
app: koha
|
||||
component: ncip
|
||||
{{ end }}
|
||||
{{ if .Values.z3950.enabled }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ .Values.instance }}-z3950
|
||||
namespace: koha-{{ .Values.instance }}
|
||||
labels:
|
||||
run: {{ .Values.instance }}-z3950
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- port: 2100
|
||||
protocol: TCP
|
||||
selector:
|
||||
app: koha
|
||||
component: z3950
|
||||
{{ end }}
|
||||
{{ if and .Values.elasticsearch.enabled (not .Values.elasticsearch.external) }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ .Values.instance }}-es
|
||||
namespace: koha-{{ .Values.instance }}
|
||||
labels:
|
||||
run: {{ .Values.instance }}-es
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- port: 9200
|
||||
protocol: TCP
|
||||
selector:
|
||||
app: koha
|
||||
component: es
|
||||
{{ end }}
|
||||
{{ if not .Values.db.external }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ .Values.instance }}-db
|
||||
namespace: koha-{{ .Values.instance }}
|
||||
labels:
|
||||
run: {{ .Values.instance }}-db
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- port: 3306
|
||||
protocol: TCP
|
||||
selector:
|
||||
app: koha
|
||||
component: db
|
||||
{{ end }}
|
||||
{{ if and .Values.memcached.enabled (not .Values.memcached.external) }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ .Values.instance }}-memcached
|
||||
namespace: koha-{{ .Values.instance }}
|
||||
labels:
|
||||
run: {{ .Values.instance }}-memcached
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- port: 11211
|
||||
protocol: TCP
|
||||
selector:
|
||||
app: koha
|
||||
component: memcached
|
||||
{{ end }}
|
31
templates/volumeClaim.yml
Normal file
31
templates/volumeClaim.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: koha-{{ .Values.instance }}-pvc
|
||||
namespace: koha-{{ .Values.instance }}
|
||||
labels:
|
||||
app: koha
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
resources:
|
||||
requests:
|
||||
storage: 24Gi
|
||||
storageClassName: {{ .Values.storage.storageClassName }}
|
||||
{{ if not .Values.db.external }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: koha-{{ .Values.instance }}-mysql-pvc
|
||||
namespace: koha-{{ .Values.instance }}
|
||||
labels:
|
||||
app: koha
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 30Gi
|
||||
storageClassName: {{ .Values.storage.storageClassName }}
|
||||
{{ end }}
|
103
values.yaml
Normal file
103
values.yaml
Normal file
@@ -0,0 +1,103 @@
|
||||
# On purpose we don't include a instance default value. It must be provided on install.
|
||||
instance: htwk-fsrim
|
||||
|
||||
global:
|
||||
domain: .koha.fsr.imn.htwk-leipzig.de
|
||||
|
||||
marc_flavour: "marc21"
|
||||
|
||||
# Set alternate languages to install as an array
|
||||
lang:
|
||||
- de-DE
|
||||
|
||||
pass: koha
|
||||
user: koha
|
||||
mana: https://mana-test.koha-community.org
|
||||
|
||||
tls:
|
||||
# If true, add tls to ingress
|
||||
enabled: true
|
||||
# If tls is enabled, then most probably you're using cert-manager in your kubernetes (https://cert-manager.io/docs/installation/kubernetes/)
|
||||
cert_manager:
|
||||
# Turn this off to disable cert-manager annotations in ingress resource
|
||||
enabled: true
|
||||
# Kind of issuer. Options are 'cluster-issuer' or 'issuer' (https://cert-manager.io/docs/concepts/issuer/)
|
||||
kind: cluster-issuer
|
||||
# Name of the specific issuer that will handle cert requests. Note: Issuer must be present before installing Koha.
|
||||
name: letsencrypt-staging
|
||||
|
||||
docker:
|
||||
# This settings builds docker image path as the following
|
||||
# {{ .Values.docker.registry }}/koha{{ .Values.docker.client }}:{{ .Values.docker.tag }}
|
||||
# default value built is registry.gitlab.com/thekesolutions/koha:19.11.08-5
|
||||
# if you've got a private registry for a client you can set the client key.
|
||||
# For example: if client key is set like this
|
||||
# client: /myclient
|
||||
# image path will be
|
||||
# registry.gilab.com/thekesolutions/koha/myclient:19.11.08-5
|
||||
registry: registry.gitlab.com/koha-community/docker/koha-docker
|
||||
tag: latest
|
||||
|
||||
storage:
|
||||
storageClassName: csi-cephfs-sc
|
||||
|
||||
staff:
|
||||
port: 8081
|
||||
suffix: -admin
|
||||
prefix:
|
||||
|
||||
opac:
|
||||
port: 8080
|
||||
prefix:
|
||||
suffix:
|
||||
|
||||
db:
|
||||
external: false
|
||||
# If server key is defined, means an external mysql server will be used
|
||||
#server:
|
||||
|
||||
# If database or koha user must be created, set root user to 'root' and the correspondig root password
|
||||
# else set root_user to koha user.
|
||||
# It is use to check if database is up and running
|
||||
root_user: 'root'
|
||||
root_pass: '1q2w3e4r'
|
||||
|
||||
# Set database name to other than 'koha_<instance>'
|
||||
#database:
|
||||
|
||||
# Set database user to other than 'koha_<instance>'
|
||||
#user:
|
||||
pass: "1q2w3e4r"
|
||||
|
||||
elasticsearch:
|
||||
external: false
|
||||
enabled: true
|
||||
# If server key is defined, means an external elasticsearch server will be used
|
||||
#server:
|
||||
|
||||
# Set memcached key to use external memcached
|
||||
memcached:
|
||||
external: false
|
||||
enabled: true
|
||||
# If server key is defined, means an external elasticsearch server will be used
|
||||
#server:
|
||||
|
||||
#If elasticsearch.enabled equals false, then this configuration is relevant
|
||||
zebra:
|
||||
marc_format: marc21
|
||||
|
||||
sip:
|
||||
enabled: false
|
||||
suffix: -sip
|
||||
|
||||
z3950:
|
||||
enabled: false
|
||||
suffix: -z3950
|
||||
|
||||
ncip:
|
||||
enabled: false
|
||||
suffix: -ncip
|
||||
|
||||
pv:
|
||||
enabled: false
|
||||
|
Reference in New Issue
Block a user