-
Notifications
You must be signed in to change notification settings - Fork 0
/
diploid.yaml
104 lines (100 loc) · 2.12 KB
/
diploid.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
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
kind: Deployment
apiVersion: apps/v1
metadata:
name: diploid
namespace: diploid
labels:
app: diploid
spec:
selector:
matchLabels:
app: diploid
template:
metadata:
labels:
app: diploid
spec:
nodeSelector:
node-role.kubernetes.io/master: ""
containers:
- name: diploid
image: seeekr/diploid
imagePullPolicy: Always
ports:
- containerPort: 80
env:
- name: CONFIG_DIR
value: /etc/diploid
- name: SOURCE_DIR
value: /data/diploid/source
- name: STATE_DIR
value: /data/diploid/state
- name: USE_GVISOR
value: "true"
- name: HOOKS_TOKEN
value: AYoi7Yvohzh2BfBJFNY3t10Ej9FbbNYi
volumeMounts:
- name: config
mountPath: /etc/diploid
readOnly: true
- name: kubernetes-config
mountPath: /root/.kube/admin.conf
readOnly: true
- name: diploid
mountPath: /diploid
- name: docker-sock
mountPath: /var/run/docker.sock
volumes:
- name: config
configMap:
name: diploid-config
- name: kubernetes-config
hostPath:
path: /etc/kubernetes/admin.conf
type: File
- name: diploid
hostPath:
path: /data/diploid
type: DirectoryOrCreate
- name: docker-sock
hostPath:
path: /var/run/docker.sock
type: Socket
---
kind: Service
apiVersion: v1
metadata:
name: diploid
namespace: diploid
labels:
app: diploid
spec:
selector:
app: diploid
ports:
- port: 80
---
kind: Ingress
apiVersion: extensions/v1beta1
metadata:
name: diploid
namespace: diploid
labels:
app: diploid
annotations:
kubernetes.io/ingress.class: nginx
kubernetes.io/tls-acme: true
nginx.ingress.kubernetes.io/ssl-redirect: true
spec:
tls:
- hosts:
- diploid.{{domain}}
secretName: tls-diploid
rules:
- host: diploid.{{domain}}
http:
paths:
- path: /
backend:
serviceName: diploid
servicePort: 80