cara/app-config/openshift/deploymentconfig.yaml

414 lines
13 KiB
YAML
Raw Normal View History

2021-02-01 17:53:43 +00:00
---
kind: "Template"
2021-12-05 21:26:37 +00:00
apiVersion: template.openshift.io/v1
2021-02-01 17:53:43 +00:00
metadata:
2022-09-09 13:05:29 +00:00
name: "caimira-application"
2021-02-01 17:53:43 +00:00
annotations:
2022-09-09 13:05:29 +00:00
description: "CAiMIRA application OpenShift template."
tags: "caimira-application"
2021-02-01 17:53:43 +00:00
labels:
2022-09-09 13:05:29 +00:00
template: "caimira-application"
2021-02-01 17:53:43 +00:00
objects:
-
2021-12-05 21:26:37 +00:00
apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
name: auth-service
labels:
app: auth-service
spec:
replicas: 1
template:
metadata:
labels:
app: auth-service
deploymentconfig: auth-service
spec:
containers:
- name: auth-service
image: '${PROJECT_NAME}/auth-service'
ports:
- containerPort: 8080
protocol: TCP
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
triggers:
- type: ConfigChange
- type: ImageChange
imageChangeParams:
automatic: true
containerNames:
- auth-service
from:
kind: ImageStreamTag
2021-12-21 12:59:49 +00:00
name: 'auth-service:latest'
namespace: ${PROJECT_NAME}
2021-02-01 17:53:43 +00:00
-
2021-12-05 21:26:37 +00:00
apiVersion: apps.openshift.io/v1
2021-02-01 17:53:43 +00:00
kind: DeploymentConfig
metadata:
2023-03-09 15:57:47 +00:00
name: expert-app
labels: {app: expert-app}
2021-02-01 17:53:43 +00:00
spec:
replicas: 1
2021-02-01 17:53:43 +00:00
template:
metadata:
labels:
2023-03-09 15:57:47 +00:00
app: expert-app
2021-02-01 17:53:43 +00:00
spec:
containers:
2023-03-09 15:57:47 +00:00
- name: calculator-app
env:
- name: APP_NAME
2022-09-09 13:05:29 +00:00
value: caimira-voila
2023-03-09 15:57:47 +00:00
image: '${PROJECT_NAME}/calculator-app'
2021-02-01 17:53:43 +00:00
ports:
- containerPort: 8080
protocol: TCP
imagePullPolicy: Always
resources:
limits: { cpu: '1', memory: 1Gi }
requests: { cpu: 1m, memory: 512Mi }
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:
2023-03-09 15:57:47 +00:00
app: expert-app
2021-02-01 17:53:43 +00:00
triggers:
- type: ConfigChange
2021-02-01 17:53:43 +00:00
- type: ImageChange
imageChangeParams:
automatic: true
containerNames:
2023-03-09 15:57:47 +00:00
- calculator-app
2021-02-01 17:53:43 +00:00
from:
kind: ImageStreamTag
2023-03-09 15:57:47 +00:00
name: 'calculator-app:latest'
2021-02-15 18:45:42 +00:00
namespace: ${PROJECT_NAME}
2021-02-01 17:53:43 +00:00
-
2021-12-05 21:26:37 +00:00
apiVersion: apps.openshift.io/v1
2021-02-01 17:53:43 +00:00
kind: DeploymentConfig
metadata:
2023-03-09 15:57:47 +00:00
name: expert-co2-app
labels: {app: expert-co2-app}
2023-02-23 10:11:06 +00:00
spec:
replicas: 1
template:
metadata:
labels:
2023-03-09 15:57:47 +00:00
app: expert-co2-app
2023-02-23 10:11:06 +00:00
spec:
containers:
2023-03-09 15:57:47 +00:00
- name: calculator-app
2023-02-23 10:11:06 +00:00
env:
- name: APP_NAME
value: caimira-co2-voila
2023-03-09 15:57:47 +00:00
image: '${PROJECT_NAME}/calculator-app'
2023-02-23 10:11:06 +00:00
ports:
- containerPort: 8080
protocol: TCP
imagePullPolicy: Always
resources:
limits: { cpu: '1', memory: 1Gi }
requests: { cpu: 1m, memory: 512Mi }
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:
2023-03-09 15:57:47 +00:00
app: expert-co2-app
2023-02-23 10:11:06 +00:00
triggers:
- type: ConfigChange
- type: ImageChange
imageChangeParams:
automatic: true
containerNames:
2023-03-09 15:57:47 +00:00
- calculator-app
2023-02-23 10:11:06 +00:00
from:
kind: ImageStreamTag
2023-03-09 15:57:47 +00:00
name: 'calculator-app:latest'
2023-02-23 10:11:06 +00:00
namespace: ${PROJECT_NAME}
-
apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
2022-09-09 13:05:29 +00:00
name: caimira-router
2021-02-01 17:53:43 +00:00
spec:
replicas: 1
2021-02-01 17:53:43 +00:00
template:
metadata:
labels:
2022-09-09 13:05:29 +00:00
app: caimira-router
2021-02-01 17:53:43 +00:00
spec:
containers:
2022-09-09 13:05:29 +00:00
- name: caimira-router
image: '${PROJECT_NAME}/caimira-router'
2021-02-01 17:53:43 +00:00
ports:
- containerPort: 8080
protocol: TCP
- containerPort: 8443
protocol: TCP
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:
2022-09-09 13:05:29 +00:00
app: caimira-router
2021-02-01 17:53:43 +00:00
triggers:
- type: ImageChange
imageChangeParams:
automatic: true
containerNames:
2022-09-09 13:05:29 +00:00
- caimira-router
2021-02-01 17:53:43 +00:00
from:
kind: ImageStreamTag
2022-09-09 13:05:29 +00:00
name: 'caimira-router:latest'
2021-02-15 18:45:42 +00:00
namespace: ${PROJECT_NAME}
- type: ConfigChange
2021-02-01 17:53:43 +00:00
-
2021-12-05 21:26:37 +00:00
apiVersion: apps.openshift.io/v1
2021-02-01 17:53:43 +00:00
kind: DeploymentConfig
metadata:
2023-03-09 15:57:47 +00:00
name: calculator-app
labels:
2023-03-09 15:57:47 +00:00
image: calculator-app
app: calculator-app
2021-02-01 17:53:43 +00:00
spec:
replicas: 1
2021-02-01 17:53:43 +00:00
template:
metadata:
labels:
2023-03-09 15:57:47 +00:00
app: calculator-app
2021-02-01 17:53:43 +00:00
spec:
containers:
2023-03-09 15:57:47 +00:00
- name: calculator-app
env:
- name: COOKIE_SECRET
valueFrom:
secretKeyRef:
key: COOKIE_SECRET
name: auth-service-secrets
- name: REPORT_PARALLELISM
value: '3'
- name: APP_NAME
2023-03-09 15:57:47 +00:00
value: calculator-app
2023-03-17 14:36:22 +00:00
- name: APPLICATION_ROOT
value: /
2022-09-09 13:05:29 +00:00
- name: CAIMIRA_CALCULATOR_PREFIX
2021-06-14 13:06:25 +00:00
value: /calculator-cern
2022-09-09 13:05:29 +00:00
- name: CAIMIRA_THEME
value: caimira/apps/templates/cern
2022-09-19 07:52:47 +00:00
- name: ARVE_CLIENT_ID
valueFrom:
secretKeyRef:
key: ARVE_CLIENT_ID
name: arve-api
- name: ARVE_CLIENT_SECRET
valueFrom:
secretKeyRef:
key: ARVE_CLIENT_SECRET
name: arve-api
- name: ARVE_API_KEY
valueFrom:
secretKeyRef:
key: ARVE_API_KEY
name: arve-api
2023-05-08 08:53:30 +00:00
- name: EXTRA_PAGES
2023-05-08 08:55:45 +00:00
value: [{"url":"/about","filename":"about","is_root":True},{"url":"/user-guide","filename":"userguide","is_root":False}]
2023-03-09 15:57:47 +00:00
image: '${PROJECT_NAME}/calculator-app'
2021-02-01 17:53:43 +00:00
ports:
- containerPort: 8080
protocol: TCP
imagePullPolicy: Always
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
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:
2023-03-09 15:57:47 +00:00
app: calculator-app
2021-02-01 17:53:43 +00:00
triggers:
- type: ImageChange
imageChangeParams:
automatic: true
containerNames:
2023-03-09 15:57:47 +00:00
- calculator-app
2021-02-01 17:53:43 +00:00
from:
kind: ImageStreamTag
2023-03-09 15:57:47 +00:00
name: 'calculator-app:latest'
2021-02-15 18:45:42 +00:00
namespace: ${PROJECT_NAME}
- type: ConfigChange
2021-06-14 13:06:25 +00:00
-
2021-12-05 21:26:37 +00:00
apiVersion: apps.openshift.io/v1
2021-06-14 13:06:25 +00:00
kind: DeploymentConfig
metadata:
2023-03-09 15:57:47 +00:00
name: calculator-open-app
labels:
2023-03-09 15:57:47 +00:00
image: calculator-app
app: calculator-open-app
2021-06-14 13:06:25 +00:00
spec:
replicas: 1
2021-06-14 13:06:25 +00:00
template:
metadata:
labels:
2023-03-09 15:57:47 +00:00
app: calculator-open-app
2021-06-14 13:06:25 +00:00
spec:
containers:
2023-03-09 15:57:47 +00:00
- name: calculator-open-app
2021-06-14 13:06:25 +00:00
env:
- name: APP_NAME
2023-03-09 15:57:47 +00:00
value: calculator-app
2023-03-17 14:36:22 +00:00
- name: APPLICATION_ROOT
value: /
2022-09-09 13:05:29 +00:00
- name: CAIMIRA_CALCULATOR_PREFIX
2021-06-14 13:06:25 +00:00
value: /calculator-open
2023-03-09 15:57:47 +00:00
image: '${PROJECT_NAME}/calculator-app'
2021-06-14 13:06:25 +00:00
ports:
- containerPort: 8080
protocol: TCP
imagePullPolicy: Always
resources:
limits:
cpu: '3'
memory: 3Gi
requests:
cpu: '1'
memory: 1Gi
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:
2023-03-09 15:57:47 +00:00
app: calculator-open-app
2021-06-14 13:06:25 +00:00
triggers:
- type: ConfigChange
- type: ImageChange
imageChangeParams:
automatic: true
containerNames:
2023-03-09 15:57:47 +00:00
- calculator-open-app
2021-06-14 13:06:25 +00:00
from:
kind: ImageStreamTag
2023-03-09 15:57:47 +00:00
name: 'calculator-app:latest'
2021-06-14 13:06:25 +00:00
namespace: ${PROJECT_NAME}
- type: ConfigChange
2021-02-15 18:45:42 +00:00
parameters:
- name: PROJECT_NAME
2022-09-09 09:42:16 +00:00
description: The name of this project, e.g. caimira-test
2021-02-15 18:45:42 +00:00
required: true