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
This commit is contained in:
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_namespace: "kube-system"
registry_storage_class: "" registry_storage_class: ""
registry_disk_size: "10Gi" registry_disk_size: "10Gi"
registry_port: 5000

View file

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

View file

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

View file

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

View file

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