-
Notifications
You must be signed in to change notification settings - Fork 9
/
k8s-spec.yml.example
126 lines (121 loc) · 2.33 KB
/
k8s-spec.yml.example
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
---
kind: Secret
apiVersion: v1
metadata:
name: kontinuous-secrets
namespace: acaleph
data:
kontinuous-secrets: {base64 encoded secrets}
---
kind: Service
apiVersion: v1
metadata:
name: etcd
namespace: acaleph
labels:
app: etcd
type: kv
spec:
selector:
app: etcd
type: kv
ports:
- name: api
port: 2379
targetPort: 2379
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: etcd
namespace: acaleph
labels:
app: etcd
type: kv
spec:
replicas: 1
selector:
matchLabels:
app: etcd
type: kv
template:
metadata:
labels:
app: etcd
type: kv
spec:
containers:
- name: etcd
image: quay.io/coreos/etcd:v2.2.2
imagePullPolicy: Always
args:
- --listen-client-urls
- http://0.0.0.0:2379
- --advertise-client-urls
- http://0.0.0.0:2379
ports:
- name: api
containerPort: 2379
---
kind: Service
apiVersion: v1
metadata:
name: kontinuous
namespace: acaleph
labels:
app: kontinuous
type: ci-cd
spec:
type: LoadBalancer
selector:
app: kontinuous
type: ci-cd
ports:
- name: api
port: 8080
targetPort: 3005
---
kind: Deployment
apiVersion: extensions/v1beta1
metadata:
name: kontinuous
namespace: acaleph
labels:
app: kontinuous
type: ci-cd
spec:
replicas: 1
selector:
matchLabels:
app: kontinuous
type: ci-cd
template:
metadata:
labels:
app: kontinuous
type: ci-cd
spec:
volumes:
- name: kontinuous-secrets
secret:
secretName: kontinuous-secrets
containers:
- name: acaleph-deploy
image: quay.io/acaleph/kontinuous:latest
imagePullPolicy: Always
ports:
- name: api
containerPort: 3005
env:
- name: KV_ADDRESS
value: etcd:2379
- name: S3_URL
value: http://minio.acaleph:9000
- name: KONTINUOUS_URL
value: http://{{kontinuous}}:8080
- name: INTERNAL_REGISTRY
value: {{internal-registry}}:5000
volumeMounts:
- name: kontinuous-secrets
mountPath: /.secret
readOnly: true