-
Notifications
You must be signed in to change notification settings - Fork 0
/
odo-deployment.yaml
57 lines (57 loc) · 1.2 KB
/
odo-deployment.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
53
54
55
56
57
apiVersion: v1
data:
Secret: <REPLACE_ME_WITH_BASE64_ENCODED_CONNECTOR_SECRET>
kind: Secret
metadata:
name: odo-secret
type: Opaque
---
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: odo-deployment
name: odo-deployment
spec:
replicas: 1
selector:
matchLabels:
app: odo-deployment
strategy: {}
template:
metadata:
labels:
app: odo-deployment
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:
secretKeyRef:
name: odo-secret
key: Secret
dnsPolicy: "None"
dnsConfig:
nameservers:
- 8.8.8.8
- 8.8.4.4
restartPolicy: Always