This repository was archived by the owner on Nov 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathopenproject-initial.yaml
More file actions
169 lines (169 loc) · 4.43 KB
/
Copy pathopenproject-initial.yaml
File metadata and controls
169 lines (169 loc) · 4.43 KB
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
apiVersion: v1
kind: Template
metadata:
name: openproject-initial
annotations:
description: "OpenProject - Online Open-Source Project Management"
tags: "projectmanagement,openproject"
iconClass: fa-cloud-upload
template.openshift.io/provider-display-name: "jngrb"
template.openshift.io/documentation-url: "https://github.com/jngrb/openproject-openshift/blob/master/README.md"
template.openshift.io/support-url: "https://github.com/jngrb/openproject-openshift/issues"
parameters:
- name: COMMUNITY_IMAGE_TAG
description: Tag of the OpenProject Community Docker Image to be deployed
value: '10.6'
- name: OPENPROJECT_HOST
description: Application URL of Nextcloud (Route/host)
required: true
- name: PVC_SIZE
description: PVC size for Apps, Config and Data
value: 4Gi
- name: SECRET_KEY_BASE
description: Secret key for the OpenProject instance
value: dkp-spielwiese
- name: DATABASE_SECRET
description: Name of the secret with the database reference DATABASE_URL
value: openproject-database-secret
objects:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: openproject-data
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: ${PVC_SIZE}
storageClassName: glusterfs-storage
- apiVersion: v1
kind: ImageStream
metadata:
labels:
build: community-initial
app: openproject
name: community-initial
spec:
tags:
- annotations: null
from:
kind: DockerImage
name: openproject/community:${COMMUNITY_IMAGE_TAG}
generation: null
importPolicy: {}
name: '${COMMUNITY_IMAGE_TAG}'
referencePolicy:
type: Source
- apiVersion: v1
kind: DeploymentConfig
metadata:
labels:
app: openproject
name: community-initial
spec:
replicas: 1
selector:
app: openproject
deploymentconfig: community-initial
strategy:
activeDeadlineSeconds: 21600
resources: {}
rollingParams:
intervalSeconds: 1
maxSurge: 25%
maxUnavailable: 25%
timeoutSeconds: 600
updatePeriodSeconds: 1
type: Rolling
template:
metadata:
labels:
app: openproject
deploymentconfig: community-initial
spec:
nodeSelector:
appclass: main
containers:
- env:
- name: SECRET_KEY_BASE
value: ${SECRET_KEY_BASE}
- name: DATABASE_URL
valueFrom:
secretKeyRef:
key: DATABASE_URL
name: ${DATABASE_SECRET}
- name: RAILS_CACHE_STORE
value: file_store
image: community-initial
imagePullPolicy: IfNotPresent
name: community-initial
ports:
- containerPort: 80
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /var/openproject/assets
name: openproject-data
subPath: assets
- mountPath: /var/openproject/pgdata
name: community-initial-1
dnsPolicy: ClusterFirst
restartPolicy: Always
securityContext: {}
serviceAccountName: root-allowed
terminationGracePeriodSeconds: 30
volumes:
- name: openproject-data
persistentVolumeClaim:
claimName: openproject-data
- emptyDir: {}
name: community-initial-1
test: false
triggers:
- imageChangeParams:
automatic: true
containerNames:
- community-initial
from:
kind: ImageStreamTag
name: community-initial:${COMMUNITY_IMAGE_TAG}
type: ImageChange
- type: ConfigChange
- apiVersion: v1
kind: Service
metadata:
labels:
app: openproject
name: community-initial
spec:
ports:
- name: http
port: 80
protocol: TCP
targetPort: 80
selector:
app: openproject
deploymentconfig: community-initial
sessionAffinity: None
type: ClusterIP
- apiVersion: v1
kind: Route
metadata:
labels:
app: openproject
name: community-initial
spec:
host: ${OPENPROJECT_HOST}
port:
targetPort: http
tls:
insecureEdgeTerminationPolicy: Redirect
termination: edge
to:
kind: Service
name: community-initial
weight: 100
wildcardPolicy: None