Skip to content

Commit 29dfdbb

Browse files
committed
wide open clusterole
1 parent cb37be9 commit 29dfdbb

File tree

2 files changed

+11
-57
lines changed

2 files changed

+11
-57
lines changed

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@
33
A Daemonset that does nothing, but has all your network utilities ready to go,
44
so you can test workloads in your Kubernetes cluster.
55

6+
## Warning
7+
The ClusterRole used to set up this tool provides read access to **ALL** resources
8+
in your Kubernetes cluster. This isn't recommended for anything that even comes
9+
close to a production environment. Please know what the fuck you are doing before
10+
you deploy this thing blindly to your Kubernetes cluster.
11+
12+
You are encouraged to modify the ClusterRole to restrict to specific resources
13+
before deploying.
14+
615
## Utilities
716
The image is based on [jonlabelle/network-tools](https://github.com/jonlabelle/docker-network-tools).
817
Several utilities are installed including:

seashell.yaml

+2-57
Original file line numberDiff line numberDiff line change
@@ -29,63 +29,9 @@ metadata:
2929
namespace: utils
3030
rules:
3131
- apiGroups:
32-
- ""
32+
- "*"
3333
resources:
34-
- events
35-
- namespaces
36-
- namespaces/status
37-
- nodes
38-
- nodes/logs
39-
- nodes/metrics
40-
- nodes/proxy
41-
- nodes/spec
42-
- nodes/stats
43-
- persistentvolumes
44-
- persistentvolumeclaims
45-
- pods
46-
- pods/status
47-
- replicationcontrollers
48-
- replicationcontrollers/status
49-
- resourcequotas
50-
- services
51-
verbs:
52-
- get
53-
- list
54-
- watch
55-
- apiGroups:
56-
- apps
57-
resources:
58-
- daemonsets
59-
- deployments
60-
- replicasets
61-
- statefulsets
62-
verbs:
63-
- get
64-
- list
65-
- watch
66-
- apiGroups:
67-
- extensions
68-
resources:
69-
- daemonsets
70-
- deployments
71-
- replicasets
72-
verbs:
73-
- get
74-
- list
75-
- watch
76-
- apiGroups:
77-
- batch
78-
resources:
79-
- jobs
80-
- cronjobs
81-
verbs:
82-
- get
83-
- list
84-
- watch
85-
- apiGroups:
86-
- autoscaling
87-
resources:
88-
- horizontalpodautoscalers
34+
- "*"
8935
verbs:
9036
- get
9137
- list
@@ -118,7 +64,6 @@ spec:
11864
containers:
11965
- name: seashell
12066
image: puckpuck/seashell:0.1
121-
imagePullPolicy: IfNotPresent
12267
env:
12368
- name: NODE_NAME
12469
valueFrom:

0 commit comments

Comments
 (0)