From f1638409bc048ee98cf2b59f8cc23d70c75afe3e Mon Sep 17 00:00:00 2001 From: ifooth Date: Wed, 22 Feb 2023 18:18:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=AC=E5=9C=B0=E5=90=AF=E5=8A=A8helm?= =?UTF-8?q?=E9=83=A8=E7=BD=B2bcs-webconsole=20=E6=95=99=E7=A8=8B=E6=96=87?= =?UTF-8?q?=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install/helm/bcs-webconsole/Chart.yaml | 31 +++ install/helm/bcs-webconsole/README.md | 88 +++++++++ .../helm/bcs-webconsole/templates/NOTES.txt | 22 +++ .../bcs-webconsole/templates/_helpers.tpl | 95 +++++++++ .../bcs-webconsole/templates/configmap.yaml | 14 ++ .../bcs-webconsole/templates/deployment.yaml | 75 +++++++ .../helm/bcs-webconsole/templates/hpa.yaml | 28 +++ .../bcs-webconsole/templates/ingress.yaml | 61 ++++++ .../bcs-webconsole/templates/service.yaml | 12 ++ .../templates/serviceaccount.yaml | 12 ++ install/helm/bcs-webconsole/values.yaml | 187 ++++++++++++++++++ 11 files changed, 625 insertions(+) create mode 100644 install/helm/bcs-webconsole/Chart.yaml create mode 100644 install/helm/bcs-webconsole/README.md create mode 100644 install/helm/bcs-webconsole/templates/NOTES.txt create mode 100644 install/helm/bcs-webconsole/templates/_helpers.tpl create mode 100644 install/helm/bcs-webconsole/templates/configmap.yaml create mode 100644 install/helm/bcs-webconsole/templates/deployment.yaml create mode 100644 install/helm/bcs-webconsole/templates/hpa.yaml create mode 100644 install/helm/bcs-webconsole/templates/ingress.yaml create mode 100644 install/helm/bcs-webconsole/templates/service.yaml create mode 100644 install/helm/bcs-webconsole/templates/serviceaccount.yaml create mode 100644 install/helm/bcs-webconsole/values.yaml diff --git a/install/helm/bcs-webconsole/Chart.yaml b/install/helm/bcs-webconsole/Chart.yaml new file mode 100644 index 0000000000..2cb3e4facf --- /dev/null +++ b/install/helm/bcs-webconsole/Chart.yaml @@ -0,0 +1,31 @@ +apiVersion: v2 +name: bcs-webconsole +description: A Helm chart for Kubernetes + +# A chart can be either an 'application' or a 'library' chart. +# +# Application charts are a collection of templates that can be packaged into versioned archives +# to be deployed. +# +# Library charts provide useful utilities or functions for the chart developer. They're included as +# a dependency of application charts to inject those utilities and functions into the rendering +# pipeline. Library charts do not define any templates and therefore cannot be deployed. +type: application + +# This is the chart version. This version number should be incremented each time you make changes +# to the chart and its templates, including the app version. +# Versions are expected to follow Semantic Versioning (https://semver.org/) +version: 0.1.0 + +# This is the version number of the application being deployed. This version number should be +# incremented each time you make changes to the application. Versions are not expected to +# follow Semantic Versioning. They should reflect the version the application is using. +# It is recommended to use it with quotes. +appVersion: "latest" +dependencies: + - name: redis + version: 17.7.3 + repository: https://charts.bitnami.com/bitnami + - name: etcd + version: 8.7.3 + repository: https://charts.bitnami.com/bitnami diff --git a/install/helm/bcs-webconsole/README.md b/install/helm/bcs-webconsole/README.md new file mode 100644 index 0000000000..1103bce642 --- /dev/null +++ b/install/helm/bcs-webconsole/README.md @@ -0,0 +1,88 @@ +# 本地启动helm部署bcs-webconsole 教程文档 + +使用helm chart部署cluster-webconsole应用 + +#### 部署环境 + +``` +操作系统环境:CentOS Linux 7 (Core) +golang: go1.17 +docker环境:20.10.23 +Kubernetes:v1.23.8 +helm: v3.11.0 +``` + +#### 构建**bcs-webconsole**镜像 + +- **拉取[bk-bcs](https://github.com/Tencent/bk-bcs)项目,拉取完成后找到bcs-webconsole项目目录** + + ``` + git clone https://github.com/Tencent/bk-bcs.git + cd bk-bcs/bcs-services/bcs-webconsole/ + ``` + +- 构建bcs-webconsol项目镜像 + + ``` + // Build the binary + make build + + // Build a docker image + make docker + ``` + +#### 使用helm chart部署bcs-webconsole项目 + +- **返回到bk-bcs项目根目录,找到部署bcs-webconsole项目的chart包** + + ``` + cd install/helm/bcs-webconsole + ``` + +- **bcs-webconsole chart配置参数都在Value.yaml** + + *bcs-webconsole配置* + + | **Name** | Description | Value | + | -------------------------- | ------------------------------------------------------------ | -------------- | + | mage.repository | 镜像名称 | bcs-webconsole | + | image.pullPolicy | 镜像拉取策略,由于本地存在bcs-webconsole项目镜像所以默认Never | Never | + | image.tag | 镜像版本 | latest | + | svcConf.base_conf.app_code | | false | + | svcConf.bcs_conf.host | | | + | envs | 环境变量,DEMO: "test" | | + + *redis配置参数* + + | **Name** | Description | Value | + | ------------------ | ---------------------------------------------- | ---------- | + | redis.architecture | redis架构。允许值:`standalone`或`replication` | standalone | + | redis.auth.enabled | 启用密码验证 | false | + + *etcd配置参数* + + | **Name** | Description | Value | + | --------------------- | ----------------------------------------- | ------ | + | etcd.replicaCount | 要部署的etcd副本的数量 | 3 | + | etcd.auth.rbac.create | 启用RBAC认证 | false | + | etcd.auth.token.type | 认证令牌类型。允许的值。'simple'或'jwt'。 | simple | + +- **安装bcs-webconsole chart包** + + ``` + // 找到bcs-webconsole chart目录 + // 安装chart包, 执行helm install(部署到默认的命名空间或者加上 -n 名称,指定命名空间) + helm install bcs-webconsole ./bcs-webconsole -n default + + // 首次部署该chart会提示需要依赖,执行一下 + helm dependency build ./bcs-webconsole + + // 再执行安装 + helm install bcs-webconsole ./bcs-webconsole -n default + + // 查看部署的状态 + helm status bcs-webconsole -n default + + // 卸载该应用 + helm uninstall bcs-webconsole -n default + ``` \ No newline at end of file diff --git a/install/helm/bcs-webconsole/templates/NOTES.txt b/install/helm/bcs-webconsole/templates/NOTES.txt new file mode 100644 index 0000000000..362095c221 --- /dev/null +++ b/install/helm/bcs-webconsole/templates/NOTES.txt @@ -0,0 +1,22 @@ +1. Get the application URL by running these commands: +{{- if .Values.ingress.enabled }} +{{- range $host := .Values.ingress.hosts }} + {{- range .paths }} + http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host.host }}{{ .path }} + {{- end }} +{{- end }} +{{- else if contains "NodePort" .Values.service.type }} + export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "bcs-webconsole.fullname" . }}) + export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") + echo http://$NODE_IP:$NODE_PORT +{{- else if contains "LoadBalancer" .Values.service.type }} + NOTE: It may take a few minutes for the LoadBalancer IP to be available. + You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "bcs-webconsole.fullname" . }}' + export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "bcs-webconsole.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") + echo http://$SERVICE_IP:{{ .Values.service.port }} +{{- else if contains "ClusterIP" .Values.service.type }} + export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "bcs-webconsole.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") + export CONTAINER_PORT=$(kubectl get pod --namespace {{ .Release.Namespace }} $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}") + echo "Visit http://127.0.0.1:8080 to use your application" + kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:$CONTAINER_PORT +{{- end }} diff --git a/install/helm/bcs-webconsole/templates/_helpers.tpl b/install/helm/bcs-webconsole/templates/_helpers.tpl new file mode 100644 index 0000000000..029fe1581b --- /dev/null +++ b/install/helm/bcs-webconsole/templates/_helpers.tpl @@ -0,0 +1,95 @@ +{{/* +Expand the name of the chart. +*/}} +{{- define "bcs-webconsole.name" -}} +{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Create a default fully qualified app name. +We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). +If release name contains chart name it will be used as a full name. +*/}} +{{- define "bcs-webconsole.fullname" -}} +{{- if .Values.fullnameOverride }} +{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} +{{- else }} +{{- $name := default .Chart.Name .Values.nameOverride }} +{{- if contains $name .Release.Name }} +{{- .Release.Name | trunc 63 | trimSuffix "-" }} +{{- else }} +{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} +{{- end }} +{{- end }} +{{- end }} + +{{/* +Create chart name and version as used by the chart label. +*/}} +{{- define "bcs-webconsole.chart" -}} +{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Common labels +*/}} +{{- define "bcs-webconsole.labels" -}} +helm.sh/chart: {{ include "bcs-webconsole.chart" . }} +{{ include "bcs-webconsole.selectorLabels" . }} +{{- if .Chart.AppVersion }} +app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} +{{- end }} +app.kubernetes.io/managed-by: {{ .Release.Service }} +{{- end }} + +{{/* +Selector labels +*/}} +{{- define "bcs-webconsole.selectorLabels" -}} +app.kubernetes.io/name: {{ include "bcs-webconsole.name" . }} +app.kubernetes.io/instance: {{ .Release.Name }} +{{- end }} + +{{/* +Create the name of the service account to use +*/}} +{{- define "bcs-webconsole.serviceAccountName" -}} +{{- if .Values.serviceAccount.create }} +{{- default (include "bcs-webconsole.fullname" .) .Values.serviceAccount.name }} +{{- else }} +{{- default "default" .Values.serviceAccount.name }} +{{- end }} +{{- end }} + +{{- define "bcs-webconsole.envs" -}} +- name: POD_IPs # ipv6双栈 + valueFrom: + fieldRef: + fieldPath: status.podIPs +- name: POD_IP + valueFrom: + fieldRef: + fieldPath: status.podIP +- name: BK_APP_CODE + value: {{ .Values.svcConf.base_conf.app_code }} +- name: BK_APP_SECRET + value: {{ .Values.svcConf.base_conf.app_secret }} +- name: BK_PAAS_HOST + value: {{ .Values.svcConf.base_conf.bk_paas_host }} +- name: BK_IAM_HOST + value: {{ .Values.svcConf.auth_conf.host }} +- name: REDIS_PASSWORD + value: {{ .Values.svcConf.redis.password }} +- name: BCS_APIGW_TOKEN + value: {{ .Values.svcConf.bcs_conf.token }} +- name: BCS_APIGW_PUBLIC_KEY + value: {{ .Values.svcConf.bcs_conf.jwt_public_key }} +{{- range $key, $val := .Values.envs }} +- name: {{ $key }} + value: {{ $val | quote }} +{{- end }} +{{- end }} + +{{- define "bcs-webconsole.confName" -}} +{{- printf "%s-%s" (include "bcs-webconsole.fullname" .) "conf" }} +{{- end }} diff --git a/install/helm/bcs-webconsole/templates/configmap.yaml b/install/helm/bcs-webconsole/templates/configmap.yaml new file mode 100644 index 0000000000..e1694beef8 --- /dev/null +++ b/install/helm/bcs-webconsole/templates/configmap.yaml @@ -0,0 +1,14 @@ +{{- if .Values.enabled -}} +apiVersion: v1 +kind: ConfigMap +metadata: + name: {{ include "bcs-webconsole.confName" . }} + labels: + {{- include "bcs-webconsole.labels" . | nindent 4 }} +data: + config.yaml: |- + {{- toYaml .Values.svcConf | nindent 4 }} + + credentials.yaml: |- + {{- toYaml .Values.svcCR | nindent 4 }} +{{- end }} \ No newline at end of file diff --git a/install/helm/bcs-webconsole/templates/deployment.yaml b/install/helm/bcs-webconsole/templates/deployment.yaml new file mode 100644 index 0000000000..273a24a642 --- /dev/null +++ b/install/helm/bcs-webconsole/templates/deployment.yaml @@ -0,0 +1,75 @@ +{{- if .Values.enabled -}} +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ include "bcs-webconsole.fullname" . }} + labels: + {{- include "bcs-webconsole.labels" . | nindent 4 }} +spec: + {{- if not .Values.autoscaling.enabled }} + replicas: {{ .Values.replicaCount }} + {{- end }} + selector: + matchLabels: + {{- include "bcs-webconsole.selectorLabels" . | nindent 6 }} + template: + metadata: + {{- with .Values.podAnnotations }} + annotations: + {{- toYaml . | nindent 8 }} + {{- end }} + labels: + {{- include "bcs-webconsole.selectorLabels" . | nindent 8 }} + spec: + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} + serviceAccountName: {{ include "bcs-webconsole.serviceAccountName" . }} + securityContext: + {{- toYaml .Values.podSecurityContext | nindent 8 }} + containers: + - name: {{ .Chart.Name }} + securityContext: + {{- toYaml .Values.securityContext | nindent 12 }} + image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" + imagePullPolicy: {{ .Values.image.pullPolicy }} + env: + {{- include "bcs-webconsole.envs" . | trim | nindent 12 }} + command: ["./bcs-webconsole"] + args: + - "--server-address=$(POD_IP)" + - "--server-port=8083" + - "--config=/data/etc/config.yaml" + - "--credential-config=/data/etc/credentials.yaml" + ports: + - name: http + containerPort: 8083 + protocol: TCP + resources: + {{- toYaml .Values.resources | nindent 12 }} + volumeMounts: + - name: config-volume + mountPath: /data/etc + volumes: + - name: config-volume + configMap: + name: {{ include "bcs-webconsole.confName" . }} + items: + - key: "config.yaml" + path: "config.yaml" + - key: "credentials.yaml" + path: "credentials.yaml" + {{- with .Values.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} +{{- end }} \ No newline at end of file diff --git a/install/helm/bcs-webconsole/templates/hpa.yaml b/install/helm/bcs-webconsole/templates/hpa.yaml new file mode 100644 index 0000000000..5feea5f5d7 --- /dev/null +++ b/install/helm/bcs-webconsole/templates/hpa.yaml @@ -0,0 +1,28 @@ +{{- if .Values.autoscaling.enabled }} +apiVersion: autoscaling/v2beta1 +kind: HorizontalPodAutoscaler +metadata: + name: {{ include "bcs-webconsole.fullname" . }} + labels: + {{- include "bcs-webconsole.labels" . | nindent 4 }} +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: {{ include "bcs-webconsole.fullname" . }} + minReplicas: {{ .Values.autoscaling.minReplicas }} + maxReplicas: {{ .Values.autoscaling.maxReplicas }} + metrics: + {{- if .Values.autoscaling.targetCPUUtilizationPercentage }} + - type: Resource + resource: + name: cpu + targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} + {{- end }} + {{- if .Values.autoscaling.targetMemoryUtilizationPercentage }} + - type: Resource + resource: + name: memory + targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} + {{- end }} +{{- end }} diff --git a/install/helm/bcs-webconsole/templates/ingress.yaml b/install/helm/bcs-webconsole/templates/ingress.yaml new file mode 100644 index 0000000000..244b2422e0 --- /dev/null +++ b/install/helm/bcs-webconsole/templates/ingress.yaml @@ -0,0 +1,61 @@ +{{- if .Values.ingress.enabled -}} +{{- $fullName := include "bcs-webconsole.fullname" . -}} +{{- $svcPort := .Values.service.port -}} +{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }} + {{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }} + {{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}} + {{- end }} +{{- end }} +{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}} +apiVersion: networking.k8s.io/v1 +{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}} +apiVersion: networking.k8s.io/v1beta1 +{{- else -}} +apiVersion: extensions/v1beta1 +{{- end }} +kind: Ingress +metadata: + name: {{ $fullName }} + labels: + {{- include "bcs-webconsole.labels" . | nindent 4 }} + {{- with .Values.ingress.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} +spec: + {{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }} + ingressClassName: {{ .Values.ingress.className }} + {{- end }} + {{- if .Values.ingress.tls }} + tls: + {{- range .Values.ingress.tls }} + - hosts: + {{- range .hosts }} + - {{ . | quote }} + {{- end }} + secretName: {{ .secretName }} + {{- end }} + {{- end }} + rules: + {{- range .Values.ingress.hosts }} + - host: {{ .host | quote }} + http: + paths: + {{- range .paths }} + - path: {{ .path }} + {{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }} + pathType: {{ .pathType }} + {{- end }} + backend: + {{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }} + service: + name: {{ $fullName }} + port: + number: {{ $svcPort }} + {{- else }} + serviceName: {{ $fullName }} + servicePort: {{ $svcPort }} + {{- end }} + {{- end }} + {{- end }} +{{- end }} diff --git a/install/helm/bcs-webconsole/templates/service.yaml b/install/helm/bcs-webconsole/templates/service.yaml new file mode 100644 index 0000000000..12f4fe03fa --- /dev/null +++ b/install/helm/bcs-webconsole/templates/service.yaml @@ -0,0 +1,12 @@ +{{- if .Values.enabled -}} +apiVersion: v1 +kind: Service +metadata: + name: {{ include "bcs-webconsole.fullname" . }} + labels: + {{- include "bcs-webconsole.labels" . | nindent 4 }} +spec: + {{- toYaml .Values.service | nindent 2 }} + selector: + {{- include "bcs-webconsole.selectorLabels" . | nindent 4 }} +{{- end }} \ No newline at end of file diff --git a/install/helm/bcs-webconsole/templates/serviceaccount.yaml b/install/helm/bcs-webconsole/templates/serviceaccount.yaml new file mode 100644 index 0000000000..77a910e661 --- /dev/null +++ b/install/helm/bcs-webconsole/templates/serviceaccount.yaml @@ -0,0 +1,12 @@ +{{- if .Values.serviceAccount.create -}} +apiVersion: v1 +kind: ServiceAccount +metadata: + name: {{ include "bcs-webconsole.serviceAccountName" . }} + labels: + {{- include "bcs-webconsole.labels" . | nindent 4 }} + {{- with .Values.serviceAccount.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} +{{- end }} diff --git a/install/helm/bcs-webconsole/values.yaml b/install/helm/bcs-webconsole/values.yaml new file mode 100644 index 0000000000..4a59a0c511 --- /dev/null +++ b/install/helm/bcs-webconsole/values.yaml @@ -0,0 +1,187 @@ +## bcs-webconsole + +enabled: true + +replicaCount: 1 + +image: + repository: bcs-webconsole + pullPolicy: Never + # Overrides the image tag whose default is the chart appVersion. + tag: "latest" + +imagePullSecrets: [] +nameOverride: "" +fullnameOverride: "bcs-webconsole" + +## 服务配置 +svcConf: + ## 基础配置 + base_conf: + app_code: "" + app_secret: "" + bk_paas_host: "" + time_zone: "Asia/Shanghai" + language_code: "zh-hans" + run_env: dev + + ## 日志 + logging: + level: info + file: "" + stderr: true + + ## redis + redis: + host: "bcs-webconsole-redis-master" + port: 6379 + password: "" + db: 0 + + bklogin_conf: + host: "" + + auth_conf: + host: "" + + bcs_cc_conf: + host: "" + stage: "" + + ## BCS配置 + bcs_conf: + host: "" + token: "" + jwt_public_key: "" + verify: false + + bcs_env_conf: [] + + webconsole: + mode: internal # external + admin_cluster_id: "" # external 模式时的管理集群ID + guide_doc_link: "" # 使用文档链接 + kubectld_image: "" # 镜像路径 + kubectld_tag: "" # 镜像默认tag + kubectld_tag_match: # 镜像Tag对应关系 + + web: + route_prefix: "" + host: "" + + etcd: + endpoints: "bcs-cluster-resources-etcd:2379" + ca: "" + cert: "" + key: "" + +## 证书配置 +svcCR: + credentials: + - project_id: "" + credential_type: app_code + credential: "" + enabled: false + operator: "" + scopes: + - cluster_id: RE_.* + comment: "" + +## 环境变量 +envs: +# WEBCONSOLE_USERNAME: "joelei" + +## 权限控制类 +serviceAccount: + # Specifies whether a service account should be created + create: true + # Annotations to add to the service account + annotations: {} + # The name of the service account to use. + # If not set and create is true, a name is generated using the fullname template + name: "" + +## Pod 注解配置 +podAnnotations: {} + +## Pod 安全性上下文 +podSecurityContext: + {} + # fsGroup: 2000 + +## 容器安全性上下文 +securityContext: + {} + # capabilities: + # drop: + # - ALL + # readOnlyRootFilesystem: true + # runAsNonRoot: true + # runAsUser: 1000 + +service: + type: NodePort + ports: + - name: http + port: 8083 + targetPort: 8083 + protocol: TCP + +## 网络配置类 +ingress: + enabled: false + className: "" + annotations: + {} + # kubernetes.io/ingress.class: nginx + # kubernetes.io/tls-acme: "true" + hosts: + - host: chart-example.local + paths: + - path: / + pathType: ImplementationSpecific + tls: [] + # - secretName: chart-example-tls + # hosts: + # - chart-example.local + +## 资源配额 +resources: + # We usually recommend not to specify default resources and to leave this as a conscious + # choice for the user. This also increases chances charts run on environments with little + # resources, such as Minikube. If you do want to specify resources, uncomment the following + # lines, adjust them as necessary, and remove the curly braces after 'resources:'. + limits: + cpu: 2 + memory: 2Gi + requests: + cpu: 1 + memory: 512Mi + +autoscaling: + enabled: false + minReplicas: 1 + maxReplicas: 100 + targetCPUUtilizationPercentage: 80 + # targetMemoryUtilizationPercentage: 80 + +nodeSelector: {} + +tolerations: [] + +affinity: {} + +redis: + architecture: standalone + auth: + enabled: false + +etcd: + replicaCount: 3 + auth: + rbac: + create: false + token: + type: simple + persistence: + enabled: false