-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
62 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,23 @@ | ||
# vscode-as-a-service | ||
vscode-as-a-service | ||
|
||
This project helps to provide[vscode on remote server](https://github.com/cdr/code-server) on kubernetes. | ||
|
||
This project can provide for many user. | ||
|
||
## Requirement | ||
Set up [kubernetes](https://github.com/kubernetes/kubernetes) cluster and install [ESC](https://github.com/koba1t/ESC). | ||
|
||
## Install | ||
Apply container template resource. | ||
``` | ||
kubectl apply -f config/esc/template.yaml | ||
``` | ||
|
||
And, apply users resource. | ||
|
||
``` | ||
kubectl apply -f config/esc/user1.yaml | ||
kubectl apply -f config/esc/user2.yaml | ||
kubectl apply -f config/esc/user3.yaml | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: esc.k06.in/v1alpha1 | ||
kind: Template | ||
metadata: | ||
name: vscode | ||
spec: | ||
# Add fields here | ||
template: | ||
spec: | ||
containers: | ||
- image: codercom/code-server:v2 | ||
name: code-server | ||
args: ["--auth","none"] | ||
service: | ||
ports: | ||
- name: 80-80 | ||
port: 80 | ||
protocol: TCP | ||
targetPort: 8080 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: esc.k06.in/v1alpha1 | ||
kind: Userland | ||
metadata: | ||
name: user1 | ||
spec: | ||
# Add fields here | ||
templateName: template-sample |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: esc.k06.in/v1alpha1 | ||
kind: Userland | ||
metadata: | ||
name: user2 | ||
spec: | ||
# Add fields here | ||
templateName: template-sample |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: esc.k06.in/v1alpha1 | ||
kind: Userland | ||
metadata: | ||
name: user3 | ||
spec: | ||
# Add fields here | ||
templateName: template-sample |