forked from rememberSoftwares/gitfaas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.yaml
75 lines (72 loc) · 1.48 KB
/
deploy.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: gitfaas
labels:
app: gitfaas
spec:
replicas: 1
selector:
matchLabels:
app: gitfaas
template:
metadata:
labels:
app: gitfaas
spec:
shareProcessNamespace: true
containers:
- name: git
image: wingardiumleviosa/gitfaas-git:0.0.3
env:
- name: GIT_URL
value: "<REPLACE>"
- name: GIT_USER_NAME
value: "<REPLACE>"
- name: GIT_PERSONAL_TOKEN
value: "<REPLACE>"
- name: POLLING_TIME
value: "5"
- name: WORK_PATH
value: "/pod-data"
imagePullPolicy: Always
ports:
- containerPort: 5000
volumeMounts:
- name: shared-data
mountPath: /pod-data
- name: apply
image: wingardiumleviosa/gitfaas-apply:0.0.3
env:
- name: WORK_PATH
value: "/pod-data"
imagePullPolicy: Always
ports:
- containerPort: 5000
volumeMounts:
- name: shared-data
mountPath: /pod-data
- name: kubeconfig
mountPath: "/init"
volumes:
- name: shared-data
emptyDir: {}
- name: kubeconfig
secret:
secretName: kubeconfig
---
apiVersion: v1
kind: Service
metadata:
name: gitfaas
labels:
app: gitfaas
spec:
type: ClusterIP
ports:
- port: 5000
targetPort: 5000
protocol: TCP
name: http
selector:
app: gitfaas