forked from cockroachlabs/repo-digest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdebug.sh
executable file
·49 lines (49 loc) · 1.21 KB
/
debug.sh
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
#!/bin/sh
echo "This takes a few seconds to spool up, be patient"
echo
exec kubectl run --rm -i --tty ubuntu --overrides='
{
"apiVersion": "v1",
"kind": "Pod",
"metadata": {
"creationTimestamp": null,
"labels": {
"run": "ubuntu"
},
"name": "ubuntu"
},
"spec": {
"containers": [
{
"args": [
"bash"
],
"image": "ubuntu:latest",
"name": "ubuntu",
"resources": {},
"stdin": true,
"stdinOnce": true,
"tty": true,
"volumeMounts": [
{
"mountPath": "/data",
"name": "data",
"subPath": "repo-digest"
}
]
}
],
"dnsPolicy": "ClusterFirst",
"restartPolicy": "Never",
"volumes": [
{
"name": "data",
"persistentVolumeClaim": {
"claimName": "roachdash-claim"
}
}
]
},
"status": {}
}
' --image ubuntu:latest --restart=Never -- bash