Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8d6f88d

Browse files
committed
chore: README updates
1 parente7c0d54 commit8d6f88d

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

‎examples/templates/kubernetes-multi-service/README.mdrenamed to‎examples/templates/kubernetes-pod/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,18 @@ roleRef:
7272

7373
Then start the Coder host with `serviceAccountName:coder` in the pod spec.
7474

75+
## Namespace
76+
77+
The target namespace in which the pod will be deployed is defined via the `coder_workspace`
78+
variable. The namespace must exist prior to creating workspaces.
79+
7580
## Persistence
7681

7782
The `/home/coder` directory in this example is persisted via the attached PersistentVolumeClaim.
7883
Any data saved outside of this directory will be wiped when the workspace stops.
84+
85+
## code-server
86+
87+
`code-server`is installed via the `startup_script` argument in the `coder_agent`
88+
resource block. The `coder_app` resource is defined to access `code-server` through
89+
the dashboard UI over `localhost:13337`.

‎examples/templates/kubernetes-multi-service/main.tfrenamed to‎examples/templates/kubernetes-pod/main.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ variable "use_kubeconfig" {
2525
EOF
2626
}
2727

28-
variable"workspaces_namespace" {
28+
variable"coder_namespace" {
2929
type=string
3030
sensitive=true
3131
description="The namespace to create workspaces in (must exist prior to creating workspaces)"
32-
default="coder-workspace"
32+
default="coder-namespace"
3333
}
3434

3535
variable"disk_size" {
@@ -70,7 +70,7 @@ resource "kubernetes_pod" "main" {
7070
count=data.coder_workspace.me.start_count
7171
metadata {
7272
name="coder-${data.coder_workspace.me.owner}-${data.coder_workspace.me.name}"
73-
namespace=var.workspaces_namespace
73+
namespace=var.coder_namespace
7474
}
7575
spec {
7676
security_context {
@@ -105,7 +105,7 @@ resource "kubernetes_pod" "main" {
105105
resource"kubernetes_persistent_volume_claim""home-directory" {
106106
metadata {
107107
name="home-coder-java-${data.coder_workspace.me.owner}-${data.coder_workspace.me.name}"
108-
namespace=var.workspaces_namespace
108+
namespace=var.coder_namespace
109109
}
110110
spec {
111111
access_modes=["ReadWriteOnce"]

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp