Skip to content

Commit

Permalink
Merge pull request #229 from zwwhdls/update_chart
Browse files Browse the repository at this point in the history
Upgrade juicefs chart to v0.13.2
  • Loading branch information
ks-ci-bot authored May 7, 2022
2 parents 8f61b8e + 46e415a commit 5129f76
Show file tree
Hide file tree
Showing 7 changed files with 109 additions and 39 deletions.
4 changes: 2 additions & 2 deletions src/stable/juicefs/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: juicefs
description: A Helm chart for JuiceFS CSI Driver
type: application
version: 0.7.0
appVersion: 0.11.0
version: 0.9.2
appVersion: 0.13.2
kubeVersion: ">=1.14.0-0"
home: https://github.com/juicedata/juicefs
sources:
Expand Down
66 changes: 32 additions & 34 deletions src/stable/juicefs/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# juicefs-csi-driver

![Version: 0.7.0](https://img.shields.io/badge/Version-0.7.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.11.0](https://img.shields.io/badge/AppVersion-0.11.0-informational?style=flat-square)
![Version: 0.9.2](https://img.shields.io/badge/Version-0.9.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.13.2](https://img.shields.io/badge/AppVersion-0.13.2-informational?style=flat-square)

A Helm chart for JuiceFS CSI Driver

Expand All @@ -16,40 +16,38 @@ Kubernetes: `>=1.14.0-0`

## Values

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| controller.affinity | object | Hard node and soft zone anti-affinity | Affinity for controller pods. |
| controller.enabled | bool | `true` | |
| controller.nodeSelector | object | `{}` | Node selector for controller pods |
| controller.replicas | int | `1` | |
| controller.resources.limits.cpu | string | `"1000m"` | |
| controller.resources.limits.memory | string | `"1Gi"` | |
| controller.resources.requests.cpu | string | `"100m"` | |
| controller.resources.requests.memory | string | `"512Mi"` | |
| controller.service.port | int | `9909` | |
| controller.service.trpe | string | `"ClusterIP"` | |
| controller.terminationGracePeriodSeconds | int | `30` | Grace period to allow the controller to shutdown before it is killed |
| Key | Type | Default | Description |
|-----|------|------------------------------------------------------|-------------|
| controller.affinity | object | Hard node and soft zone anti-affinity | Affinity for controller pods. |
| controller.enabled | bool | `true` | |
| controller.nodeSelector | object | `{}` | Node selector for controller pods |
| controller.replicas | int | `1` | |
| controller.resources.limits.cpu | string | `"1000m"` | |
| controller.resources.limits.memory | string | `"1Gi"` | |
| controller.resources.requests.cpu | string | `"100m"` | |
| controller.resources.requests.memory | string | `"512Mi"` | |
| controller.service.port | int | `9909` | |
| controller.service.trpe | string | `"ClusterIP"` | |
| controller.terminationGracePeriodSeconds | int | `30` | Grace period to allow the controller to shutdown before it is killed |
| controller.tolerations | list | `[{"key":"CriticalAddonsOnly","operator":"Exists"}]` | Tolerations for controller pods |
| dnsConfig | object | `{}` | |
| dnsPolicy | string | `"ClusterFirstWithHostNet"` | |
| hostAliases | list | `[]` | |
| image.pullPolicy | string | `""` | |
| image.repository | string | `"juicedata/juicefs-csi-driver"` | |
| image.tag | string | `"v0.10.5"` | |
| jfsConfigDir | string | `"/var/lib/juicefs/config"` | |
| jfsMountDir | string | `"/var/lib/juicefs/volume"` | juicefs mount dir |
| jfsMountPriority | object | `{"enable":true,"name":"juicefs-mount-critical"}` | juicefs mount pod priority |
| kubeletDir | string | `"/var/lib/kubelet"` | kubelet working directory,can be set using `--root-dir` when starting kubelet |
| namespace | string | `"kube-system"` | |
| node.affinity | object | Hard node and soft zone anti-affinity | Affinity for node pods. |
| node.enabled | bool | `true` | |
| node.hostNetwork | bool | `false` | |
| node.nodeSelector | object | `{}` | Node selector for node pods |
| node.resources.limits.cpu | string | `"2000m"` | |
| node.resources.limits.memory | string | `"5Gi"` | |
| node.resources.requests.cpu | string | `"1000m"` | |
| node.resources.requests.memory | string | `"1Gi"` | |
| node.terminationGracePeriodSeconds | int | `30` | Grace period to allow the node pod to shutdown before it is killed |
| dnsConfig | object | `{}` | |
| dnsPolicy | string | `"ClusterFirstWithHostNet"` | |
| hostAliases | list | `[]` | |
| image.pullPolicy | string | `""` | |
| image.repository | string | `"juicedata/juicefs-csi-driver"` | |
| image.tag | string | `"v0.13.2"` | |
| jfsConfigDir | string | `"/var/lib/juicefs/config"` | |
| jfsMountDir | string | `"/var/lib/juicefs/volume"` | juicefs mount dir |
| kubeletDir | string | `"/var/lib/kubelet"` | kubelet working directory,can be set using `--root-dir` when starting kubelet |
| node.affinity | object | Hard node and soft zone anti-affinity | Affinity for node pods. |
| node.enabled | bool | `true` | |
| node.hostNetwork | bool | `false` | |
| node.nodeSelector | object | `{}` | Node selector for node pods |
| node.resources.limits.cpu | string | `"2000m"` | |
| node.resources.limits.memory | string | `"5Gi"` | |
| node.resources.requests.cpu | string | `"1000m"` | |
| node.resources.requests.memory | string | `"1Gi"` | |
| node.terminationGracePeriodSeconds | int | `30` | Grace period to allow the node pod to shutdown before it is killed |
| node.tolerations | list | `[{"key":"CriticalAddonsOnly","operator":"Exists"}]` | Tolerations for node pods |
| serviceAccount.controller.annotations | object | `{}` | |
| serviceAccount.controller.create | bool | `true` | |
Expand Down
2 changes: 1 addition & 1 deletion src/stable/juicefs/templates/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ spec:
args:
- --endpoint=$(CSI_ENDPOINT)
- --logtostderr
- --nodeid=$(NODE_ID)
- --nodeid=$(NODE_NAME)
- --v=5
env:
- name: CSI_ENDPOINT
Expand Down
8 changes: 7 additions & 1 deletion src/stable/juicefs/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
args:
- --endpoint=$(CSI_ENDPOINT)
- --logtostderr
- --nodeid=$(NODE_ID)
- --nodeid=$(NODE_NAME)
- --v=5
- --enable-manager=true
env:
Expand All @@ -49,6 +49,12 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: HOST_IP
valueFrom:
fieldRef:
fieldPath: status.hostIP
- name: KUBELET_PORT
value: "10250"
- name: JUICEFS_MOUNT_PATH
value: {{ .Values.jfsMountDir }}
- name: JUICEFS_CONFIG_PATH
Expand Down
47 changes: 47 additions & 0 deletions src/stable/juicefs/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ rules:
- ""
resources:
- pods
- pods/log
verbs:
- get
- list
Expand Down Expand Up @@ -91,6 +92,22 @@ rules:
verbs:
- get
- list
- create
- update
- patch
- delete
- apiGroups:
- batch
resources:
- jobs
verbs:
- get
- list
- create
- update
- delete
- patch
- watch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
Expand Down Expand Up @@ -139,6 +156,36 @@ rules:
- ""
resources:
- pods
- pods/log
verbs:
- get
- list
- create
- update
- delete
- patch
- watch
- apiGroups:
- ""
resources:
- nodes/proxy
verbs:
- '*'
- apiGroups:
- ""
resources:
- secrets
verbs:
- get
- list
- create
- update
- patch
- delete
- apiGroups:
- batch
resources:
- jobs
verbs:
- get
- list
Expand Down
9 changes: 9 additions & 0 deletions src/stable/juicefs/templates/storageclass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@ data:
{{- if .bucket }}
bucket: {{ .bucket | b64enc | quote }}
{{- end }}
{{- if .envs }}
envs: {{ .envs | b64enc | quote }}
{{- end }}
{{- if .configs }}
configs: {{ .configs | b64enc | quote }}
{{- end }}
{{- if .trashDays }}
trash-days: {{ .trashDays | b64enc | quote }}
{{- end }}
{{- end }}
---
apiVersion: storage.k8s.io/v1
Expand Down
12 changes: 11 additions & 1 deletion src/stable/juicefs/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

image:
repository: juicedata/juicefs-csi-driver
tag: "v0.11.0"
tag: "v0.13.2"
pullPolicy: ""

sidecars:
Expand Down Expand Up @@ -134,10 +134,20 @@ storageClasses:
secretKey: ""
# -- Bucket URL. Read [this document](https://github.com/juicedata/juicefs/blob/main/docs/en/how_to_setup_object_storage.md) to learn how to setup different object storage.
bucket: ""
# -- Env for mount pod and format, such as `a: b`
envs: ""
# -- Config for mount pod. Read [this document](https://github.com/juicedata/juicefs-csi-driver/blob/master/docs/en/examples/config-and-env.md) for more usage.
configs: ""
# -- Config for trash days
trashDays: ""


mountOptions:
# -- Mount Options. Read [this document](https://github.com/juicedata/juicefs/blob/main/docs/en/command_reference.md#juicefs-mount) to learn how to set different mount options.
# Example:
# - debug
# - cache-size=2048
# - cache-dir=/var/foo

mountPod:
# mount pod resource requests & limits
Expand Down

0 comments on commit 5129f76

Please sign in to comment.