ansible/roles/pypiserver/defaults/main.yaml

40 lines
1.6 KiB
YAML

pypiserver_enabled: true
pypiserver_publish: false
pypiserver_short_name: "pip"
pypiserver_default_values:
## If you want more than 1 replica you will have to use a ReadWriteMany volume
replicaCount: 1
auth:
## comma-separated list of (case-insensitive) actions to authenticate
## Use '.' or '' for empty. Requires to have set the password (option below).
## Available actions are update, download and list
actions: update
## Map of username / encoded passwords that will be put to the htpasswd file
## use `htpasswd -n -b username password` to generate them
credentials:
pypiserver_admin: "{{ pypiserver_admin_htpasswd_hash }}"
ingress:
enabled: true
className: "{{ external_ingress_class if pypiserver_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: "{{ pypiserver_short_name }}.{{ domain }}"
paths:
- path: /
pathType: ImplementationSpecific
tls:
- secretName: "{{ pypiserver_short_name }}.{{ domain }}-tls"
hosts:
- "{{ pypiserver_short_name }}.{{ domain }}"
persistence:
enabled: true
storageClass: "{{ pypiserver_storage | default('nfs-hdd') }}"
size: "{{ pypiserver_size | default('20Gi') }}"
accessMode: "{{ pypiserver_storage_mode | default('ReadWriteMany') }}"
mountPropagation: None