This repository has been archived by the owner on Sep 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
/
oxwc.yml
121 lines (121 loc) · 3.09 KB
/
oxwc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# Onix Web Console only deployment
apiVersion: v1
kind: Template
metadata:
name: onix-web-console
annotations:
description: "Deploys the Onix Web Console only."
parameters:
- name: WC_OX_WAPI_URI
value: "http://onixwapi:8080"
displayName: Onix Web API URI
description: The URI for the Onix Web API Service to which the Web Console Connects.
required: true
- name: WC_OX_WAPI_AUTH_MODE
value: "basic"
displayName: Onix Web API Authentication Mode
description: >-
The authentication mode used to connect to the Onix Web API (i.e. none, basic, oidc)
required: true
objects:
- apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
name: oxwc
spec:
replicas: 1
progressDeadlineSeconds: 600
revisionHistoryLimit: 10
selector:
deploymentconfig: oxwc
strategy:
activeDeadlineSeconds: 21600
resources: {}
rollingParams:
intervalSeconds: 1
maxSurge: 25%
maxUnavailable: 25%
timeoutSeconds: 600
updatePeriodSeconds: 1
type: Rolling
template:
metadata:
labels:
app: oxwc
deploymentconfig: oxwc
spec:
containers:
- name: oxwc
env:
- name: WC_OX_WAPI_URI
value: "${WC_OX_WAPI_URI}"
- name: OXKU_LOGINLEVEL
value: "${WC_OX_WAPI_AUTH_MODE}"
imagePullPolicy: IfNotPresent
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
triggers:
- type: ConfigChange
- type: ImageChange
imageChangeParams:
automatic: true
containerNames:
- oxwc
from:
kind: ImageStreamTag
name: oxwc-snapshot:latest
- apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
annotations:
labels:
app: oxwc
name: oxwc-snapshot
spec:
lookupPolicy:
local: true
tags:
- annotations:
from:
kind: DockerImage
name: gatblau/oxwc-snapshot
importPolicy:
scheduled: true
name: latest
referencePolicy:
type: Local
- apiVersion: v1
kind: Service
metadata:
name: oxwc
spec:
ports:
- name: "8080"
port: 8080
protocol: TCP
targetPort: 3000
selector:
deploymentconfig: oxwc
sessionAffinity: None
type: ClusterIP
- apiVersion: route.openshift.io/v1
kind: Route
metadata:
name: oxwc
spec:
port:
targetPort: "8080"
tls:
insecureEdgeTerminationPolicy: Redirect
termination: edge
to:
kind: Service
name: oxwc
weight: 100
wildcardPolicy: None