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: README.md
+52-36Lines changed: 52 additions & 36 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,28 +11,43 @@ This template creates a development environment for contributing to Kubernetes u
11
11
12
12
## Features
13
13
14
-
- Pre-installed development tools:
15
-
- Go 1.21.0
16
-
- Git
17
-
- Docker CLI (latest version)
18
-
- Build essentials (gcc, make, etc.)
19
-
- vim editor
20
-
- kubectl with shell completion
21
-
- etcd
22
-
23
-
- Automatic setup:
24
-
- Clones the Kubernetes repository
25
-
- Configures Go workspace
26
-
- Sets up development environment
27
-
- Builds Kubernetes from source
28
-
- Configures Docker CLI with custom daemon connection
14
+
### Development Tools
15
+
- Go 1.21.0
16
+
- Git
17
+
- Docker CLI
18
+
- Build essentials (gcc, make, etc.)
19
+
- vim editor
20
+
- etcd v3.5.9
21
+
- Python 3 with PyYAML
22
+
- Network tools (ifconfig, netstat, etc.)
23
+
- rsync for file synchronization
24
+
25
+
### Environment Configuration
26
+
- Timezone configuration with tzdata
27
+
- Proper user/group setup (UID 1000, root group access)
28
+
- Persistent workspace storage
29
+
- Configurable Docker daemon connection
30
+
- GOPATH configured at /home/coder
31
+
- Kubernetes repository cloned directly in home directory
32
+
33
+
## Template Parameters
34
+
35
+
-`cpu`: Number of CPU cores (default: 4)
36
+
-`memory`: Memory in GB (default: 8)
37
+
-`disk_size`: Disk size in GB (default: 50)
38
+
-`namespace`: Kubernetes namespace for the workspace (default: coder-workspaces)
39
+
-`docker_host`: Docker daemon address to connect to (default: "unix:///var/run/docker.sock")
40
+
-`container_image`: Container image to use (default: "ghcr.io/<owner>/kubernetes-coder-dev:latest")
41
+
-`kubernetes_repo`: Git repository URL for Kubernetes (default: "https://github.com/kubernetes/kubernetes.git")
42
+
-`kubernetes_branch`: Git branch to clone (default: "master")
29
43
30
44
## Usage
31
45
32
46
1. Create a new workspace using this template
33
-
2. Wait for the initialization script to complete (this may take several minutes)
34
-
3. Connect to your workspace
35
-
4. The Kubernetes source code will be available at `$HOME/go/src/k8s.io/kubernetes`
47
+
2. Configure the parameters as needed
48
+
3. Wait for the initialization script to complete
49
+
4. Connect to your workspace
50
+
5. The Kubernetes source code will be available at `$HOME/kubernetes`
36
51
37
52
## Development Workflow
38
53
@@ -41,39 +56,40 @@ This template creates a development environment for contributing to Kubernetes u
41
56
3. Run tests using `make test`
42
57
4. Submit your changes following the [Kubernetes contribution guidelines](https://github.com/kubernetes/community/blob/master/contributors/guide/README.md)
43
58
44
-
## Template Parameters
45
-
46
-
-`cpu`: Number of CPU cores (default: 4)
47
-
-`memory`: Memory in GB (default: 8)
48
-
-`disk_size`: Disk size in GB (default: 50)
49
-
-`namespace`: Kubernetes namespace for the workspace (default: coder-workspaces)
50
-
-`use_kubeconfig`: Whether to use local kubeconfig for authentication (default: false)
51
-
-`docker_host`: Docker daemon address to connect to (default: "unix:///var/run/docker.sock")
52
-
53
59
## Docker Configuration
54
60
55
61
The template supports connecting to a Docker daemon in different ways:
56
-
57
62
1. Local socket (default): `unix:///var/run/docker.sock`
0 commit comments