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 versionspull/5791/head
parent
3cefd60c37
commit
820d8e6ce6
|
@ -2,3 +2,4 @@
|
|||
registry_namespace: "kube-system"
|
||||
registry_storage_class: ""
|
||||
registry_disk_size: "10Gi"
|
||||
registry_port: 5000
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -36,8 +36,8 @@ spec:
|
|||
- 'persistentVolumeClaim'
|
||||
hostNetwork: true
|
||||
hostPorts:
|
||||
- min: 5000
|
||||
max: 5000
|
||||
- min: {{ registry_port }}
|
||||
max: {{ registry_port }}
|
||||
hostIPC: false
|
||||
hostPID: false
|
||||
runAsUser:
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -14,5 +14,5 @@ spec:
|
|||
k8s-app: registry
|
||||
ports:
|
||||
- name: registry
|
||||
port: 5000
|
||||
port: {{ registry_port }}
|
||||
protocol: TCP
|
||||
|
|
Loading…
Reference in New Issue