-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploy infocenters 2023-06 and 2023-09 with Helm Chart
Change-Id: Ic67a4e834670114afe92374e455c663f8573694f
- Loading branch information
Showing
7 changed files
with
198 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*.orig | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ |
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,6 @@ | ||
apiVersion: v2 | ||
name: infocenter | ||
description: A Helm chart for Infocenter | ||
type: application | ||
version: 0.1.0 | ||
appVersion: "1.16.0" |
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,75 @@ | ||
#******************************************************************************* | ||
# Copyright (c) 2023 Eclipse Foundation and others. | ||
# This program and the accompanying materials are made available | ||
# under the terms of the Eclipse Public License 2.0 | ||
# which is available at http://www.eclipse.org/legal/epl-v20.html, | ||
# or the MIT License which is available at https://opensource.org/licenses/MIT. | ||
# SPDX-License-Identifier: EPL-2.0 OR MIT | ||
#******************************************************************************* | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
infocenter.version: {{ .Values.infocenterVersion | quote }} | ||
namespace: {{ .Values.namespace | quote }} | ||
name: "{{ .Chart.Name }}-{{ .Values.infocenterVersion }}" | ||
spec: | ||
replicas: {{ .Values.replicaCount }} | ||
selector: | ||
matchLabels: | ||
infocenter.version: {{ .Values.infocenterVersion | quote }} | ||
#serviceName: "{{ .Chart.Name }}-{{ .Values.infocenterVersion}}" | ||
template: | ||
metadata: | ||
name: "{{ .Chart.Name }}-{{ .Values.infocenterVersion }}" | ||
labels: | ||
infocenter.version: {{ .Values.infocenterVersion | quote }} | ||
spec: | ||
affinity: | ||
nodeAffinity: | ||
preferredDuringSchedulingIgnoredDuringExecution: | ||
- weight: 1 | ||
preference: | ||
matchExpressions: | ||
- key: speed | ||
operator: NotIn | ||
values: | ||
- fast | ||
terminationGracePeriodSeconds: 180 | ||
containers: | ||
- name: {{ .Chart.Name }}-{{ .Values.infocenterVersion }} | ||
image: {{ .Values.image.repository }}:{{ .Values.image.tag }} | ||
imagePullPolicy: {{ .Values.image.pullPolicy }} | ||
command: | ||
- /infocenter/startDockerInfoCenter.sh | ||
livenessProbe: | ||
httpGet: | ||
path: /help/index.jsp | ||
port: 8086 | ||
scheme: HTTP | ||
initialDelaySeconds: 480 | ||
periodSeconds: 60 | ||
failureThreshold: 2 | ||
timeoutSeconds: 90 | ||
readinessProbe: | ||
httpGet: | ||
path: /help/index.jsp | ||
port: 8086 | ||
periodSeconds: 60 | ||
timeoutSeconds: 90 | ||
initialDelaySeconds: 60 | ||
ports: | ||
- containerPort: 8086 | ||
protocol: TCP | ||
resources: | ||
requests: | ||
cpu: 500m | ||
limits: | ||
cpu: 2 | ||
memory: 1.5Gi | ||
volumeMounts: | ||
- name: workspace | ||
mountPath: "/infocenter/workspace" | ||
volumes: | ||
- name: workspace | ||
emptyDir: {} |
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,30 @@ | ||
#******************************************************************************* | ||
# Copyright (c) 2023 Eclipse Foundation and others. | ||
# This program and the accompanying materials are made available | ||
# under the terms of the Eclipse Public License 2.0 | ||
# which is available at http://www.eclipse.org/legal/epl-v20.html, | ||
# or the MIT License which is available at https://opensource.org/licenses/MIT. | ||
# SPDX-License-Identifier: EPL-2.0 OR MIT | ||
#******************************************************************************* | ||
apiVersion: "route.openshift.io/v1" | ||
kind: "Route" | ||
metadata: | ||
labels: | ||
infocenter.version: {{ .Values.infocenterVersion | quote }} | ||
namespace: {{ .Values.namespace | quote }} | ||
annotations: | ||
haproxy.router.openshift.io/timeout: 60s | ||
haproxy.router.openshift.io/rewrite-target: /help | ||
name: "{{ .Chart.Name }}-{{ .Values.infocenterVersion }}" | ||
spec: | ||
host: {{ .Values.route.host | quote }} | ||
path: "/{{ .Values.infocenterVersion }}" | ||
port: | ||
targetPort: "http" | ||
tls: | ||
insecureEdgeTerminationPolicy: "Redirect" | ||
termination: "edge" | ||
to: | ||
kind: "Service" | ||
name: "{{ .Chart.Name }}-{{ .Values.infocenterVersion }}" | ||
weight: 100 |
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,24 @@ | ||
#******************************************************************************* | ||
# Copyright (c) 2023 Eclipse Foundation and others. | ||
# This program and the accompanying materials are made available | ||
# under the terms of the Eclipse Public License 2.0 | ||
# which is available at http://www.eclipse.org/legal/epl-v20.html, | ||
# or the MIT License which is available at https://opensource.org/licenses/MIT. | ||
# SPDX-License-Identifier: EPL-2.0 OR MIT | ||
#******************************************************************************* | ||
apiVersion: "v1" | ||
kind: "Service" | ||
metadata: | ||
labels: | ||
infocenter.version: {{ .Values.infocenterVersion | quote }} | ||
namespace: {{ .Values.namespace | quote }} | ||
name: "{{ .Chart.Name }}-{{ .Values.infocenterVersion }}" | ||
spec: | ||
type: {{ .Values.service.type }} | ||
ports: | ||
- name: "http" | ||
port: {{ .Values.service.port }} | ||
protocol: "TCP" | ||
targetPort: {{ .Values.service.targetPort }} | ||
selector: | ||
infocenter.version: {{ .Values.infocenterVersion | quote }} |
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,20 @@ | ||
# Default values for infocenter. | ||
|
||
namespace: infocenter | ||
infocenterVersion: 2023-06 | ||
replicaCount: 1 | ||
|
||
image: | ||
repository: eclipsecbi/eclipse-infocenter | ||
pullPolicy: IfNotPresent | ||
tag: "2023-06@sha256:e4d89882e99a76e68bbdb5c8656076085cd003304179a9f47b0496eb19e8b929" | ||
|
||
service: | ||
type: ClusterIP | ||
port: 80 | ||
targetPort: 8086 | ||
|
||
route: | ||
host: help.eclipse.org | ||
|
||
affinity: {} |
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,20 @@ | ||
# Default values for infocenter. | ||
|
||
namespace: infocenter | ||
infocenterVersion: 2023-09 | ||
replicaCount: 1 | ||
|
||
image: | ||
repository: eclipsecbi/eclipse-infocenter | ||
pullPolicy: IfNotPresent | ||
tag: "2023-09@sha256:ea500dcb3ee2ccdee140109e56c01745135262e3ed17088675a423bc9903e033" | ||
|
||
service: | ||
type: ClusterIP | ||
port: 80 | ||
targetPort: 8086 | ||
|
||
route: | ||
host: help.eclipse.org | ||
|
||
affinity: {} |