forked from alezzandro/gogs-inmyopenshift-cloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgogs-standalone-template.yml
89 lines (89 loc) · 2.09 KB
/
gogs-standalone-template.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
apiVersion: v1
kind: Template
metadata:
name: gogs-standalone
annotations:
description: "Deploy a git server in minutes: gogs!"
tags: quickstart,instant-name,git,gogs
objects:
- apiVersion: v1
kind: Route
metadata:
labels:
name: gogs-standalone
name: gogs-standalone
spec:
host: "${APPLICATION_DOMAIN}"
port:
targetPort: 3000
to:
kind: Service
name: gogs-standalone
- apiVersion: v1
kind: Service
metadata:
labels:
name: gogs-standalone
name: gogs-standalone
spec:
ports:
- name: 3000-tcp
port: 3000
protocol: TCP
targetPort: 3000
selector:
name: gogs-standalone
deploymentconfig: gogs-standalone
sessionAffinity: None
type: ClusterIP
- apiVersion: v1
kind: DeploymentConfig
metadata:
labels:
name: gogs-standalone
name: gogs-standalone
spec:
replicas: 1
selector:
name: gogs-standalone
deploymentconfig: gogs-standalone
strategy:
resources: {}
rollingParams:
intervalSeconds: 1
maxSurge: 25%
maxUnavailable: 25%
timeoutSeconds: 600
updatePeriodSeconds: 1
type: Rolling
template:
metadata:
labels:
name: gogs-standalone
deploymentconfig: gogs-standalone
spec:
containers:
- image: gogs/gogs:latest
imagePullPolicy: IfNotPresent
name: gogs-standalone
ports:
- containerPort: 3000
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
volumeMounts:
- mountPath: /data
name: gogs-volume
dnsPolicy: ClusterFirst
restartPolicy: Always
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- emptyDir: {}
name: gogs-volume
triggers:
- type: ConfigChange
parameters:
- name: "APPLICATION_DOMAIN"
displayName: "Application Hostname"
description: "The exposed hostname that will route to the Gogs service, if left blank a value will be defaulted."