@@ -42,6 +42,12 @@ objects:
4242 items :
4343 - key : registry-config.yml
4444 path : config.yml
45+ - name : viewer-config
46+ configMap :
47+ name : devfile-registry
48+ items :
49+ - key : devfile-registry-hosts.json
50+ path : devfile-registry-hosts.json
4551 containers :
4652 - image : ${DEVFILE_INDEX_IMAGE}:${DEVFILE_INDEX_IMAGE_TAG}
4753 imagePullPolicy : " ${DEVFILE_INDEX_PULL_POLICY}"
@@ -50,38 +56,59 @@ objects:
5056 - containerPort : 8080
5157 livenessProbe :
5258 httpGet :
53- path : /
59+ path : /health
5460 port : 8080
55- initialDelaySeconds : 30
61+ scheme : HTTP
62+ initialDelaySeconds : 15
5663 periodSeconds : 10
5764 timeoutSeconds : 3
5865 readinessProbe :
5966 httpGet :
60- path : /
67+ path : /health
6168 port : 8080
62- initialDelaySeconds : 3
69+ scheme : HTTP
70+ initialDelaySeconds : 15
6371 periodSeconds : 10
6472 timeoutSeconds : 3
73+ startupProbe :
74+ httpGet :
75+ path : /viewer
76+ port : 8080
77+ scheme : HTTP
78+ initialDelaySeconds : 30
79+ periodSeconds : 10
80+ timeoutSeconds : 10
6581 resources :
6682 requests :
67- cpu : 1m
68- memory : 5Mi
69- limits :
7083 cpu : 100m
84+ memory : 64Mi
85+ limits :
86+ cpu : 250m
7187 memory : ${DEVFILE_INDEX_MEMORY_LIMIT}
88+ env :
89+ - name : DEVFILE_VIEWER_ROOT
90+ value : " /viewer"
91+ - name : ENABLE_TELEMETRY
92+ value : ${ENABLE_TELEMETRY}
93+ - name : REGISTRY_NAME
94+ value : ${REGISTRY_NAME}
95+ volumeMounts :
96+ - name : viewer-config
97+ mountPath : " /app/config"
98+ readOnly : false
7299 - image : ${OCI_REGISTRY_IMAGE}:${OCI_REGISTRY_IMAGE_TAG}
73100 imagePullPolicy : " ${OCI_REGISTRY_PULL_POLICY}"
74101 name : oci-registry
75102 livenessProbe :
76103 httpGet :
77- path : /v2/
104+ path : /v2
78105 port : 5000
79106 initialDelaySeconds : 30
80107 periodSeconds : 10
81108 timeoutSeconds : 3
82109 readinessProbe :
83110 httpGet :
84- path : /v2/
111+ path : /v2
85112 port : 5000
86113 initialDelaySeconds : 3
87114 periodSeconds : 10
@@ -148,6 +175,13 @@ objects:
148175 enabled: true
149176 path: /metrics
150177
178+ devfile-registry-hosts.json : |
179+ {
180+ "Community": {
181+ "url": "http://localhost:8080"
182+ }
183+ }
184+
151185parameters :
152186- name : DEVFILE_INDEX_IMAGE
153187 value : quay.io/app-sre/product-devfile-index
@@ -184,4 +218,12 @@ parameters:
184218- name : REPLICAS
185219 value : " 1"
186220 displayName : Devfile registry replicas
187- description : The number of replicas for the hosted devfile registry service
221+ description : The number of replicas for the hosted devfile registry service
222+ - name : ENABLE_TELEMETRY
223+ value : " false"
224+ displayName : Devfile registry telemetry enablement
225+ description : Option to opt in or opt out devfile registry telemetry
226+ - name : REGISTRY_NAME
227+ value : devfile-community-registry
228+ displayName : Devfile registry name
229+ description : The registry name that is used as identifier for devfile telemetry
0 commit comments