This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
k8s-avd-cvp.yml
101 lines (101 loc) · 2.54 KB
/
k8s-avd-cvp.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
apiVersion: apps/v1
kind: Deployment
metadata:
name: avd
labels:
app: avd
spec:
replicas: 1
selector:
matchLabels:
app: avd
template:
metadata:
labels:
app: avd
spec:
nodeName: $PRIMARY_HOSTNAME
hostNetwork: false
securityContext:
runAsUser: 1000
dnsPolicy: ClusterFirst
containers:
- name: avd
image: avdteam/avd-all-in-one:latest
imagePullPolicy: Never
securityContext:
allowPrivilegeEscalation: true
capabilities:
drop:
- all
readOnlyRootFilesystem: false
env:
- name: CVP_MODE
value: $CVP_MODE
- name: CVP_VERSION
value: $CVP_VERSION
- name: PRIMARY_DEVICE_INTF_IP
value: $PRIMARY_DEVICE_INTF_IP
- name: SECONDARY_DEVICE_INTF_IP
value: $SECONDARY_DEVICE_INTF_IP
- name: TERTIARY_DEVICE_INTF_IP
value: $TERTIARY_DEVICE_INTF_IP
- name: PRIMARY_HOST_IP
value: $PRIMARY_HOST_IP
- name: SECONDARY_HOST_IP
value: $SECONDARY_HOST_IP
- name: TERTIARY_HOST_IP
value: $TERTIARY_HOST_IP
- name: PRIMARY_HOSTNAME
value: $PRIMARY_HOSTNAME
- name: SECONDARY_HOSTNAME
value: $SECONDARY_HOSTNAME
- name: TERTIARY_HOSTNAME
value: $TERTIARY_HOSTNAME
- name: AERIS_INGEST_KEY
value: '$AERIS_INGEST_KEY'
- name: CURRENT_NODE_IP
valueFrom:
fieldRef:
fieldPath: status.hostIP
command:
- zsh
- -c
- --
args:
- while true;
- do sleep 3000;
- done;
volumeMounts:
- name: tmpfs
mountPath: /tmp
- name: certs-dir
mountPath: /usr/share/nginx/images
readOnly: true
- name: lib64
mountPath: /usr/lib64
readOnly: true
- name: home-avd
mountPath: /projects
readOnly: false
resources:
limits:
cpu: "3"
memory: "4Gi"
requests:
cpu: "100m"
memory: "100Mi"
terminationGracePeriodSeconds: 10
volumes:
- name: tmpfs
hostPath:
path: /tmp
- name: certs-dir
hostPath:
path: /usr/share/nginx/certs
- name: lib64
hostPath:
path: /usr/lib64
- name: home-avd
hostPath:
path: /home/avd