-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yml
79 lines (79 loc) · 1.97 KB
/
deployment.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
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
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: vpn
namespace: vpn
labels:
app: vpn
spec:
selector:
matchLabels:
app: vpn
template:
metadata:
labels:
app: vpn
annotations:
prometheus.io/port: "80"
prometheus.io/scrape: "true"
spec:
nodeSelector:
kubernetes.io/os: linux
containers:
- name: vpn
image: nginx:alpine
imagePullPolicy: IfNotPresent
env:
- name: CIDR
value: 10.14.14.0/24
- name: ALLOWED_AD_GROUP_NAME
value: Product Department
ports:
- name: http
containerPort: 80
protocol: TCP
- name: wireguard
containerPort: 51820
protocol: UDP
resources:
limits:
cpu: 500m
memory: 256Mi
requests:
cpu: 10m
memory: 71Mi
securityContext:
capabilities:
add:
- NET_ADMIN
volumeMounts:
- name: vpn
mountPath: /docker-entrypoint.d/00-init.sh
subPath: entrypoint.sh
- name: vpn
mountPath: /etc/nginx/conf.d/default.conf
subPath: default.conf
- name: vpn
mountPath: /usr/share/nginx/html/index.sh
subPath: index.sh
- name: vpn
mountPath: /usr/share/nginx/html/add.sh
subPath: add.sh
- name: vpn
mountPath: /usr/share/nginx/html/remove.sh
subPath: remove.sh
- name: vpn
mountPath: /usr/share/nginx/html/check.sh
subPath: check.sh
- name: vpn
mountPath: /usr/share/nginx/html/cleanup.sh
subPath: cleanup.sh
- name: vpn
mountPath: /usr/share/nginx/html/metrics.sh
subPath: metrics.sh
volumes:
- name: vpn
configMap:
name: vpn
defaultMode: 0777