Skip to content

Chart Values

本文档描述了 Kite Helm Chart 的所有可用配置选项。

基础配置

参数描述默认值
replicaCount副本数量1
image.repository容器镜像仓库ghcr.io/zxh326/kite
image.pullPolicy镜像拉取策略IfNotPresent
image.tag镜像标签。如果设置,将覆盖 chart 的 appVersion""
imagePullSecrets私有镜像仓库的拉取密钥[]
nameOverride覆盖 chart 名称""
fullnameOverride覆盖完整名称""
debug启用调试模式false

认证与安全

参数描述默认值
anonymousUserEnabled启用匿名用户访问,拥有完全管理员权限。生产环境请谨慎使用。false
jwtSecret用于签名 JWT 令牌的密钥。生产环境请修改此值。"kite-default-jwt-secret-key-change-in-production"
encryptKey用于加密敏感数据的密钥。生产环境请修改此值。"kite-default-encryption-key-change-in-production"
host应用程序的主机名""

数据库配置

参数描述默认值
db.type数据库类型:sqlitepostgresmysqlsqlite
db.dsnMySQL/Postgres 的完整 DSN 字符串。当类型为 mysql/postgres 时必需""

SQLite 配置

参数描述默认值
db.sqlite.persistence.pvc.enabled是否创建 PVC 来存储 sqlite 数据库文件false
db.sqlite.persistence.pvc.existingClaim使用现有的 PVC""
db.sqlite.persistence.pvc.storageClassPVC 的 StorageClass(可选)""
db.sqlite.persistence.pvc.accessModesPVC 的访问模式["ReadWriteOnce"]
db.sqlite.persistence.pvc.sizePVC 请求的存储大小1Gi
db.sqlite.persistence.hostPath.enabled是否使用 hostPath 存储false
db.sqlite.persistence.hostPath.pathhostPath 路径/path/to/host/dir
db.sqlite.persistence.hostPath.typehostPath 类型DirectoryOrCreate
db.sqlite.persistence.mountPath容器内的挂载路径/data
db.sqlite.persistence.filename挂载路径内的 sqlite 文件名kite.db

环境变量

参数描述默认值
extraEnvs额外的环境变量列表[]

Webhook 配置

参数描述默认值
webhook.enabled启用 webhookfalse
webhook.usernamewebhook 用户名"kite"
webhook.passwordwebhook 密码"password"

服务账户配置

参数描述默认值
serviceAccount.create是否创建服务账户true
serviceAccount.automount自动挂载服务账户的 API 凭据true
serviceAccount.annotations服务账户的注解{}
serviceAccount.name使用的服务账户名称""

RBAC 配置

参数描述默认值
rbac.create是否创建 RBAC 资源true
rbac.rulesRBAC 规则列表见下方示例

RBAC 规则示例

yaml
rbac:
  rules:
    - apiGroups: ["*"]
      resources: ["*"]
      verbs: ["*"]
    - nonResourceURLs: ["*"]
      verbs: ["*"]

Pod 配置

参数描述默认值
podAnnotationsPod 的 Kubernetes 注解{}
podLabelsPod 的 Kubernetes 标签{}
podSecurityContextPod 安全上下文{}
securityContext容器安全上下文{}

服务配置

参数描述默认值
service.type服务类型ClusterIP
service.port服务端口8080

Ingress 配置

参数描述默认值
ingress.enabled是否启用 Ingressfalse
ingress.classNameIngress 类名"nginx"
ingress.annotationsIngress 注解{}
ingress.hostsIngress 主机配置见下方示例
ingress.tlsTLS 配置[]

Ingress 主机配置示例

yaml
ingress:
  hosts:
    - host: kite.zzde.me
      paths:
        - path: /
          pathType: ImplementationSpecific

资源限制

参数描述默认值
resources容器资源限制和请求{}

资源限制示例

yaml
resources:
  limits:
    cpu: 100m
    memory: 128Mi
  requests:
    cpu: 100m
    memory: 128Mi

健康检查

参数描述默认值
livenessProbe存活探针配置见下方示例
readinessProbe就绪探针配置见下方示例

健康检查示例

yaml
livenessProbe:
  httpGet:
    path: /healthz
    port: http
  initialDelaySeconds: 10
  periodSeconds: 10
readinessProbe:
  httpGet:
    path: /healthz
    port: http
  initialDelaySeconds: 10
  periodSeconds: 10

存储配置

参数描述默认值
volumes额外的卷配置[]
volumeMounts额外的卷挂载配置[]

调度配置

参数描述默认值
nodeSelector节点选择器{}
tolerations容忍度配置[]
affinity亲和性配置{}

Released under the Apache License.