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_namespace: "kube-system"
|
||||||
registry_storage_class: ""
|
registry_storage_class: ""
|
||||||
registry_disk_size: "10Gi"
|
registry_disk_size: "10Gi"
|
||||||
|
registry_port: 5000
|
||||||
|
|
|
@ -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 }}
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue