Skip to content

Commit

Permalink
feature: update helm charts deploy guide (#386)
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Ma <majinjing3@gmail.com>
  • Loading branch information
jim3ma authored and gaius-qi committed Jun 28, 2023
1 parent 008ae86 commit 2fb8d10
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
2 changes: 1 addition & 1 deletion deploy/charts/dragonfly/templates/cdn/cdn-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ data:
server {
listen {{ .Values.cdn.service.nginxTargetPort }};
location / {
root {{ with $s := index .Values.cdn.config.plugins.storageDriver 0 }}{{ $s.config.baseDir }} {{ end -}};
root {{ (index .Values.cdn.config.plugins.storageDriver 0).config.baseDir }};
}
}
}
34 changes: 32 additions & 2 deletions docs/en/ecosystem/Kubernetes-with-Dragonfly.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ daemon as `DaemonSets`.
Table of contents:

* [Kustomize](#kustomize-support)
* [TODO Helm](#helm-support)
* [Helm](#helm-support)
* [TODO Upgrade Guide](#upgrade-guide)

## Kustomize Support
Expand Down Expand Up @@ -79,4 +79,34 @@ kubectl -n dragonfly exec -it ${pod_name} -- grep "peer task done" /var/log/drag
Example output:
```
{"level":"info","ts":"2021-06-28 06:02:30.924","caller":"peer/peertask_stream_callback.go:77","msg":"stream peer task done, cost: 2838ms","peer":"172.17.0.9-1-ed7a32ae-3f18-4095-9f54-6ccfc248b16e","task":"3c658c488fd0868847fab30976c2a079d8fd63df148fb3b53fd1a418015723d7","component":"streamPeerTask"}
```
```

## Helm Support

### Clone Chart

```shell
git clone https://github.com/dragonflyoss/Dragonfly2.git
```

### Install

```shell
kubectl create ns dragonfly-system
helm install --namespace dragonfly-system dragonfly Dragonfly2/deploy/charts/dragonfly
```

### Wait Dragonfly Ready

Wait all pods running

```
kubectl -n dragonfly-system wait --for=condition=ready --all --timeout=10m pod
```

### Next Steps

Following [Configure Runtime](#configure-runtime) to configure runtime.
Following [Using Dragonfly](#using-dragonfly) to use Dragonfly.

## Upgrade Guide

0 comments on commit 2fb8d10

Please sign in to comment.