Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

Commit

Permalink
Add storageclass resource configuration
Browse files Browse the repository at this point in the history
Integrating already merged PR from #6
  • Loading branch information
grenzr committed Nov 7, 2018
1 parent 70dfe87 commit ae17b64
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` |
Expand Down Expand Up @@ -51,7 +52,7 @@ helm install --namespace <NAMESPACE> --set vstsToken=${VSTS_TOKEN} --set vstsAcc
Your deployment should look like this if everything works fine:

```bash
kubectl get pods --namespace <NAMESPACE>
kubectl get pods --namespace <NAMESPACE>
NAME READY STATUS RESTARTS AGE
vsts-agent-0 1/1 Running 0 1m
vsts-agent-1 1/1 Running 0 1m
Expand Down
1 change: 1 addition & 0 deletions charts/vsts-agent/templates/vsts-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
3 changes: 2 additions & 1 deletion charts/vsts-agent/values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
replicas: 3
replicas: 1

image:
repository: microsoft/vsts-agent
Expand All @@ -13,6 +13,7 @@ resources:
cpu: 4
memory: 8Gi
disk: "50Gi"
storageclass: "default"

cleanRun: false

Expand Down

0 comments on commit ae17b64

Please sign in to comment.