-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathodo_connector.yaml
47 lines (47 loc) · 1009 Bytes
/
odo_connector.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
apiVersion: v1
data:
Secret: <ADD_YOUR_SECRET_HERE>
kind: ConfigMap
metadata:
name: cm-adanite
---
apiVersion: v1
kind: Pod
metadata:
labels:
app: adanite
name: adanite
spec:
securityContext:
sysctls:
- name: net.ipv4.ip_forward
value: "1"
volumes:
- name: dev-net-tun
hostPath:
path: /dev/net/tun
containers:
- image: adanite/odo_connector:eu_v3
name: odoconnector
securityContext:
privileged: true
capabilities:
add: ["NET_ADMIN"]
volumeMounts:
- mountPath: /dev/net/tun
name: dev-net-tun
env:
# Define the environment variable
- name: Secret
valueFrom:
configMapKeyRef:
# The ConfigMap containing the value you want to assign to SPECIAL_LEVEL_KEY
name: cm-adanite
# Specify the key associated with the value
key: Secret
dnsPolicy: "None"
dnsConfig:
nameservers:
- 8.8.8.8
- 8.8.4.4
restartPolicy: Always