-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy-on-k8s.yml
53 lines (53 loc) · 1.15 KB
/
deploy-on-k8s.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: ci-server
labels:
app: ci
spec:
selector:
matchLabels:
app: ci
template:
metadata:
labels:
app: ci
spec:
securityContext:
runAsUser: 65534
runAsGroup: 65534
serviceAccountName: builder
containers:
- name: ci-server
image: <<image_path>>
volumeMounts:
- name: tmp
mountPath: /.kube
env:
- name: OAUTH_TOKEN
value: <<token>>
- name: GITHUB_USER
value: <<user>>
- name: ORGANIZATION
value: infrawatch
- name: WEBHOOK_PROXY
value: <<url>>
- name: WORKERS
value: <<int-as-string>>
ports:
- containerPort: 3000
initContainers:
- name: kube-config
image: busybox
command: ['/bin/sh', '-c', 'cp /tmp/config /.kube/']
volumeMounts:
- name: tmp
mountPath: /.kube
- name: kube-config
mountPath: /tmp/
volumes:
- name: kube-config
secret:
secretName: kube-config
- name: tmp
emptyDir: {}