Add more infocenters
Change-Id: I4adaf64256c2316d7c6c2e5d20bc4de36fc8ee8f
Signed-off-by: Frederic Gurr <frederic.gurr@eclipse-foundation.org>
diff --git a/infoCenter/k8s/2018-09/nginx-configmap.yml b/infoCenter/k8s/2018-09/nginx-configmap.yml
new file mode 100644
index 0000000..ee08af0
--- /dev/null
+++ b/infoCenter/k8s/2018-09/nginx-configmap.yml
@@ -0,0 +1,35 @@
+#*******************************************************************************
+# Copyright (c) 2019 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: ConfigMap
+metadata:
+ labels:
+ infocenter.version: "2018-09"
+ namespace: "infocenter"
+ name: nginx-config-2018-09
+data:
+ nginx.conf: |-
+ worker_processes 1;
+ error_log /var/log/nginx/error.log warn;
+ pid /var/run/nginx.pid;
+ events {
+ worker_connections 1024;
+ }
+ http {
+ include /etc/nginx/mime.types;
+ default_type application/octet-stream;
+ sendfile on;
+ keepalive_timeout 65;
+ server {
+ listen 8080;
+ location /2018-09/ {
+ proxy_pass http://127.0.0.1:8086/help/;
+ }
+ }
+ }
diff --git a/infoCenter/k8s/2018-09/route.yml b/infoCenter/k8s/2018-09/route.yml
new file mode 100644
index 0000000..7993491
--- /dev/null
+++ b/infoCenter/k8s/2018-09/route.yml
@@ -0,0 +1,29 @@
+#*******************************************************************************
+# Copyright (c) 2019 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: "2018-09"
+ namespace: "infocenter"
+ annotations:
+ haproxy.router.openshift.io/timeout: 60s
+ name: "infocenter-2018-09"
+spec:
+ host: "help.eclipse.org"
+ path: "/2018-09"
+ port:
+ targetPort: "http"
+ tls:
+ insecureEdgeTerminationPolicy: "Redirect"
+ termination: "edge"
+ to:
+ kind: "Service"
+ name: "infocenter-2018-09"
+ weight: 100
diff --git a/infoCenter/k8s/2018-09/service.yml b/infoCenter/k8s/2018-09/service.yml
new file mode 100644
index 0000000..51b01e8
--- /dev/null
+++ b/infoCenter/k8s/2018-09/service.yml
@@ -0,0 +1,31 @@
+#*******************************************************************************
+# Copyright (c) 2019 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: "2018-09"
+ namespace: "infocenter"
+ name: "infocenter-2018-09"
+spec:
+ ports:
+ - name: "http"
+ port: 80
+ protocol: "TCP"
+ targetPort: 8080
+ selector:
+ infocenter.version: "2018-09"
+---
+apiVersion: "v1"
+kind: "ServiceAccount"
+metadata:
+ labels:
+ infocenter.version: "2018-09"
+ namespace: "infocenter"
+ name: "infocenter-2018-09"
diff --git a/infoCenter/k8s/2018-09/statefulset.yml b/infoCenter/k8s/2018-09/statefulset.yml
new file mode 100644
index 0000000..898a221
--- /dev/null
+++ b/infoCenter/k8s/2018-09/statefulset.yml
@@ -0,0 +1,77 @@
+#*******************************************************************************
+# Copyright (c) 2019 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: StatefulSet
+metadata:
+ labels:
+ infocenter.version: "2018-09"
+ namespace: "infocenter"
+ name: "infocenter-2018-09"
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ infocenter.version: "2018-09"
+ serviceName: "infocenter-2018-09"
+ template:
+ metadata:
+ labels:
+ infocenter.version: "2018-09"
+ name: "infocenter-2018-09"
+ spec:
+ serviceAccountName: "infocenter-2018-09"
+ terminationGracePeriodSeconds: 1200
+ containers:
+ - name: infocenter-2018-09
+ image: eclipsecbi/eclipse-infocenter:2018-09
+ imagePullPolicy: IfNotPresent
+ 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"
+ - name: nginx
+ image: eclipsefdn/nginx:stable-alpine
+ ports:
+ - containerPort: 8080
+ volumeMounts:
+ - name: nginx-config
+ mountPath: /etc/nginx/nginx.conf
+ subPath: nginx.conf
+ volumes:
+ - name: workspace
+ emptyDir: {}
+ - name: nginx-config
+ configMap:
+ name: nginx-config-2018-09
diff --git a/infoCenter/k8s/2018-12/nginx-configmap.yml b/infoCenter/k8s/2018-12/nginx-configmap.yml
new file mode 100644
index 0000000..31f2c94
--- /dev/null
+++ b/infoCenter/k8s/2018-12/nginx-configmap.yml
@@ -0,0 +1,35 @@
+#*******************************************************************************
+# Copyright (c) 2019 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: ConfigMap
+metadata:
+ labels:
+ infocenter.version: "2018-12"
+ namespace: "infocenter"
+ name: nginx-config-2018-12
+data:
+ nginx.conf: |-
+ worker_processes 1;
+ error_log /var/log/nginx/error.log warn;
+ pid /var/run/nginx.pid;
+ events {
+ worker_connections 1024;
+ }
+ http {
+ include /etc/nginx/mime.types;
+ default_type application/octet-stream;
+ sendfile on;
+ keepalive_timeout 65;
+ server {
+ listen 8080;
+ location /2018-12/ {
+ proxy_pass http://127.0.0.1:8086/help/;
+ }
+ }
+ }
diff --git a/infoCenter/k8s/2018-12/route.yml b/infoCenter/k8s/2018-12/route.yml
new file mode 100644
index 0000000..46ed288
--- /dev/null
+++ b/infoCenter/k8s/2018-12/route.yml
@@ -0,0 +1,29 @@
+#*******************************************************************************
+# Copyright (c) 2019 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: "2018-12"
+ namespace: "infocenter"
+ annotations:
+ haproxy.router.openshift.io/timeout: 60s
+ name: "infocenter-2018-12"
+spec:
+ host: "help.eclipse.org"
+ path: "/2018-12"
+ port:
+ targetPort: "http"
+ tls:
+ insecureEdgeTerminationPolicy: "Redirect"
+ termination: "edge"
+ to:
+ kind: "Service"
+ name: "infocenter-2018-12"
+ weight: 100
diff --git a/infoCenter/k8s/2018-12/service.yml b/infoCenter/k8s/2018-12/service.yml
new file mode 100644
index 0000000..f334ab1
--- /dev/null
+++ b/infoCenter/k8s/2018-12/service.yml
@@ -0,0 +1,31 @@
+#*******************************************************************************
+# Copyright (c) 2019 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: "2018-12"
+ namespace: "infocenter"
+ name: "infocenter-2018-12"
+spec:
+ ports:
+ - name: "http"
+ port: 80
+ protocol: "TCP"
+ targetPort: 8080
+ selector:
+ infocenter.version: "2018-12"
+---
+apiVersion: "v1"
+kind: "ServiceAccount"
+metadata:
+ labels:
+ infocenter.version: "2018-12"
+ namespace: "infocenter"
+ name: "infocenter-2018-12"
diff --git a/infoCenter/k8s/2018-12/statefulset.yml b/infoCenter/k8s/2018-12/statefulset.yml
new file mode 100644
index 0000000..e791f88
--- /dev/null
+++ b/infoCenter/k8s/2018-12/statefulset.yml
@@ -0,0 +1,77 @@
+#*******************************************************************************
+# Copyright (c) 2019 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: StatefulSet
+metadata:
+ labels:
+ infocenter.version: "2018-12"
+ namespace: "infocenter"
+ name: "infocenter-2018-12"
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ infocenter.version: "2018-12"
+ serviceName: "infocenter-2018-12"
+ template:
+ metadata:
+ labels:
+ infocenter.version: "2018-12"
+ name: "infocenter-2018-12"
+ spec:
+ serviceAccountName: "infocenter-2018-12"
+ terminationGracePeriodSeconds: 1200
+ containers:
+ - name: infocenter-2018-12
+ image: eclipsecbi/eclipse-infocenter:2018-12
+ imagePullPolicy: IfNotPresent
+ 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"
+ - name: nginx
+ image: eclipsefdn/nginx:stable-alpine
+ ports:
+ - containerPort: 8080
+ volumeMounts:
+ - name: nginx-config
+ mountPath: /etc/nginx/nginx.conf
+ subPath: nginx.conf
+ volumes:
+ - name: workspace
+ emptyDir: {}
+ - name: nginx-config
+ configMap:
+ name: nginx-config-2018-12
diff --git a/infoCenter/k8s/2019-03/nginx-configmap.yml b/infoCenter/k8s/2019-03/nginx-configmap.yml
new file mode 100644
index 0000000..cd9a59d
--- /dev/null
+++ b/infoCenter/k8s/2019-03/nginx-configmap.yml
@@ -0,0 +1,35 @@
+#*******************************************************************************
+# Copyright (c) 2019 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: ConfigMap
+metadata:
+ labels:
+ infocenter.version: "2019-03"
+ namespace: "infocenter"
+ name: nginx-config-2019-03
+data:
+ nginx.conf: |-
+ worker_processes 1;
+ error_log /var/log/nginx/error.log warn;
+ pid /var/run/nginx.pid;
+ events {
+ worker_connections 1024;
+ }
+ http {
+ include /etc/nginx/mime.types;
+ default_type application/octet-stream;
+ sendfile on;
+ keepalive_timeout 65;
+ server {
+ listen 8080;
+ location /2019-03/ {
+ proxy_pass http://127.0.0.1:8086/help/;
+ }
+ }
+ }
diff --git a/infoCenter/k8s/2019-03/route.yml b/infoCenter/k8s/2019-03/route.yml
new file mode 100644
index 0000000..7360856
--- /dev/null
+++ b/infoCenter/k8s/2019-03/route.yml
@@ -0,0 +1,29 @@
+#*******************************************************************************
+# Copyright (c) 2019 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: "2019-03"
+ namespace: "infocenter"
+ annotations:
+ haproxy.router.openshift.io/timeout: 60s
+ name: "infocenter-2019-03"
+spec:
+ host: "help.eclipse.org"
+ path: "/2019-03"
+ port:
+ targetPort: "http"
+ tls:
+ insecureEdgeTerminationPolicy: "Redirect"
+ termination: "edge"
+ to:
+ kind: "Service"
+ name: "infocenter-2019-03"
+ weight: 100
diff --git a/infoCenter/k8s/2019-03/service.yml b/infoCenter/k8s/2019-03/service.yml
new file mode 100644
index 0000000..9b0349d
--- /dev/null
+++ b/infoCenter/k8s/2019-03/service.yml
@@ -0,0 +1,31 @@
+#*******************************************************************************
+# Copyright (c) 2019 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: "2019-03"
+ namespace: "infocenter"
+ name: "infocenter-2019-03"
+spec:
+ ports:
+ - name: "http"
+ port: 80
+ protocol: "TCP"
+ targetPort: 8080
+ selector:
+ infocenter.version: "2019-03"
+---
+apiVersion: "v1"
+kind: "ServiceAccount"
+metadata:
+ labels:
+ infocenter.version: "2019-03"
+ namespace: "infocenter"
+ name: "infocenter-2019-03"
diff --git a/infoCenter/k8s/2019-03/statefulset.yml b/infoCenter/k8s/2019-03/statefulset.yml
new file mode 100644
index 0000000..29dcde6
--- /dev/null
+++ b/infoCenter/k8s/2019-03/statefulset.yml
@@ -0,0 +1,77 @@
+#*******************************************************************************
+# Copyright (c) 2019 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: StatefulSet
+metadata:
+ labels:
+ infocenter.version: "2019-03"
+ namespace: "infocenter"
+ name: "infocenter-2019-03"
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ infocenter.version: "2019-03"
+ serviceName: "infocenter-2019-03"
+ template:
+ metadata:
+ labels:
+ infocenter.version: "2019-03"
+ name: "infocenter-2019-03"
+ spec:
+ serviceAccountName: "infocenter-2019-03"
+ terminationGracePeriodSeconds: 1200
+ containers:
+ - name: infocenter-2019-03
+ image: eclipsecbi/eclipse-infocenter:2019-03
+ imagePullPolicy: IfNotPresent
+ 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"
+ - name: nginx
+ image: eclipsefdn/nginx:stable-alpine
+ ports:
+ - containerPort: 8080
+ volumeMounts:
+ - name: nginx-config
+ mountPath: /etc/nginx/nginx.conf
+ subPath: nginx.conf
+ volumes:
+ - name: workspace
+ emptyDir: {}
+ - name: nginx-config
+ configMap:
+ name: nginx-config-2019-03
diff --git a/infoCenter/k8s/2019-09/nginx-configmap.yml b/infoCenter/k8s/2019-09/nginx-configmap.yml
index ab4acf5..b7460f6 100644
--- a/infoCenter/k8s/2019-09/nginx-configmap.yml
+++ b/infoCenter/k8s/2019-09/nginx-configmap.yml
@@ -27,7 +27,7 @@
sendfile on;
keepalive_timeout 65;
server {
- listen 8081;
+ listen 8080;
location /2019-09/ {
proxy_pass http://127.0.0.1:8086/help/;
}
diff --git a/infoCenter/k8s/2019-09/route.yml b/infoCenter/k8s/2019-09/route.yml
index 442e826..25edbae 100644
--- a/infoCenter/k8s/2019-09/route.yml
+++ b/infoCenter/k8s/2019-09/route.yml
@@ -16,7 +16,7 @@
haproxy.router.openshift.io/timeout: 60s
name: "infocenter-2019-09"
spec:
- host: "help-staging.eclipse.org"
+ host: "help.eclipse.org"
path: "/2019-09"
port:
targetPort: "http"
diff --git a/infoCenter/k8s/2019-09/service.yml b/infoCenter/k8s/2019-09/service.yml
index c24c7bc..948dce4 100644
--- a/infoCenter/k8s/2019-09/service.yml
+++ b/infoCenter/k8s/2019-09/service.yml
@@ -18,7 +18,7 @@
- name: "http"
port: 80
protocol: "TCP"
- targetPort: 8081
+ targetPort: 8080
selector:
infocenter.version: "2019-09"
---
diff --git a/infoCenter/k8s/2019-09/statefulset.yml b/infoCenter/k8s/2019-09/statefulset.yml
index ca96ffb..9f834b3 100644
--- a/infoCenter/k8s/2019-09/statefulset.yml
+++ b/infoCenter/k8s/2019-09/statefulset.yml
@@ -29,10 +29,10 @@
terminationGracePeriodSeconds: 1200
containers:
- name: infocenter-2019-09
- image: fr3d/infocentertest:2019-09
+ image: eclipsecbi/eclipse-infocenter:2019-09
imagePullPolicy: IfNotPresent
command:
- - /infocenter/startInfoCenter.sh
+ - /infocenter/startDockerInfoCenter.sh
livenessProbe:
httpGet:
path: /help/index.jsp
@@ -60,11 +60,11 @@
memory: 1.5Gi
volumeMounts:
- name: workspace
- mountPath: "/infocenter/eclipse/workspace"
+ mountPath: "/infocenter/workspace"
- name: nginx
- image: twalter/openshift-nginx:stable-alpine
+ image: eclipsefdn/nginx:stable-alpine
ports:
- - containerPort: 8081
+ - containerPort: 8080
volumeMounts:
- name: nginx-config
mountPath: /etc/nginx/nginx.conf
diff --git a/infoCenter/k8s/photon/nginx-configmap.yml b/infoCenter/k8s/photon/nginx-configmap.yml
new file mode 100644
index 0000000..5ec8edb
--- /dev/null
+++ b/infoCenter/k8s/photon/nginx-configmap.yml
@@ -0,0 +1,35 @@
+#*******************************************************************************
+# Copyright (c) 2019 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: ConfigMap
+metadata:
+ labels:
+ infocenter.version: "photon"
+ namespace: "infocenter"
+ name: nginx-config-photon
+data:
+ nginx.conf: |-
+ worker_processes 1;
+ error_log /var/log/nginx/error.log warn;
+ pid /var/run/nginx.pid;
+ events {
+ worker_connections 1024;
+ }
+ http {
+ include /etc/nginx/mime.types;
+ default_type application/octet-stream;
+ sendfile on;
+ keepalive_timeout 65;
+ server {
+ listen 8080;
+ location /photon/ {
+ proxy_pass http://127.0.0.1:8086/help/;
+ }
+ }
+ }
diff --git a/infoCenter/k8s/photon/route.yml b/infoCenter/k8s/photon/route.yml
new file mode 100644
index 0000000..fd185c5
--- /dev/null
+++ b/infoCenter/k8s/photon/route.yml
@@ -0,0 +1,29 @@
+#*******************************************************************************
+# Copyright (c) 2019 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: "photon"
+ namespace: "infocenter"
+ annotations:
+ haproxy.router.openshift.io/timeout: 60s
+ name: "infocenter-photon"
+spec:
+ host: "help.eclipse.org"
+ path: "/photon"
+ port:
+ targetPort: "http"
+ tls:
+ insecureEdgeTerminationPolicy: "Redirect"
+ termination: "edge"
+ to:
+ kind: "Service"
+ name: "infocenter-photon"
+ weight: 100
diff --git a/infoCenter/k8s/photon/service.yml b/infoCenter/k8s/photon/service.yml
new file mode 100644
index 0000000..00b8858
--- /dev/null
+++ b/infoCenter/k8s/photon/service.yml
@@ -0,0 +1,31 @@
+#*******************************************************************************
+# Copyright (c) 2019 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: "photon"
+ namespace: "infocenter"
+ name: "infocenter-photon"
+spec:
+ ports:
+ - name: "http"
+ port: 80
+ protocol: "TCP"
+ targetPort: 8080
+ selector:
+ infocenter.version: "photon"
+---
+apiVersion: "v1"
+kind: "ServiceAccount"
+metadata:
+ labels:
+ infocenter.version: "photon"
+ namespace: "infocenter"
+ name: "infocenter-photon"
diff --git a/infoCenter/k8s/photon/statefulset.yml b/infoCenter/k8s/photon/statefulset.yml
new file mode 100644
index 0000000..4d1bf3a
--- /dev/null
+++ b/infoCenter/k8s/photon/statefulset.yml
@@ -0,0 +1,77 @@
+#*******************************************************************************
+# Copyright (c) 2019 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: StatefulSet
+metadata:
+ labels:
+ infocenter.version: "photon"
+ namespace: "infocenter"
+ name: "infocenter-photon"
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ infocenter.version: "photon"
+ serviceName: "infocenter-photon"
+ template:
+ metadata:
+ labels:
+ infocenter.version: "photon"
+ name: "infocenter-photon"
+ spec:
+ serviceAccountName: "infocenter-photon"
+ terminationGracePeriodSeconds: 1200
+ containers:
+ - name: infocenter-photon
+ image: eclipsecbi/eclipse-infocenter:photon
+ imagePullPolicy: IfNotPresent
+ 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"
+ - name: nginx
+ image: eclipsefdn/nginx:stable-alpine
+ ports:
+ - containerPort: 8080
+ volumeMounts:
+ - name: nginx-config
+ mountPath: /etc/nginx/nginx.conf
+ subPath: nginx.conf
+ volumes:
+ - name: workspace
+ emptyDir: {}
+ - name: nginx-config
+ configMap:
+ name: nginx-config-photon