-
Notifications
You must be signed in to change notification settings - Fork 5
/
deployment-quickstart.yaml
52 lines (52 loc) · 1 KB
/
deployment-quickstart.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: vpn
namespace: devops
spec:
selector:
matchLabels:
app: softether-vpnserver
template:
metadata:
labels:
app: softether-vpnserver
spec:
containers:
- name: softether-vpn-alpine
image: siomiz/softethervpn
imagePullPolicy: IfNotPresent
ports:
- containerPort: 5555
name: connect
protocol: TCP
livenessProbe:
tcpSocket:
port: 5555
initialDelaySeconds: 60
timeoutSeconds: 5
failureThreshold: 12
readinessProbe:
tcpSocket:
port: 5555
resources:
limits:
cpu: 1000m
memory: 200Mi
requests:
cpu: 500m
memory: 100Mi
---
apiVersion: v1
kind: Service
metadata:
name: vpn
namespace: devops
spec:
selector:
app: softether-vpnserver
type: NodePort
ports:
- name: connect
port: 5555
nodePort: 30003