forked from antrea-io/antrea
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathantrea-octant.yml
71 lines (71 loc) · 1.49 KB
/
antrea-octant.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
apiVersion: v1
kind: Service
metadata:
labels:
app: antrea
name: antrea-octant
namespace: kube-system
spec:
ports:
- port: 80
targetPort: 80
selector:
app: antrea
component: antrea-octant
type: NodePort
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: antrea
component: antrea-octant
name: antrea-octant
namespace: kube-system
spec:
replicas: 1
selector:
matchLabels:
app: antrea
component: antrea-octant
strategy:
type: Recreate
template:
metadata:
labels:
app: antrea
component: antrea-octant
spec:
containers:
- args:
- -v
command:
- octant
env:
- name: OCTANT_ACCEPTED_HOSTS
value: 0.0.0.0
- name: OCTANT_LISTENER_ADDR
value: 0.0.0.0:80
- name: OCTANT_DISABLE_OPEN_BROWSER
value: "true"
- name: KUBECONFIG
value: /kube/admin.conf
image: antrea/octant-antrea-ubuntu:latest
imagePullPolicy: IfNotPresent
name: antrea-octant
ports:
- containerPort: 80
volumeMounts:
- mountPath: /kube/
name: kubeconfig
priorityClassName: system-cluster-critical
tolerations:
- key: CriticalAddonsOnly
operator: Exists
- effect: NoSchedule
key: node-role.kubernetes.io/master
volumes:
- name: kubeconfig
secret:
defaultMode: 256
secretName: octant-kubeconfig