File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# code-server-operator
22
3- // TODO(user): Add simple overview of use/purpose
3+ code-server-operator は、[ coder/code-server] ( https://github.com/coder/code-server ) を Kubernetes 上で管理するための Operator です。
4+ 同じ環境が複数台必要なとき、この Operator を使うことで簡単にデプロイすることができます。
45
5- ## Description
6+ ## Features
67
7- // TODO(user): An in-depth paragraph about your project and overview of use
8+ - ` CodeServer ` リソースを作成することで、Deployment、Service、Ingress、Secret、PVC が作成され、code-server がデプロイされます。
9+ - ` CodeServerDeployment ` リソースを作成することで、` spec.replicas ` に設定した数だけ ` CodeServer ` リソースが作成され、複数の code-server をデプロイすることができます。
810
9- ## Getting Started
11+ ## Install
12+
13+ ### Cert-Manager
14+
15+ ``` shell
16+ helm repo add jetstack https://charts.jetstack.io
17+ helm repo update
18+ helm install cert-manager jetstack/cert-manager --namespace cert-manager --create-namespace --set installCRDs=true
19+ ```
20+
21+ ### Code-Server-Operator
22+
23+ ``` shell
24+ helm repo add code-server-operator https://walnuts1018.github.io/code-server-operator
25+ helm repo update
26+ helm install code-server-operator code-server-operator/code-server-operator --set fullnameOverride=code-server-operator
27+ ```
28+
29+ ## Sample
30+
31+ ``` yaml
32+ apiVersion : cs.walnuts.dev/v1alpha2
33+ kind : CodeServerDeployment
34+ metadata :
35+ labels :
36+ app.kubernetes.io/name : codebox
37+ name : test
38+ spec :
39+ replicas : 3
40+ template :
41+ spec :
42+ storageSize : 3Gi
43+ storageClassName : local-path
44+ initPlugins :
45+ git :
46+ repourl : " github.com/walnuts1018/http-dump"
47+ branch : " master"
48+ copyDefaultConfig : {}
49+ copyHome : {}
50+ envs :
51+ - name : LANGUAGE_DEFAULT
52+ value : " ja"
53+ image : " ghcr.io/coder/code-server:4.89.1"
54+ domain : " walnuts.dev"
55+ ingressClassName : " nginx"
56+ ` ` `
57+
58+ ## Development
1059
1160### Prerequisites
1261
You can’t perform that action at this time.
0 commit comments