Adding new registry_port option (#5779)

New override are added to allow installation of the registry
on different ports than ``5000``. The default port is unchanged
from previous versions
pull/5791/head
Bjoern Teipel 2020-03-17 07:52:22 -05:00 committed by GitHub
parent 3cefd60c37
commit 820d8e6ce6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 7 deletions

View File

@ -2,3 +2,4 @@
registry_namespace: "kube-system"
registry_storage_class: ""
registry_disk_size: "10Gi"
registry_port: 5000

View File

@ -31,8 +31,8 @@ spec:
- name: REGISTRY_HOST
value: registry.{{ registry_namespace }}.svc.{{ cluster_name }}
- name: REGISTRY_PORT
value: "5000"
value: "{{ registry_port }}"
ports:
- name: registry
containerPort: 80
hostPort: 5000
hostPort: {{ registry_port }}

View File

@ -36,8 +36,8 @@ spec:
- 'persistentVolumeClaim'
hostNetwork: true
hostPorts:
- min: 5000
max: 5000
- min: {{ registry_port }}
max: {{ registry_port }}
hostIPC: false
hostPID: false
runAsUser:

View File

@ -30,14 +30,14 @@ spec:
imagePullPolicy: {{ k8s_image_pull_policy }}
env:
- name: REGISTRY_HTTP_ADDR
value: :5000
value: :{{ registry_port }}
- name: REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY
value: /var/lib/registry
volumeMounts:
- name: registry-pvc
mountPath: /var/lib/registry
ports:
- containerPort: 5000
- containerPort: {{ registry_port }}
name: registry
protocol: TCP
volumes:

View File

@ -14,5 +14,5 @@ spec:
k8s-app: registry
ports:
- name: registry
port: 5000
port: {{ registry_port }}
protocol: TCP