ansible/roles/wikijs/defaults/main.yaml

64 lines
2.1 KiB
YAML

wikijs_enabled: true
wikijs_publish: false
wikijs_chart_ref: "ghp/wikijs"
wikijs_use_external_db: true
wikijs_short_name: "wikijs"
wikijs_default_values:
fullnameOverride: "wikijs"
ingress:
enabled: true
className: "{{ external_ingress_class if wikijs_publish else internal_ingress_class }}"
annotations:
cert-manager.io/cluster-issuer: "letsencrypt-prod"
kubernetes.io/tls-acme: "true"
nginx.ingress.kubernetes.io/proxy-body-size: "0"
nginx.ingress.kubernetes.io/proxy-read-timeout: "600"
nginx.ingress.kubernetes.io/proxy-send-timeout: "600"
hosts:
- host: "{{ wikijs_short_name }}.{{ domain }}"
paths:
- path: /
pathType: ImplementationSpecific
tls:
- secretName: "{{ wikijs_short_name }}.{{ domain }}-tls"
hosts:
- "{{ wikijs_short_name }}.{{ domain }}"
postgresql:
enabled: false
ssl: false
postgresqlHost: "{{ postgres_db_team | default(namespace) }}-postgres.{{ postgres_db_namespace | default(namespace) }}.svc.cluster.local"
postgresqlUsername: "{{ wikijs_db_username | default(omit) }}"
postgresqlPassword: "{{ wikijs_db_password | default(omit) }}"
postgresqlDatabase: "{{ wikijs_db_name | default('wikijs') }}"
wikijs_readonly_ingress_definition: |
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
nginx.ingress.kubernetes.io/proxy-body-size: "0"
nginx.ingress.kubernetes.io/proxy-read-timeout: "600"
nginx.ingress.kubernetes.io/proxy-send-timeout: "600"
name: wikijs-public
namespace: "{{ wikijs_namespace | default(namespace) }}"
spec:
ingressClassName: "{{ external_ingress_class }}"
rules:
- host: "{{ wikijs_readonly_ingress }}"
http:
paths:
- backend:
service:
name: wikijs
port:
number: 80
path: /
pathType: ImplementationSpecific
tls:
- hosts:
- "{{ wikijs_readonly_ingress }}"
secretName: "{{ wikijs_readonly_ingress }}-tls"