forked from networkop/k8s-topo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanifest.yml
92 lines (92 loc) · 1.71 KB
/
manifest.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
---
apiVersion: v1
kind: List
items:
- apiVersion: v1
kind: ServiceAccount
metadata:
name: k8s-topo
namespace: default
- apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: k8s-topo-clusterrole
rules:
- apiGroups:
- ""
resources:
- configmaps
- pods
- services
verbs: ["*"]
- apiGroups:
- ""
resources:
- pods/exec
- pods/log
verbs: ["*"]
- apiGroups:
- "networkop.co.uk"
resources:
- topologies
verbs: ["*"]
- apiGroups:
- "networkop.co.uk"
resources:
- topologies/status
verbs: ["*"]
- apiGroups:
- "networkservicemesh.io"
resources:
- networkservices
verbs: ["*"]
- apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: k8s-topo-clusterrolebinding
roleRef:
kind: ClusterRole
name: k8s-topo-clusterrole
apiGroup: rbac.authorization.k8s.io
subjects:
- kind: ServiceAccount
name: k8s-topo
namespace: default
- apiVersion: v1
kind: Service
metadata:
name: k8s-topo-service
labels:
run: k8s-topo-service
spec:
type: NodePort
ports:
- port: 80
nodePort: 30000
protocol: TCP
selector:
app: k8s-topo
- apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: k8s-topo
name: k8s-topo
spec:
replicas: 1
selector:
matchLabels:
app: k8s-topo
template:
metadata:
labels:
app: k8s-topo
spec:
serviceAccountName: k8s-topo
hostNetwork: true
containers:
- image: networkop/k8s-topo:0.2.0
imagePullPolicy: Always
name: k8s-topo
ports:
- containerPort: 80