-
Notifications
You must be signed in to change notification settings - Fork 2
/
storage-api-openshift-template.yaml
171 lines (168 loc) · 4.14 KB
/
storage-api-openshift-template.yaml
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
apiVersion: v1
kind: Template
metadata:
creationTimestamp: null
name: storage-api
objects:
- apiVersion: v1
kind: Service
metadata:
labels:
app: storage-api
name: storage-api
spec:
ports:
- name: 8000-tcp
port: 8000
protocol: TCP
targetPort: 8000
selector:
deploymentconfig: storage-api
sessionAffinity: None
type: ClusterIP
status:
loadBalancer: {}
- apiVersion: v1
kind: DeploymentConfig
metadata:
labels:
app: storage-api
name: storage-api
spec:
replicas: 1
selector:
app: storage-api
deploymentconfig: storage-api
strategy:
resources: {}
rollingParams:
intervalSeconds: 1
maxSurge: 25%
maxUnavailable: 25%
timeoutSeconds: 600
updatePeriodSeconds: 1
type: Rolling
template:
metadata:
labels:
app: storage-api
deploymentconfig: storage-api
spec:
containers:
- env:
- name: SAPI_BACKENDS
value: ${SAPI_BACKENDS}
- name: SAPI_OAUTH_CLIENT_ID
value: ${SAPI_OAUTH_CLIENT_ID}
- name: SAPI_OAUTH_SECRET_KEY
value: ${SAPI_OAUTH_SECRET_KEY}
- name: SAPI_ROLE_USER_GROUPS
value: ${SAPI_ROLE_USER_GROUPS}
- name: SAPI_ROLE_ADMIN_GROUPS
value: ${SAPI_ROLE_ADMIN_GROUPS}
- name: SAPI_ROLE_UBER_ADMIN_GROUPS
value: ${SAPI_ROLE_UBER_ADMIN_GROUPS}
image: gitlab-registry.cern.ch/db/storage/storage-api
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 3
httpGet:
path: /
port: 8000
scheme: HTTP
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
name: storage-api
ports:
- containerPort: 8000
protocol: TCP
readinessProbe:
failureThreshold: 3
httpGet:
path: /
port: 8000
scheme: HTTP
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
resources: {}
terminationMessagePath: /dev/termination-log
dnsPolicy: ClusterFirst
restartPolicy: Always
securityContext: {}
terminationGracePeriodSeconds: 30
test: false
triggers:
- type: ConfigChange
- imageChangeParams:
automatic: true
containerNames:
- storage-api
from:
kind: ImageStreamTag
name: storage-api:latest
type: ImageChange
status: {}
- apiVersion: v1
kind: Route
metadata:
labels:
app: storage-api
name: slash
annotations:
haproxy.router.openshift.io/timeout: 60s
spec:
port:
targetPort: 8000-tcp
tls:
insecureEdgeTerminationPolicy: Redirect
termination: edge
to:
kind: Service
name: storage-api
weight: 100
wildcardPolicy: None
status:
ingress:
- conditions:
- lastTransitionTime: 2017-04-23T08:29:09Z
status: "True"
type: Admitted
routerName: router
wildcardPolicy: None
- apiVersion: v1
kind: ImageStream
metadata:
labels:
app: storage-api
name: storage-api
spec:
tags:
- annotations:
openshift.io/generated-by: OpenShiftWebConsole
openshift.io/imported-from: gitlab-registry.cern.ch/db/storage/storage-api:latest
from:
kind: DockerImage
name: gitlab-registry.cern.ch/db/storage/storage-api:latest
generation: 20
importPolicy: {}
name: storage-api
status:
dockerImageRepository: ""
parameters:
- name: SAPI_BACKENDS
required: true
description: "A list of back-ends to enable, with their settings. See the README!"
- name: SAPI_OAUTH_CLIENT_ID
required: true
- name: SAPI_OAUTH_SECRET_KEY
required: true
- name: SAPI_ROLE_ADMIN_GROUPS
required: true
- name: SAPI_ROLE_USER_GROUPS
value: ""
required: false
description: "If empty, assign the User role to unauthenticated users"
- name: SAPI_ROLE_UBER_ADMIN_GROUPS
required: true