Tests passing for OpenShift config checking on the test-cara instance.
This commit is contained in:
parent
6802fbd737
commit
7d14bc488f
6 changed files with 307 additions and 160 deletions
|
|
@ -258,11 +258,15 @@ If you need to **update** existing configuration, then modify this repository an
|
||||||
```console
|
```console
|
||||||
$ cd app-config/openshift
|
$ cd app-config/openshift
|
||||||
|
|
||||||
$ oc process -f application.yaml --param PROJECT_NAME='test-cara' --param GIT_BRANCH='live/test-cara' | oc replace -f -
|
|
||||||
$ oc process -f configmap.yaml | oc replace -f -
|
$ oc process -f configmap.yaml | oc replace -f -
|
||||||
$ oc process -f services.yaml | oc replace -f -
|
$ oc process -f services.yaml | oc replace -f -
|
||||||
$ oc process -f route.yaml --param HOST='test-cara.web.cern.ch' | oc replace -f -
|
$ oc process -f route.yaml --param HOST='test-cara.web.cern.ch' | oc replace -f -
|
||||||
|
$ oc process -f imagestreams.yaml | oc replace -f -
|
||||||
|
$ oc process -f buildconfig.yaml --param GIT_BRANCH='live/test-cara' | oc replace -f -
|
||||||
|
$ oc process -f deploymentconfig.yaml --param PROJECT_NAME='test-cara' | oc replace -f -
|
||||||
```
|
```
|
||||||
|
|
||||||
Be aware that if you change/replace the **route** of the PROD instance, it will loose the annotation to be exposed outside CERN (not committed in this repo).
|
Be aware that if you change/replace the **route** of the PROD instance,
|
||||||
|
it will lose the annotation to be exposed outside CERN (not committed in this repo).
|
||||||
|
|
||||||
|
|
|
||||||
128
app-config/openshift/buildconfig.yaml
Normal file
128
app-config/openshift/buildconfig.yaml
Normal file
|
|
@ -0,0 +1,128 @@
|
||||||
|
---
|
||||||
|
kind: "Template"
|
||||||
|
apiVersion: "v1"
|
||||||
|
metadata:
|
||||||
|
name: "cara-application"
|
||||||
|
creationTimestamp: null
|
||||||
|
annotations:
|
||||||
|
description: "CARA build config OpenShift template."
|
||||||
|
tags: "cara-application"
|
||||||
|
labels:
|
||||||
|
template: "cara-application"
|
||||||
|
objects:
|
||||||
|
-
|
||||||
|
kind: BuildConfig
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: auth-service
|
||||||
|
labels:
|
||||||
|
template: "cara-application"
|
||||||
|
spec:
|
||||||
|
source:
|
||||||
|
type: Git
|
||||||
|
git:
|
||||||
|
ref: ${GIT_BRANCH}
|
||||||
|
uri: ${GIT_REPO}
|
||||||
|
contextDir: app-config/auth-service
|
||||||
|
sourceSecret:
|
||||||
|
name: sshdeploykey
|
||||||
|
postCommit: {}
|
||||||
|
resources: {}
|
||||||
|
runPolicy: Serial
|
||||||
|
output:
|
||||||
|
to:
|
||||||
|
kind: ImageStreamTag
|
||||||
|
name: 'auth-service:latest'
|
||||||
|
strategy:
|
||||||
|
sourceStrategy:
|
||||||
|
from:
|
||||||
|
kind: ImageStreamTag
|
||||||
|
name: 'python:3.6'
|
||||||
|
namespace: openshift
|
||||||
|
type: Source
|
||||||
|
triggers:
|
||||||
|
- imageChange: {}
|
||||||
|
type: ImageChange
|
||||||
|
- generic:
|
||||||
|
secretReference:
|
||||||
|
name: gitlab-cara-webhook-secret
|
||||||
|
type: Generic
|
||||||
|
nodeSelector: null
|
||||||
|
-
|
||||||
|
kind: BuildConfig
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: cara-router
|
||||||
|
labels:
|
||||||
|
template: "cara-application"
|
||||||
|
spec:
|
||||||
|
source:
|
||||||
|
type: Git
|
||||||
|
git:
|
||||||
|
ref: ${GIT_BRANCH}
|
||||||
|
uri: ${GIT_REPO}
|
||||||
|
contextDir: app-config/nginx
|
||||||
|
sourceSecret:
|
||||||
|
name: sshdeploykey
|
||||||
|
postCommit: {}
|
||||||
|
resources: {}
|
||||||
|
runPolicy: Serial
|
||||||
|
output:
|
||||||
|
to:
|
||||||
|
kind: ImageStreamTag
|
||||||
|
name: 'cara-router:latest'
|
||||||
|
strategy:
|
||||||
|
sourceStrategy:
|
||||||
|
from:
|
||||||
|
kind: ImageStreamTag
|
||||||
|
name: 'nginx:1.12'
|
||||||
|
namespace: openshift
|
||||||
|
type: Source
|
||||||
|
triggers:
|
||||||
|
- generic:
|
||||||
|
secretReference:
|
||||||
|
name: gitlab-cara-webhook-secret
|
||||||
|
type: Generic
|
||||||
|
nodeSelector: null
|
||||||
|
-
|
||||||
|
kind: BuildConfig
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: cara-webservice
|
||||||
|
labels:
|
||||||
|
template: "cara-application"
|
||||||
|
spec:
|
||||||
|
source:
|
||||||
|
type: Git
|
||||||
|
git:
|
||||||
|
ref: ${GIT_BRANCH}
|
||||||
|
uri: ${GIT_REPO}
|
||||||
|
sourceSecret:
|
||||||
|
name: sshdeploykey
|
||||||
|
postCommit: {}
|
||||||
|
resources: {}
|
||||||
|
runPolicy: Serial
|
||||||
|
output:
|
||||||
|
to:
|
||||||
|
kind: ImageStreamTag
|
||||||
|
name: 'cara-webservice:latest'
|
||||||
|
strategy:
|
||||||
|
sourceStrategy:
|
||||||
|
from:
|
||||||
|
kind: ImageStreamTag
|
||||||
|
name: 'python:3.6'
|
||||||
|
namespace: openshift
|
||||||
|
type: Source
|
||||||
|
triggers:
|
||||||
|
- generic:
|
||||||
|
secretReference:
|
||||||
|
name: gitlab-cara-webhook-secret
|
||||||
|
type: Generic
|
||||||
|
nodeSelector: null
|
||||||
|
parameters:
|
||||||
|
- name: GIT_REPO
|
||||||
|
description: The GIT repo URL
|
||||||
|
value: 'ssh://git@gitlab.cern.ch:7999/cara/cara.git'
|
||||||
|
- name: GIT_BRANCH
|
||||||
|
description: The name of the GIT branch to use when building the app, e.g. `live/test-cara` in TEST, `master` in prod
|
||||||
|
required: true
|
||||||
|
|
@ -3,161 +3,26 @@
|
||||||
apiVersion: "v1"
|
apiVersion: "v1"
|
||||||
metadata:
|
metadata:
|
||||||
name: "cara-application"
|
name: "cara-application"
|
||||||
creationTimestamp: null
|
|
||||||
annotations:
|
annotations:
|
||||||
description: "CARA application OpenShift template."
|
description: "CARA application OpenShift template."
|
||||||
tags: "cara-application"
|
tags: "cara-application"
|
||||||
labels:
|
labels:
|
||||||
template: "cara-application"
|
template: "cara-application"
|
||||||
objects:
|
objects:
|
||||||
-
|
|
||||||
kind: BuildConfig
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: auth-service
|
|
||||||
spec:
|
|
||||||
source:
|
|
||||||
git:
|
|
||||||
ref: ${GIT_BRANCH}
|
|
||||||
uri: ${GIT_REPO}
|
|
||||||
contextDir: app-config/auth-service
|
|
||||||
sourceSecret:
|
|
||||||
name: sshdeploykey
|
|
||||||
output:
|
|
||||||
to:
|
|
||||||
kind: ImageStreamTag
|
|
||||||
name: 'auth-service:latest'
|
|
||||||
strategy:
|
|
||||||
sourceStrategy:
|
|
||||||
from:
|
|
||||||
kind: ImageStreamTag
|
|
||||||
name: 'python:3.6'
|
|
||||||
namespace: openshift
|
|
||||||
type: Source
|
|
||||||
triggers:
|
|
||||||
- imageChange:
|
|
||||||
type: ImageChange
|
|
||||||
- generic:
|
|
||||||
secretReference:
|
|
||||||
name: gitlab-cara-webhook-secret
|
|
||||||
type: Generic
|
|
||||||
-
|
|
||||||
kind: ImageStream
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: auth-service
|
|
||||||
-
|
|
||||||
kind: BuildConfig
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: cara-router
|
|
||||||
spec:
|
|
||||||
source:
|
|
||||||
git:
|
|
||||||
ref: ${GIT_BRANCH}
|
|
||||||
uri: ${GIT_REPO}
|
|
||||||
contextDir: app-config/nginx
|
|
||||||
sourceSecret:
|
|
||||||
name: sshdeploykey
|
|
||||||
output:
|
|
||||||
to:
|
|
||||||
kind: ImageStreamTag
|
|
||||||
name: 'cara-router:latest'
|
|
||||||
strategy:
|
|
||||||
sourceStrategy:
|
|
||||||
from:
|
|
||||||
kind: ImageStreamTag
|
|
||||||
name: 'nginx:1.12'
|
|
||||||
namespace: openshift
|
|
||||||
type: Source
|
|
||||||
triggers:
|
|
||||||
- generic:
|
|
||||||
secretReference:
|
|
||||||
name: gitlab-cara-webhook-secret
|
|
||||||
type: Generic
|
|
||||||
-
|
|
||||||
kind: ImageStream
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: cara-app
|
|
||||||
-
|
|
||||||
kind: BuildConfig
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: cara-router
|
|
||||||
spec:
|
|
||||||
source:
|
|
||||||
git:
|
|
||||||
ref: ${GIT_BRANCH}
|
|
||||||
uri: ${GIT_REPO}
|
|
||||||
contextDir: app-config/nginx
|
|
||||||
sourceSecret:
|
|
||||||
name: sshdeploykey
|
|
||||||
output:
|
|
||||||
to:
|
|
||||||
kind: ImageStreamTag
|
|
||||||
name: 'cara-router:latest'
|
|
||||||
strategy:
|
|
||||||
sourceStrategy:
|
|
||||||
from:
|
|
||||||
kind: ImageStreamTag
|
|
||||||
name: 'nginx:1.12'
|
|
||||||
namespace: openshift
|
|
||||||
type: Source
|
|
||||||
triggers:
|
|
||||||
- generic:
|
|
||||||
secretReference:
|
|
||||||
name: gitlab-cara-webhook-secret
|
|
||||||
type: Generic
|
|
||||||
-
|
|
||||||
kind: ImageStream
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: cara-router
|
|
||||||
-
|
|
||||||
kind: BuildConfig
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: cara-webservice
|
|
||||||
spec:
|
|
||||||
source:
|
|
||||||
git:
|
|
||||||
ref: ${GIT_BRANCH}
|
|
||||||
uri: ${GIT_REPO}
|
|
||||||
sourceSecret:
|
|
||||||
name: sshdeploykey
|
|
||||||
output:
|
|
||||||
to:
|
|
||||||
kind: ImageStreamTag
|
|
||||||
name: 'cara-webservice:latest'
|
|
||||||
strategy:
|
|
||||||
sourceStrategy:
|
|
||||||
from:
|
|
||||||
kind: ImageStreamTag
|
|
||||||
name: 'python:3.6'
|
|
||||||
namespace: openshift
|
|
||||||
type: Source
|
|
||||||
triggers:
|
|
||||||
- generic:
|
|
||||||
secretReference:
|
|
||||||
name: gitlab-cara-webhook-secret
|
|
||||||
type: Generic
|
|
||||||
-
|
|
||||||
kind: ImageStream
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: cara-webservice
|
|
||||||
-
|
-
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: DeploymentConfig
|
kind: DeploymentConfig
|
||||||
metadata:
|
metadata:
|
||||||
name: auth-service
|
name: auth-service
|
||||||
|
labels:
|
||||||
|
app: auth-service
|
||||||
spec:
|
spec:
|
||||||
replicas;: 1
|
replicas: 1
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: auth-service
|
app: auth-service
|
||||||
|
deploymentconfig: auth-service
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: auth-service
|
- name: auth-service
|
||||||
|
|
@ -165,11 +30,33 @@
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
- envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: auth-service
|
name: auth-service
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: auth-service-secrets
|
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:
|
triggers:
|
||||||
- type: ConfigChange
|
- type: ConfigChange
|
||||||
- type: ImageChange
|
- type: ImageChange
|
||||||
|
|
@ -187,7 +74,7 @@
|
||||||
metadata:
|
metadata:
|
||||||
name: cara-app
|
name: cara-app
|
||||||
spec:
|
spec:
|
||||||
replicas;: 1
|
replicas: 1
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
|
@ -202,6 +89,28 @@
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
protocol: TCP
|
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:
|
||||||
|
app: cara-app
|
||||||
triggers:
|
triggers:
|
||||||
- type: ConfigChange
|
- type: ConfigChange
|
||||||
- type: ImageChange
|
- type: ImageChange
|
||||||
|
|
@ -219,7 +128,7 @@
|
||||||
metadata:
|
metadata:
|
||||||
name: cara-router
|
name: cara-router
|
||||||
spec:
|
spec:
|
||||||
replicas;: 1
|
replicas: 1
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
|
@ -233,6 +142,28 @@
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
- containerPort: 8443
|
- containerPort: 8443
|
||||||
protocol: TCP
|
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:
|
||||||
|
app: cara-router
|
||||||
triggers:
|
triggers:
|
||||||
- type: ConfigChange
|
- type: ConfigChange
|
||||||
- type: ImageChange
|
- type: ImageChange
|
||||||
|
|
@ -251,7 +182,7 @@
|
||||||
metadata:
|
metadata:
|
||||||
name: cara-webservice
|
name: cara-webservice
|
||||||
spec:
|
spec:
|
||||||
replicas;: 1
|
replicas: 1
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
|
@ -275,6 +206,28 @@
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
protocol: TCP
|
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:
|
||||||
|
app: cara-webservice
|
||||||
triggers:
|
triggers:
|
||||||
- type: ConfigChange
|
- type: ConfigChange
|
||||||
- type: ImageChange
|
- type: ImageChange
|
||||||
|
|
@ -293,7 +246,7 @@
|
||||||
metadata:
|
metadata:
|
||||||
name: cara-calculator-open
|
name: cara-calculator-open
|
||||||
spec:
|
spec:
|
||||||
replicas;: 1
|
replicas: 1
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
|
@ -310,6 +263,28 @@
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
protocol: TCP
|
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:
|
||||||
|
app: cara-calculator-open
|
||||||
triggers:
|
triggers:
|
||||||
- type: ConfigChange
|
- type: ConfigChange
|
||||||
- type: ImageChange
|
- type: ImageChange
|
||||||
|
|
@ -327,9 +302,3 @@
|
||||||
- name: PROJECT_NAME
|
- name: PROJECT_NAME
|
||||||
description: The name of this project, e.g. test-cara
|
description: The name of this project, e.g. test-cara
|
||||||
required: true
|
required: true
|
||||||
- name: GIT_REPO
|
|
||||||
description: The GIT repo URL
|
|
||||||
value: 'ssh://git@gitlab.cern.ch:7999/cara/cara.git'
|
|
||||||
- name: GIT_BRANCH
|
|
||||||
description: The name of the GIT branch to use when building the app, e.g. `live/test-cara` in TEST, `master` in prod
|
|
||||||
required: true
|
|
||||||
36
app-config/openshift/imagestreams.yaml
Normal file
36
app-config/openshift/imagestreams.yaml
Normal file
|
|
@ -0,0 +1,36 @@
|
||||||
|
---
|
||||||
|
kind: "Template"
|
||||||
|
apiVersion: "v1"
|
||||||
|
metadata:
|
||||||
|
name: "cara-imagestreams"
|
||||||
|
creationTimestamp: null
|
||||||
|
annotations:
|
||||||
|
description: "CARA imagestreams OpenShift template."
|
||||||
|
tags: "cara-imagestreams"
|
||||||
|
labels:
|
||||||
|
template: "cara-application"
|
||||||
|
objects:
|
||||||
|
-
|
||||||
|
kind: ImageStream
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: auth-service
|
||||||
|
spec:
|
||||||
|
lookupPolicy:
|
||||||
|
local: False
|
||||||
|
-
|
||||||
|
kind: ImageStream
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: cara-router
|
||||||
|
spec:
|
||||||
|
lookupPolicy:
|
||||||
|
local: False
|
||||||
|
-
|
||||||
|
kind: ImageStream
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: cara-webservice
|
||||||
|
spec:
|
||||||
|
lookupPolicy:
|
||||||
|
local: False
|
||||||
|
|
@ -15,6 +15,8 @@
|
||||||
kind: Route
|
kind: Route
|
||||||
metadata:
|
metadata:
|
||||||
name: cara-route
|
name: cara-route
|
||||||
|
labels:
|
||||||
|
app: "cara-route"
|
||||||
spec:
|
spec:
|
||||||
host: ${HOST}
|
host: ${HOST}
|
||||||
port:
|
port:
|
||||||
|
|
@ -25,6 +27,8 @@
|
||||||
to:
|
to:
|
||||||
kind: Service
|
kind: Service
|
||||||
name: cara-router
|
name: cara-router
|
||||||
|
weight: 100
|
||||||
|
wildcardPolicy: None
|
||||||
|
|
||||||
parameters:
|
parameters:
|
||||||
- name: HOST
|
- name: HOST
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,8 @@
|
||||||
targetPort: 8080
|
targetPort: 8080
|
||||||
selector:
|
selector:
|
||||||
deploymentconfig: auth-service
|
deploymentconfig: auth-service
|
||||||
|
sessionAffinity: 'None'
|
||||||
|
type: 'ClusterIP'
|
||||||
-
|
-
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
|
@ -40,6 +42,8 @@
|
||||||
targetPort: 8080
|
targetPort: 8080
|
||||||
selector:
|
selector:
|
||||||
deploymentconfig: cara-app
|
deploymentconfig: cara-app
|
||||||
|
sessionAffinity: 'None'
|
||||||
|
type: 'ClusterIP'
|
||||||
-
|
-
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
|
@ -53,12 +57,10 @@
|
||||||
port: 8080
|
port: 8080
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
targetPort: 8080
|
targetPort: 8080
|
||||||
- name: 8443-tcp
|
|
||||||
port: 8443
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 8443
|
|
||||||
selector:
|
selector:
|
||||||
deploymentconfig: cara-router
|
deploymentconfig: cara-router
|
||||||
|
sessionAffinity: 'None'
|
||||||
|
type: 'ClusterIP'
|
||||||
-
|
-
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
|
@ -74,6 +76,8 @@
|
||||||
targetPort: 8080
|
targetPort: 8080
|
||||||
selector:
|
selector:
|
||||||
deploymentconfig: cara-webservice
|
deploymentconfig: cara-webservice
|
||||||
|
sessionAffinity: 'None'
|
||||||
|
type: 'ClusterIP'
|
||||||
-
|
-
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
|
@ -89,3 +93,5 @@
|
||||||
targetPort: 8080
|
targetPort: 8080
|
||||||
selector:
|
selector:
|
||||||
deploymentconfig: cara-calculator-open
|
deploymentconfig: cara-calculator-open
|
||||||
|
sessionAffinity: 'None'
|
||||||
|
type: 'ClusterIP'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue