-
Notifications
You must be signed in to change notification settings - Fork 36
/
time2code-server-k8s.yml
50 lines (49 loc) · 1022 Bytes
/
time2code-server-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
apiVersion: v1
kind: Service
metadata:
name: time2codeserver
spec:
type: LoadBalancer
ports:
- name: time2codeserver-5555
port: 5555
protocol: TCP
targetPort: 5555
selector:
app: time2codeserver
component: time2codeserver
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: time2codeserver
spec:
replicas: 3
rollbackTo:
revision: 0
selector:
matchLabels:
app: time2codeserver
component: time2codeserver
strategy:
rollingUpdate:
maxSurge: 3
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
labels:
app: time2codeserver
component: time2codeserver
spec:
containers:
- image: jockdarock/time2codeserver:latest
name: time2codeserver
imagePullPolicy: Always
env:
- name: time2code_provider_url
value: "http://time2codeserver.default:5555"
ports:
- containerPort: 5555
protocol: TCP
restartPolicy: Always