You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/templates/kubernetes-multi-service/main.tf
+12-49
Original file line number
Diff line number
Diff line change
@@ -11,70 +11,32 @@ terraform {
11
11
}
12
12
}
13
13
14
-
variable"step1_use_kubeconfig" {
14
+
variable"use_kubeconfig" {
15
15
type=bool
16
16
sensitive=true
17
17
description=<<-EOF
18
18
Use host kubeconfig? (true/false)
19
19
20
-
If true, a valid "~/.kube/config" must be present on the Coder host. This
21
-
is likely not your local machine unless you are using `coder server --dev.`
22
-
23
-
If false, proceed for instructions creating a ServiceAccount on your existing
24
-
Kubernetes cluster.
25
-
EOF
26
-
}
27
-
28
-
variable"step2_cluster_host" {
29
-
type=string
30
-
sensitive=true
31
-
description=<<-EOF
32
-
Hint: You can use:
33
-
$ kubectl cluster-info | grep "control plane"
34
-
20
+
Set this to false if the Coder host is itself running as a Pod on the same
21
+
Kubernetes cluster as you are deploying workspaces to.
35
22
36
-
Leave blank if using ~/.kube/config (from step 1)
37
-
EOF
38
-
}
39
-
40
-
variable"step3_certificate" {
41
-
type=string
42
-
sensitive=true
43
-
description=<<-EOF
44
-
Use docs at https://github.com/coder/coder/tree/main/examples/templates/kubernetes-multi-service#serviceaccount to create a ServiceAccount for Coder and grab values.
45
-
46
-
Enter CA certificate
47
-
48
-
Leave blank if using ~/.kube/config (from step 1)
49
-
EOF
50
-
}
51
-
52
-
variable"step4_token" {
53
-
type=string
54
-
sensitive=true
55
-
description=<<-EOF
56
-
Enter token (refer to docs at https://github.com/coder/coder/tree/main/examples/templates/kubernetes-multi-service#serviceaccount)
23
+
Set this to true if the Coder host is running outside the Kubernetes cluster
24
+
for workspaces. A valid "~/.kube/config" must be present on the Coder host. This
25
+
is likely not your local machine unless you are using `coder server --dev.`
57
26
58
-
Leave blank if using ~/.kube/config (from step 1)
59
27
EOF
60
28
}
61
29
62
-
variable"step5_coder_namespace" {
30
+
variable"workspaces_namespace" {
63
31
type=string
64
32
sensitive=true
65
-
description=<<-EOF
66
-
Enter namespace (refer to docs at https://github.com/coder/coder/tree/main/examples/templates/kubernetes-multi-service#serviceaccount)
67
-
68
-
Leave blank if using ~/.kube/config (from step 1)
69
-
EOF
33
+
description="The namespace to create workspaces in (must exist prior to creating workspaces)"
34
+
default="coder-workspaces"
70
35
}
71
36
72
37
provider"kubernetes" {
73
38
# Authenticate via ~/.kube/config or a Coder-specific ServiceAccount, depending on admin preferences
0 commit comments