Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update Deployments on OpenShift #1809

Merged
merged 2 commits into from
Oct 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 23 additions & 31 deletions deploy/openshift/che-plugin-registry.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
#
# 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/
#
# SPDX-License-Identifier: EPL-2.0
#
---
apiVersion: v1
apiVersion: template.openshift.io/v1
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
Loading