2021-02-01 17:53:43 +00:00
|
|
|
---
|
|
|
|
|
kind: "Template"
|
|
|
|
|
apiVersion: "v1"
|
|
|
|
|
metadata:
|
|
|
|
|
name: "cara-application"
|
|
|
|
|
annotations:
|
|
|
|
|
description: "CARA application OpenShift template."
|
|
|
|
|
tags: "cara-application"
|
|
|
|
|
labels:
|
|
|
|
|
template: "cara-application"
|
|
|
|
|
objects:
|
2021-03-03 18:37:18 +00:00
|
|
|
-
|
|
|
|
|
apiVersion: v1
|
|
|
|
|
kind: DeploymentConfig
|
|
|
|
|
metadata:
|
|
|
|
|
name: auth-service
|
2021-07-14 10:16:47 +00:00
|
|
|
labels:
|
|
|
|
|
app: auth-service
|
2021-03-03 18:37:18 +00:00
|
|
|
spec:
|
2021-07-14 10:16:47 +00:00
|
|
|
replicas: 1
|
2021-03-03 18:37:18 +00:00
|
|
|
template:
|
|
|
|
|
metadata:
|
|
|
|
|
labels:
|
|
|
|
|
app: auth-service
|
2021-07-14 10:16:47 +00:00
|
|
|
deploymentconfig: auth-service
|
2021-03-03 18:37:18 +00:00
|
|
|
spec:
|
|
|
|
|
containers:
|
|
|
|
|
- name: auth-service
|
|
|
|
|
image: '${PROJECT_NAME}/auth-service'
|
|
|
|
|
ports:
|
|
|
|
|
- containerPort: 8080
|
|
|
|
|
protocol: TCP
|
2021-07-14 10:16:47 +00:00
|
|
|
envFrom:
|
|
|
|
|
- configMapRef:
|
|
|
|
|
name: auth-service
|
|
|
|
|
- secretRef:
|
|
|
|
|
name: auth-service-secrets
|
|
|
|
|
imagePullPolicy: Always
|
|
|
|
|
resources: {}
|
|
|
|
|
terminationMessagePath: /dev/termination-log
|
|
|
|
|
terminationMessagePolicy: File
|
|
|
|
|
dnsPolicy: ClusterFirst
|
|
|
|
|
restartPolicy: Always
|
|
|
|
|
schedulerName: default-scheduler
|
|
|
|
|
securityContext: { }
|
|
|
|
|
terminationGracePeriodSeconds: 30
|
|
|
|
|
strategy:
|
|
|
|
|
activeDeadlineSeconds: 21600
|
|
|
|
|
resources: { }
|
|
|
|
|
rollingParams:
|
|
|
|
|
intervalSeconds: 1
|
|
|
|
|
maxSurge: 25%
|
|
|
|
|
maxUnavailable: 25%
|
|
|
|
|
timeoutSeconds: 600
|
|
|
|
|
updatePeriodSeconds: 1
|
|
|
|
|
type: Rolling
|
|
|
|
|
test: false
|
|
|
|
|
selector:
|
|
|
|
|
deploymentconfig: auth-service
|
2021-03-03 18:37:18 +00:00
|
|
|
triggers:
|
|
|
|
|
- type: ConfigChange
|
|
|
|
|
- type: ImageChange
|
|
|
|
|
imageChangeParams:
|
|
|
|
|
automatic: true
|
|
|
|
|
containerNames:
|
|
|
|
|
- auth-service
|
|
|
|
|
from:
|
|
|
|
|
kind: ImageStreamTag
|
|
|
|
|
name: 'auth-service:latest'
|
|
|
|
|
namespace: ${PROJECT_NAME}
|
2021-02-01 17:53:43 +00:00
|
|
|
-
|
|
|
|
|
apiVersion: v1
|
|
|
|
|
kind: DeploymentConfig
|
|
|
|
|
metadata:
|
|
|
|
|
name: cara-app
|
|
|
|
|
spec:
|
2021-07-14 10:16:47 +00:00
|
|
|
replicas: 1
|
2021-02-01 17:53:43 +00:00
|
|
|
template:
|
|
|
|
|
metadata:
|
|
|
|
|
labels:
|
|
|
|
|
app: cara-app
|
|
|
|
|
spec:
|
|
|
|
|
containers:
|
|
|
|
|
- name: cara-app
|
2021-03-26 07:47:07 +00:00
|
|
|
env:
|
|
|
|
|
- name: APP_NAME
|
|
|
|
|
value: cara-voila
|
2021-06-14 13:06:25 +00:00
|
|
|
image: '${PROJECT_NAME}/cara-app'
|
2021-02-01 17:53:43 +00:00
|
|
|
ports:
|
|
|
|
|
- containerPort: 8080
|
|
|
|
|
protocol: TCP
|
2021-07-14 10:16:47 +00:00
|
|
|
imagePullPolicy: Always
|
|
|
|
|
resources: {}
|
|
|
|
|
terminationMessagePath: /dev/termination-log
|
|
|
|
|
terminationMessagePolicy: File
|
|
|
|
|
dnsPolicy: ClusterFirst
|
|
|
|
|
restartPolicy: Always
|
|
|
|
|
schedulerName: default-scheduler
|
|
|
|
|
securityContext: { }
|
|
|
|
|
terminationGracePeriodSeconds: 30
|
|
|
|
|
strategy:
|
|
|
|
|
activeDeadlineSeconds: 21600
|
|
|
|
|
resources: { }
|
|
|
|
|
rollingParams:
|
|
|
|
|
intervalSeconds: 1
|
|
|
|
|
maxSurge: 25%
|
|
|
|
|
maxUnavailable: 25%
|
|
|
|
|
timeoutSeconds: 600
|
|
|
|
|
updatePeriodSeconds: 1
|
|
|
|
|
type: Rolling
|
|
|
|
|
test: false
|
|
|
|
|
selector:
|
|
|
|
|
app: cara-app
|
2021-02-01 17:53:43 +00:00
|
|
|
triggers:
|
2021-03-03 18:37:18 +00:00
|
|
|
- type: ConfigChange
|
2021-02-01 17:53:43 +00:00
|
|
|
- type: ImageChange
|
|
|
|
|
imageChangeParams:
|
|
|
|
|
automatic: true
|
|
|
|
|
containerNames:
|
|
|
|
|
- cara-app
|
|
|
|
|
from:
|
|
|
|
|
kind: ImageStreamTag
|
2021-06-14 13:06:25 +00:00
|
|
|
name: 'cara-app:latest'
|
2021-02-15 18:45:42 +00:00
|
|
|
namespace: ${PROJECT_NAME}
|
2021-02-01 17:53:43 +00:00
|
|
|
-
|
|
|
|
|
apiVersion: v1
|
|
|
|
|
kind: DeploymentConfig
|
|
|
|
|
metadata:
|
|
|
|
|
name: cara-router
|
|
|
|
|
spec:
|
2021-07-14 10:16:47 +00:00
|
|
|
replicas: 1
|
2021-02-01 17:53:43 +00:00
|
|
|
template:
|
|
|
|
|
metadata:
|
|
|
|
|
labels:
|
|
|
|
|
app: cara-router
|
|
|
|
|
spec:
|
|
|
|
|
containers:
|
|
|
|
|
- name: cara-router
|
2021-02-15 18:45:42 +00:00
|
|
|
image: '${PROJECT_NAME}/cara-router'
|
2021-02-01 17:53:43 +00:00
|
|
|
ports:
|
|
|
|
|
- containerPort: 8080
|
|
|
|
|
protocol: TCP
|
|
|
|
|
- containerPort: 8443
|
|
|
|
|
protocol: TCP
|
2021-07-14 10:16:47 +00:00
|
|
|
imagePullPolicy: Always
|
|
|
|
|
resources: {}
|
|
|
|
|
terminationMessagePath: /dev/termination-log
|
|
|
|
|
terminationMessagePolicy: File
|
|
|
|
|
dnsPolicy: ClusterFirst
|
|
|
|
|
restartPolicy: Always
|
|
|
|
|
schedulerName: default-scheduler
|
|
|
|
|
securityContext: { }
|
|
|
|
|
terminationGracePeriodSeconds: 30
|
|
|
|
|
strategy:
|
|
|
|
|
activeDeadlineSeconds: 21600
|
|
|
|
|
resources: { }
|
|
|
|
|
rollingParams:
|
|
|
|
|
intervalSeconds: 1
|
|
|
|
|
maxSurge: 25%
|
|
|
|
|
maxUnavailable: 25%
|
|
|
|
|
timeoutSeconds: 600
|
|
|
|
|
updatePeriodSeconds: 1
|
|
|
|
|
type: Rolling
|
|
|
|
|
test: false
|
|
|
|
|
selector:
|
|
|
|
|
app: cara-router
|
2021-02-01 17:53:43 +00:00
|
|
|
triggers:
|
2021-03-03 18:37:18 +00:00
|
|
|
- type: ConfigChange
|
2021-02-01 17:53:43 +00:00
|
|
|
- type: ImageChange
|
|
|
|
|
imageChangeParams:
|
|
|
|
|
automatic: true
|
|
|
|
|
containerNames:
|
|
|
|
|
- cara-router
|
|
|
|
|
from:
|
|
|
|
|
kind: ImageStreamTag
|
|
|
|
|
name: 'cara-router:latest'
|
2021-02-15 18:45:42 +00:00
|
|
|
namespace: ${PROJECT_NAME}
|
2021-03-03 18:37:18 +00:00
|
|
|
- type: ConfigChange
|
2021-02-01 17:53:43 +00:00
|
|
|
-
|
|
|
|
|
apiVersion: v1
|
|
|
|
|
kind: DeploymentConfig
|
|
|
|
|
metadata:
|
|
|
|
|
name: cara-webservice
|
|
|
|
|
spec:
|
2021-07-14 10:16:47 +00:00
|
|
|
replicas: 1
|
2021-02-01 17:53:43 +00:00
|
|
|
template:
|
|
|
|
|
metadata:
|
|
|
|
|
labels:
|
|
|
|
|
app: cara-webservice
|
|
|
|
|
spec:
|
|
|
|
|
containers:
|
|
|
|
|
- name: cara-webservice
|
2021-03-26 07:47:07 +00:00
|
|
|
env:
|
2021-04-15 17:55:50 +00:00
|
|
|
- name: COOKIE_SECRET
|
|
|
|
|
valueFrom:
|
|
|
|
|
secretKeyRef:
|
|
|
|
|
key: COOKIE_SECRET
|
|
|
|
|
name: auth-service-secrets
|
2021-03-26 07:47:07 +00:00
|
|
|
- name: APP_NAME
|
|
|
|
|
value: cara-webservice
|
2021-06-14 13:06:25 +00:00
|
|
|
- name: CARA_CALCULATOR_PREFIX
|
|
|
|
|
value: /calculator-cern
|
2021-04-15 17:55:50 +00:00
|
|
|
- name: CARA_THEME
|
2021-07-29 12:13:43 +00:00
|
|
|
value: cara/apps/calculator/themes/cern
|
2021-02-15 18:45:42 +00:00
|
|
|
image: '${PROJECT_NAME}/cara-webservice'
|
2021-02-01 17:53:43 +00:00
|
|
|
ports:
|
|
|
|
|
- containerPort: 8080
|
|
|
|
|
protocol: TCP
|
2021-07-14 10:16:47 +00:00
|
|
|
imagePullPolicy: Always
|
2021-07-29 08:12:29 +00:00
|
|
|
readinessProbe:
|
|
|
|
|
failureThreshold: 3
|
|
|
|
|
httpGet:
|
|
|
|
|
path: /calculator-cern
|
|
|
|
|
port: 8080
|
|
|
|
|
scheme: HTTP
|
|
|
|
|
initialDelaySeconds: 3
|
|
|
|
|
periodSeconds: 10
|
|
|
|
|
successThreshold: 1
|
|
|
|
|
timeoutSeconds: 1
|
|
|
|
|
resources:
|
|
|
|
|
limits:
|
|
|
|
|
cpu: '3'
|
|
|
|
|
memory: 3Gi
|
|
|
|
|
requests:
|
|
|
|
|
cpu: '1'
|
|
|
|
|
memory: 1Gi
|
2021-07-14 10:16:47 +00:00
|
|
|
terminationMessagePath: /dev/termination-log
|
|
|
|
|
terminationMessagePolicy: File
|
|
|
|
|
dnsPolicy: ClusterFirst
|
|
|
|
|
restartPolicy: Always
|
|
|
|
|
schedulerName: default-scheduler
|
|
|
|
|
securityContext: { }
|
|
|
|
|
terminationGracePeriodSeconds: 30
|
|
|
|
|
strategy:
|
|
|
|
|
activeDeadlineSeconds: 21600
|
|
|
|
|
resources: { }
|
|
|
|
|
rollingParams:
|
|
|
|
|
intervalSeconds: 1
|
|
|
|
|
maxSurge: 25%
|
|
|
|
|
maxUnavailable: 25%
|
|
|
|
|
timeoutSeconds: 600
|
|
|
|
|
updatePeriodSeconds: 1
|
|
|
|
|
type: Rolling
|
|
|
|
|
test: false
|
|
|
|
|
selector:
|
|
|
|
|
app: cara-webservice
|
2021-02-01 17:53:43 +00:00
|
|
|
triggers:
|
|
|
|
|
- type: ImageChange
|
|
|
|
|
imageChangeParams:
|
|
|
|
|
automatic: true
|
|
|
|
|
containerNames:
|
|
|
|
|
- cara-webservice
|
|
|
|
|
from:
|
|
|
|
|
kind: ImageStreamTag
|
|
|
|
|
name: 'cara-webservice:latest'
|
2021-02-15 18:45:42 +00:00
|
|
|
namespace: ${PROJECT_NAME}
|
2021-03-03 18:37:18 +00:00
|
|
|
- type: ConfigChange
|
2021-06-14 13:06:25 +00:00
|
|
|
-
|
|
|
|
|
apiVersion: v1
|
|
|
|
|
kind: DeploymentConfig
|
|
|
|
|
metadata:
|
|
|
|
|
name: cara-calculator-open
|
|
|
|
|
spec:
|
2021-07-14 10:16:47 +00:00
|
|
|
replicas: 1
|
2021-06-14 13:06:25 +00:00
|
|
|
template:
|
|
|
|
|
metadata:
|
|
|
|
|
labels:
|
|
|
|
|
app: cara-calculator-open
|
|
|
|
|
spec:
|
|
|
|
|
containers:
|
|
|
|
|
- name: cara-calculator-open
|
|
|
|
|
env:
|
|
|
|
|
- name: APP_NAME
|
|
|
|
|
value: cara-webservice
|
|
|
|
|
- name: CARA_CALCULATOR_PREFIX
|
|
|
|
|
value: /calculator-open
|
|
|
|
|
image: '${PROJECT_NAME}/cara-webservice'
|
|
|
|
|
ports:
|
|
|
|
|
- containerPort: 8080
|
|
|
|
|
protocol: TCP
|
2021-07-14 10:16:47 +00:00
|
|
|
imagePullPolicy: Always
|
|
|
|
|
resources: {}
|
|
|
|
|
terminationMessagePath: /dev/termination-log
|
|
|
|
|
terminationMessagePolicy: File
|
|
|
|
|
dnsPolicy: ClusterFirst
|
|
|
|
|
restartPolicy: Always
|
|
|
|
|
schedulerName: default-scheduler
|
|
|
|
|
securityContext: { }
|
|
|
|
|
terminationGracePeriodSeconds: 30
|
|
|
|
|
strategy:
|
|
|
|
|
activeDeadlineSeconds: 21600
|
|
|
|
|
resources: { }
|
|
|
|
|
rollingParams:
|
|
|
|
|
intervalSeconds: 1
|
|
|
|
|
maxSurge: 25%
|
|
|
|
|
maxUnavailable: 25%
|
|
|
|
|
timeoutSeconds: 600
|
|
|
|
|
updatePeriodSeconds: 1
|
|
|
|
|
type: Rolling
|
|
|
|
|
test: false
|
|
|
|
|
selector:
|
|
|
|
|
app: cara-calculator-open
|
2021-06-14 13:06:25 +00:00
|
|
|
triggers:
|
|
|
|
|
- type: ConfigChange
|
|
|
|
|
- type: ImageChange
|
|
|
|
|
imageChangeParams:
|
|
|
|
|
automatic: true
|
|
|
|
|
containerNames:
|
|
|
|
|
- cara-calculator-open
|
|
|
|
|
from:
|
|
|
|
|
kind: ImageStreamTag
|
|
|
|
|
name: 'cara-webservice:latest'
|
|
|
|
|
namespace: ${PROJECT_NAME}
|
|
|
|
|
- type: ConfigChange
|
2021-02-15 18:45:42 +00:00
|
|
|
|
|
|
|
|
parameters:
|
|
|
|
|
- name: PROJECT_NAME
|
|
|
|
|
description: The name of this project, e.g. test-cara
|
|
|
|
|
required: true
|