2021-01-09 17:54:42 +00:00
|
|
|
registry_enabled: true
|
|
|
|
registry_publish: false
|
2021-01-25 18:04:57 +00:00
|
|
|
registry_short_name: "registry"
|
2021-01-09 17:54:42 +00:00
|
|
|
registry_default_values:
|
|
|
|
service:
|
|
|
|
type: ClusterIP
|
|
|
|
ingress:
|
|
|
|
enabled: true
|
|
|
|
annotations:
|
|
|
|
kubernetes.io/ingress.class: "{{ external_ingress_class if registry_publish else internal_ingress_class }}"
|
|
|
|
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"
|
|
|
|
hosts:
|
2021-01-25 18:04:57 +00:00
|
|
|
- "{{ registry_short_name }}.{{ domain }}"
|
2021-01-09 17:54:42 +00:00
|
|
|
tls:
|
2021-01-25 18:04:57 +00:00
|
|
|
- secretName: "{{ registry_short_name }}.{{ domain }}-tls"
|
2021-01-09 17:54:42 +00:00
|
|
|
hosts:
|
2021-01-25 18:04:57 +00:00
|
|
|
- "{{ registry_short_name }}.{{ domain }}"
|
2021-01-09 17:54:42 +00:00
|
|
|
persistence:
|
|
|
|
enabled: true
|
|
|
|
storageClass: "{{ registry_storage | default('nfs-hdd') }}"
|
|
|
|
size: "{{ registry_size | default('15Gi') }}"
|
|
|
|
accessMode: "{{ registry_storage_mode | default('ReadWriteMany') }}"
|
|
|
|
|
|
|
|
registry_readonly_ingress_definition: |
|
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
kind: Ingress
|
|
|
|
metadata:
|
|
|
|
annotations:
|
|
|
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
|
|
|
kubernetes.io/ingress.class: "{{ external_ingress_class }}"
|
|
|
|
nginx.ingress.kubernetes.io/proxy-body-size: "0"
|
|
|
|
nginx.ingress.kubernetes.io/proxy-read-timeout: "600"
|
|
|
|
nginx.ingress.kubernetes.io/proxy-send-timeout: "600"
|
|
|
|
nginx.ingress.kubernetes.io/configuration-snippet: |-
|
|
|
|
limit_except GET {
|
|
|
|
deny all;
|
|
|
|
}
|
|
|
|
name: docker-registry-public
|
|
|
|
namespace: "{{ registry_namespace | default(namespace) }}"
|
|
|
|
spec:
|
|
|
|
rules:
|
|
|
|
- host: "{{ registry_readonly_ingress }}"
|
|
|
|
http:
|
|
|
|
paths:
|
|
|
|
- backend:
|
|
|
|
serviceName: docker-registry
|
|
|
|
servicePort: 5000
|
|
|
|
path: /
|
|
|
|
tls:
|
|
|
|
- hosts:
|
|
|
|
- "{{ registry_readonly_ingress }}"
|
|
|
|
secretName: "{{ registry_readonly_ingress }}-tls"
|
|
|
|
|