-
Notifications
You must be signed in to change notification settings - Fork 4.7k
/
template.yaml
70 lines (70 loc) · 1.65 KB
/
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
apiVersion: v1beta3
items:
- apiVersion: v1beta3
kind: DeploymentConfig
metadata:
name: gitserver
spec:
replicas: 1
selector:
run-container: gitserver
template:
metadata:
labels:
run-container: gitserver
spec:
containers:
- env:
- name: PUBLIC_URL
value: http://gitserver.myproject.local:8080
- name: GIT_HOME
value: /var/lib/git
- name: HOOK_PATH
value: /var/lib/git-hooks
- name: ALLOW_GIT_PUSH
value: "yes"
- name: ALLOW_GIT_HOOKS
value: "yes"
- name: ALLOW_LAZY_CREATE
value: "yes"
- name: AUTOLINK_CONFIG
value: /var/lib/gitsecrets/admin.kubeconfig
- name: AUTOLINK_NAMESPACE
- name: AUTOLINK_HOOK
value: null
- name: REQUIRE_GIT_AUTH
- name: KUBECONFIG
value: /var/lib/gitsecrets/admin.kubeconfig
image: openshift/origin-gitserver
name: gitserver
ports:
- containerPort: 8080
volumeMounts:
- mountPath: /var/lib/gitsecrets/
name: config
readOnly: true
volumes:
- name: config
secret:
secretName: gitserver-config
triggers:
- type: ConfigChange
- apiVersion: v1beta3
kind: Secret
metadata:
name: gitserver-config
spec:
data:
admin.kubeconfig: null
- apiVersion: v1beta3
kind: Service
metadata:
name: gitserver
spec:
ports:
- port: 8080
targetPort: 8080
selector:
run-container: gitserver
kind: List
metadata: {}