Skip to content

Commit

Permalink
chore: update Deployments on OpenShift
Browse files Browse the repository at this point in the history
Signed-off-by: Valeriy Svydenko <[email protected]>
  • Loading branch information
svor committed Oct 9, 2023
1 parent 3ad257c commit 493648c
Showing 1 changed file with 22 additions and 30 deletions.
52 changes: 22 additions & 30 deletions deploy/openshift/che-plugin-registry.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2018-2021 Red Hat, Inc.
# Copyright (c) 2018-2023 Red Hat, Inc.
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
Expand All @@ -12,8 +12,8 @@ kind: Template
metadata:
name: che-plugin-registry
objects:
- apiVersion: v1
kind: DeploymentConfig
- apiVersion: apps/v1
kind: Deployment
metadata:
name: che-plugin-registry
labels:
Expand All @@ -25,16 +25,14 @@ objects:
spec:
replicas: 1
selector:
app: che
component: plugin-registry
matchLabels:
app: che
component: plugin-registry
strategy:
rollingParams:
intervalSeconds: 1
maxSurge: 25%
type: RollingUpdate
rollingUpdate:
maxUnavailable: 25%
timeoutSeconds: 600
updatePeriodSeconds: 1
type: Rolling
maxSurge: 25%
template:
metadata:
labels:
Expand All @@ -52,26 +50,30 @@ objects:
- containerPort: 8080
livenessProbe:
httpGet:
path: /plugins/
path: /v3/plugins/
port: 8080
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 3
successThreshold: 1
failureThreshold: 10
readinessProbe:
httpGet:
path: /plugins/
path: /v3/plugins/
port: 8080
initialDelaySeconds: 3
periodSeconds: 10
timeoutSeconds: 3
successThreshold: 1
failureThreshold: 10
securityContext:
capabilities:
drop:
- ALL
resources:
requests:
cpu: 100m
memory: 32Mi
memory: 512Mi
limits:
cpu: 500m
memory: ${MEMORY_LIMIT}
Expand Down Expand Up @@ -107,9 +109,6 @@ objects:
app.kubernetes.io/instance: che
app.kubernetes.io/component: plugin-registry
spec:
tls:
termination:
edge
to:
kind: Service
name: che-plugin-registry
Expand All @@ -128,9 +127,7 @@ objects:
app.kubernetes.io/instance: che
app.kubernetes.io/component: plugin-registry
data:
CHE_SIDECAR_CONTAINERS_REGISTRY_URL: ${CHE_SIDECAR_CONTAINERS_REGISTRY_URL}
CHE_SIDECAR_CONTAINERS_REGISTRY_ORGANIZATION: ${CHE_SIDECAR_CONTAINERS_REGISTRY_ORGANIZATION}
CHE_SIDECAR_CONTAINERS_REGISTRY_TAG: ${CHE_SIDECAR_CONTAINERS_REGISTRY_TAG}
START_OPENVSX: ${START_OPENVSX}

parameters:
- name: IMAGE
Expand All @@ -142,19 +139,14 @@ parameters:
displayName: Eclipse Che plugin registry version
description: Eclipse Che plugin registry version which defaults to next
- name: MEMORY_LIMIT
value: 256Mi
value: 1024Mi
displayName: Memory Limit
description: Maximum amount of memory the container can use. Defaults 256Mi
- name: PULL_POLICY
value: Always
displayName: Eclipse Che plugin registry image pull policy
description: Always pull by default. Can be IfNotPresent
- name: CHE_SIDECAR_CONTAINERS_REGISTRY_URL
displayName: Sidecar image registry URL
description: URL of docker registry containing plugin sidecar images; used to override sidecars in plugins
- name: CHE_SIDECAR_CONTAINERS_REGISTRY_ORGANIZATION
displayName: Sidecar image registry organization
description: Organization containing plugin sidecar images; used to override base images in plugins
- name: CHE_SIDECAR_CONTAINERS_REGISTRY_TAG
displayName: Plugin sidecar images tag
description: Tag used for overridden sidecar images; used to override base images in plugins
- name: START_OPENVSX
value: "false"
displayName: Start embedded OpenVSX registry
description: If true, an embedded OpenVSX registry will be started

0 comments on commit 493648c

Please sign in to comment.