-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate Che Server with Devfile Registry (#13430)
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
- Loading branch information
1 parent
c03f9db
commit 6ba43f0
Showing
7 changed files
with
176 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
# | ||
# Copyright (c) 2018 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 | ||
kind: Template | ||
metadata: | ||
name: che-devfile-registry | ||
objects: | ||
- apiVersion: v1 | ||
kind: DeploymentConfig | ||
metadata: | ||
labels: | ||
app: che-devfile-registry | ||
name: che-devfile-registry | ||
spec: | ||
replicas: 1 | ||
selector: | ||
app: che-devfile-registry | ||
deploymentconfig: che-devfile-registry | ||
strategy: | ||
rollingParams: | ||
intervalSeconds: 1 | ||
maxSurge: 25% | ||
maxUnavailable: 25% | ||
timeoutSeconds: 600 | ||
updatePeriodSeconds: 1 | ||
type: Rolling | ||
template: | ||
metadata: | ||
labels: | ||
app: che-devfile-registry | ||
deploymentconfig: che-devfile-registry | ||
spec: | ||
containers: | ||
- image: ${IMAGE}:${IMAGE_TAG} | ||
imagePullPolicy: "${PULL_POLICY}" | ||
name: che-devfile-registry | ||
ports: | ||
- containerPort: 8080 | ||
livenessProbe: | ||
httpGet: | ||
path: /devfiles/ | ||
port: 8080 | ||
initialDelaySeconds: 30 | ||
periodSeconds: 10 | ||
timeoutSeconds: 3 | ||
readinessProbe: | ||
httpGet: | ||
path: /devfiles/ | ||
port: 8080 | ||
initialDelaySeconds: 3 | ||
periodSeconds: 10 | ||
timeoutSeconds: 3 | ||
resources: | ||
limits: | ||
memory: ${MEMORY_LIMIT} | ||
triggers: | ||
- type: ConfigChange | ||
- apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: che-devfile-registry | ||
spec: | ||
ports: | ||
- protocol: TCP | ||
port: 80 | ||
targetPort: 8080 | ||
selector: | ||
deploymentconfig: che-devfile-registry | ||
- apiVersion: v1 | ||
kind: Route | ||
metadata: | ||
name: che-devfile-registry | ||
spec: | ||
to: | ||
kind: Service | ||
name: che-devfile-registry | ||
parameters: | ||
- name: IMAGE | ||
value: quay.io/openshiftio/che-devfile-registry | ||
displayName: Eclipse Che devfile registry image | ||
description: Che devfile registry Docker image. Defaults to quay.io/openshiftio/che-devfile-registry. | ||
- name: IMAGE_TAG | ||
value: latest | ||
displayName: Eclipse Che devfile registry version | ||
description: Eclipse Che devfile registry version which defaults to latest | ||
- name: MEMORY_LIMIT | ||
value: 256Mi | ||
displayName: Memory Limit | ||
description: Maximum amount of memory the container can use. Defaults 256Mi | ||
- name: PULL_POLICY | ||
value: Always | ||
displayName: Eclipse Che devfile registry image pull policy | ||
description: Always pull by default. Can be IfNotPresent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters