-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Azure Arc Diagnostic #5025
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Azure Arc Diagnostic #5025
Changes from 15 commits
bb966c0
c68227a
5fba5c1
5cf400b
046b4ce
00c36d8
806e557
fbd4f10
a136ae4
a024972
7310cfa
0ec86e8
a69ca58
76697e0
cb91e2c
6e7c320
9b28cb5
25e07b1
e6efe35
6ed328b
4ee6418
ef010a7
ae037c6
ec1e6da
9ad541d
4fd69b3
4700b1a
260341b
a7123f2
c6e713d
4f476ca
2f9d895
9e13c0d
d6e2904
295c0f6
f82180d
649d213
6eb6083
78ff3d1
e560116
912fe12
01e3970
e0b1f59
2491aec
24f1bf9
f4f0ae1
e6ed83d
0c8fa90
e90e9ab
04a318b
2948119
567092e
d32e61a
1fb8434
2dc46e1
af4b2c5
b688290
68f0ec8
e08b762
91cd6ed
40f3d25
5b66e25
ab11adc
b6fcfc0
3421ee1
2080b2d
e2d9b64
2ef3dd3
3eebb1d
d1f2c34
470da05
f0ca8cc
c2ce76d
faf15f9
bcb1232
4c490c9
72b584f
a59490c
63e6eea
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| apiVersion: v1 | ||
| kind: ServiceAccount | ||
| metadata: | ||
| name: azure-arc-troubleshoot | ||
| namespace: default | ||
| --- | ||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| kind: Role | ||
| metadata: | ||
| namespace: default | ||
| name: secret-reader | ||
| rules: | ||
| - apiGroups: [""] # "" indicates the core API group | ||
| resources: ["secrets"] | ||
| verbs: ["get", "list", "watch", "create", "update", "patch", "delete"] | ||
| --- | ||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| kind: RoleBinding | ||
| metadata: | ||
| name: read-pods | ||
| namespace: default | ||
| subjects: | ||
| # You can specify more than one "subject" | ||
svagadia marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - kind: ServiceAccount | ||
| name: azure-arc-troubleshoot | ||
| namespace: default | ||
| roleRef: | ||
| kind: Role #this must be Role or ClusterRole | ||
| name: secret-reader # this must match the name of the Role or ClusterRole you wish to bind to | ||
svagadia marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| namespace: default | ||
| --- | ||
| apiVersion: batch/v1 | ||
| kind: Job | ||
| metadata: | ||
| name: diagnosercontainer | ||
| namespace: default | ||
| labels: | ||
| app: networktest | ||
| spec: | ||
| template: | ||
| metadata: | ||
| labels: | ||
| app: networktest | ||
| spec: | ||
| serviceAccountName: azure-arc-troubleshoot | ||
| containers: | ||
| - name: networktest1 | ||
| image: svacr1.azurecr.io/networktest:6.0 | ||
| namespace: default | ||
| restartPolicy: Never | ||
| backoffLimit: 4 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -121,3 +121,11 @@ | |
| - name: Disable multiple features. | ||
| text: az connectedk8s disable-features -n clusterName -g resourceGroupName --features custom-locations azure-rbac | ||
| """ | ||
|
|
||
| helps['connectedk8s troubleshoot'] = """ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @anraghun to review the help section There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. short-summary: Performs diagnostic checks on There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| type: command | ||
| short-summary: Perform diagnostic check on the arc-enabled kubernetes cluster. | ||
svagadia marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| examples: | ||
| - name: Executes diagnostic checks on a connected kubernetes cluster | ||
svagadia marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| text: az connectedk8s troubleshoot -n clusterName -g resourceGroupName | ||
| """ | ||
Uh oh!
There was an error while loading. Please reload this page.