Skip to content

Commit

Permalink
feat: chart values
Browse files Browse the repository at this point in the history
Signed-off-by: Gaius <gaius.qi@gmail.com>
  • Loading branch information
gaius-qi committed Aug 6, 2021
1 parent 83bac3b commit 854657c
Showing 1 changed file with 4 additions and 160 deletions.
164 changes: 4 additions & 160 deletions test/testdata/charts/config.yaml
Original file line number Diff line number Diff line change
@@ -1,175 +1,15 @@
nameOverride: ""
namespaceOverride: "dragonfly-system"
fullnameOverride: ""

# values for dragonfly installation
installation:
clusterDomain: ""
# enable an all in one jaeger for tracing every downloading event
# should not use in production environment
jaeger: false

scheduler:
name: scheduler
nameOverride: ""
fullnameOverride: ""
replicas: 3
image: d7yio/scheduler
tag: latest
pullPolicy: IfNotPresent
resources:
requests:
cpu: "0"
memory: "0"
limits:
cpu: "4"
memory: "8Gi"
priorityClassName: ""
nodeSelector: {}
terminationGracePeriodSeconds:
tolerations: []
podAnnotations: {}
podLabels: {}
serviceAnnotations: {}
statefulsetAnnotations: {}
containerPort: 8002
service:
type: ClusterIP
annotations: {}
port: 8002
targetPort: 8002
config:
# when there is no manager component in or out of cluster, enable staticCDN
# cdn will auto register in configmap, and scheduler will discover all of them dynamic.
staticCDN: true
debug: false
worker:
workerNum: 4
workerJobPoolSize: 10000
senderNum: 10
senderJobPoolSize: 10000

cdn:
name: cdn
nameOverride: ""
fullnameOverride: ""
replicas: 3
image: d7yio/cdn
tag: latest
kubectlImage: bitnami/kubectl
pullPolicy: IfNotPresent
resources:
requests:
cpu: "0"
memory: "0"
limits:
cpu: "4"
memory: "8Gi"
priorityClassName: ""
nodeSelector: {}
terminationGracePeriodSeconds:
tolerations: []
podAnnotations: {}
podLabels: {}
statefulsetAnnotations: {}
containerPort: 8003
nginxContiainerPort: 8001
config:
base:
systemReservedBandwidth: 20M
maxBandwidth: 200M
enableProfiler: false
failAccessInterval: 3m
gcInitialDelay: 6s
gcMetaInterval: 2m
gcStorageInterval: 15s
taskExpireTime: 3m
storagePattern: disk
console: false
plugins:
storageDriver:
- name: disk
enable: true
config:
baseDir: /tmp/cdn
storageManager:
- name: disk
enable: true
config:
gcInitialDelay: 5s
gcInterval: 15s
driverConfigs:
disk:
gcConfig:
youngGCThreshold: 100G
fullGCThreshold: 5G
cleanRatio: 1
intervalThreshold: 2h

dfdaemon:
name: dfdaemon
nameOverride: ""
fullnameOverride: ""
image: d7yio/dfdaemon
tag: latest
pullPolicy: IfNotPresent
resources:
requests:
cpu: "0"
memory: "0"
limits:
cpu: "2"
memory: "2Gi"
priorityClassName: ""
nodeSelector: {}
terminationGracePeriodSeconds:
tolerations: []
podAnnotations: {}
podLabels: {}
daemonsetAnnotations: {}
containerPort: 65001
# hostPort is used when .hostNetwork == false, and .config.proxy.tcpListen.namespace is empty
# many network add-ons do not yet support hostPort
# https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/troubleshooting-kubeadm/#hostport-services-do-not-work
# by default, dfdaemon injects the 65001 port to host network by sharing host network namespace,
# if you want to use hostPort, please empty .config.proxy.tcpListen.namespace below, and keep .hostNetwork == false
# for performance, injecting the 65001 port to host network is better than hostPort
hostPort: 65001
# using hostNetwork when pod with host network can communicate with normal pods with cni network
hostNetwork: false
config:
aliveTime: 0s
gcInterval: 1m0s
keepStorage: false
verbose: true
jaeger: "" # customize jaeger like: http://localhost:14268/api/traces
host:
listenIP: 0.0.0.0
advertiseIP: 0.0.0.0
download:
rateLimit: 200Mi
downloadGRPC:
security:
insecure: true
unixListen:
socket: /tmp/dfdamon.sock
peerGRPC:
security:
insecure: true
tcpListen:
listen: 0.0.0.0
port: 65000
upload:
rateLimit: 100Mi
security:
insecure: true
tcpListen:
listen: 0.0.0.0
port: 65002
storage:
taskExpireTime: 3m0s
strategy: io.d7y.storage.v2.simple
multiplex: true
proxy:
defaultFilter: "Expires&Signature"
security:
Expand All @@ -185,3 +25,7 @@ dfdaemon:
proxies:
- regx: blobs/sha256.*
- regx: file-server

manager:
image: d7yio/manager
tag: latest

0 comments on commit 854657c

Please # to comment.