-
Notifications
You must be signed in to change notification settings - Fork 12
/
example-launch.json
113 lines (113 loc) · 2.96 KB
/
example-launch.json
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "deploy",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceRoot}",
"env": {},
"args": [
"deploy",
"--debug",
"--api-model=${workspaceRoot}/examples/kubernetes.json",
"--dns-prefix=${input:dnsPrefix}",
"--auto-suffix",
"--location=${input:location}",
"--client-id=${env:CLIENT_ID}",
"--client-secret=${env:CLIENT_SECRET}",
"--set",
"linuxProfile.ssh.publicKeys[0].keyData=${env:AKSE_PUB_KEY}"
],
"showLog": true
},
{
"name": "generate",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceRoot}",
"env": {},
"args": [
"generate",
"--debug",
"--api-model=${workspaceRoot}/examples/kubernetes.json",
"--set",
"linuxProfile.ssh.publicKeys[0].keyData=${env:AKSE_PUB_KEY}"
],
"showLog": true
},
{
"name": "scale",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceRoot}",
"env": {},
"args": [
"scale",
"--debug",
"--api-model=${workspaceRoot}/_output/${input:clusterName}/apimodel.json",
"--apiserver=${input:clusterName}.eastus.cloudapp.azure.com",
"--location=${input:location}",
"--resource-group=${input:clusterName}",
"--new-node-count=${input:newNodeCount}",
"--client-id=${env:CLIENT_ID}",
"--client-secret=${env:CLIENT_SECRET}"
]
},
{
"name": "upgrade",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceRoot}",
"env": {},
"args": [
"upgrade",
"--debug",
"--api-model=${workspaceRoot}/_output/${input:clusterName}/apimodel.json",
"--force",
"--location=${input:location}",
"--resource-group=${input:clusterName}",
"--upgrade-version=${input:kubernetesVersion}",
"--client-id=${env:CLIENT_ID}",
"--client-secret=${env:CLIENT_SECRET}"
]
}
],
"inputs": [
{
"id": "clusterName",
"type": "promptString",
"description": "Name of cluster:"
},
{
"id": "dnsPrefix",
"type": "promptString",
"description": "DNS prefix:"
},
{
"id": "kubernetesVersion",
"type": "promptString",
"description": "Kubernetes version:",
"default": "1.22.2"
},
{
"id": "location",
"type": "promptString",
"description": "Azure location:",
"default": "eastus"
},
{
"id": "newNodeCount",
"type": "promptString",
"description": "node count:",
"default": "3"
}
]
}