diff --git a/README.md b/README.md index 4a86528..e28f200 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ The following tables lists the configurable parameters of the `vsts-agent` chart | `image.pullPolicy` | Image pull policy | `Always` | | `replicas` | Number of vsts-agent instaces started | `3` | | `resources.disk` | Size of the disk attached to the agent| `50Gi` | +| `resources.storageclass` | Specify storageclass used in kubernetes| `default` | | `vstsAccount` | VSTS account name | `nil` (must be provided during installation) | | `vstsToken` | VSTS personal access token | `nil` (must be provided during installation) | | `vstsPool` | VSTS agent pool name | `kubernetes-vsts-agents` | @@ -51,7 +52,7 @@ helm install --namespace --set vstsToken=${VSTS_TOKEN} --set vstsAcc Your deployment should look like this if everything works fine: ```bash -kubectl get pods --namespace +kubectl get pods --namespace NAME READY STATUS RESTARTS AGE vsts-agent-0 1/1 Running 0 1m vsts-agent-1 1/1 Running 0 1m diff --git a/charts/vsts-agent/templates/vsts-agent.yaml b/charts/vsts-agent/templates/vsts-agent.yaml index 3502b78..cd10b42 100644 --- a/charts/vsts-agent/templates/vsts-agent.yaml +++ b/charts/vsts-agent/templates/vsts-agent.yaml @@ -78,6 +78,7 @@ spec: name: workspace spec: accessModes: [ ReadWriteOnce ] + storageClassName: {{ .Values.resources.storageclass | default "default" | quote }} resources: requests: storage: {{ .Values.resources.disk | default "50Gi" | quote }} diff --git a/charts/vsts-agent/values.yaml b/charts/vsts-agent/values.yaml index a8a0d94..de3635f 100644 --- a/charts/vsts-agent/values.yaml +++ b/charts/vsts-agent/values.yaml @@ -1,4 +1,4 @@ -replicas: 3 +replicas: 1 image: repository: microsoft/vsts-agent @@ -13,6 +13,7 @@ resources: cpu: 4 memory: 8Gi disk: "50Gi" + storageclass: "default" cleanRun: false