开发者社区 > 云原生 > 微服务 > 正文

在Higress按这个配置安装的,测试节点扩容情况,但是好像没有扩,为什么?-

在Higress按这个配置安装的,测试节点扩容情况,但是好像没有扩,为什么? hgctl install --set profile=install.yaml -f values.yaml

install.yaml配置

charts:
higress:
name: higress

# 安装文件的 helm repo 地址
url: https://higress.io/helm-charts
# 执行 hgctl upgrade 时将自动更新至最新版本
version: latest

console:

开启可观测组件

o11YEnabled: false

控制台实例数

replicas: 1
controller:

控制面组件实例数

replicas: 1
gateway:

数据面组件实例数、根据流量设置

replicas: 3
global:
onlyPushRouteCluster: false

开启 Gateway API

enableGatewayAPI: true

开启 Istio API、

enableIstioAPI: true

设置监听的 ingress class

ingressClass: higress

安装模式

install: k8s

安装命名空间

namespace: higress-system

配置传递给 helm 的 values 参数

values: {}
profile: k8s

values.yaml文件内容

higress-core:
skywalking:
enabled: true
service:
address: skywalking.higress-system.svc.cluster.local
port: 11809
gateway:
resources:
requests:
cpu: 200m
memory: 2048Mi
limits:
cpu: 2000m
memory: 2048Mi
service:
type: NodePort
autoscale:
enabled: true
minReplicas: 2
maxReplicas: 8
targetCPUUtilizationPercentage: 10

展开
收起
三分钟热度的鱼 2024-02-28 15:07:37 53 0
1 条回答
写回答
取消 提交回答
  • 这个用法是对的, hgctl install --set profile=install.yaml -f values.yaml, 我看了 values.yaml格式有些问题。higress-core:
    skywalking:
    enabled: true
    service:
    address: skywalking.higress-system.svc.cluster.local
    port: 11809
    gateway:
    resources:
    requests:
    cpu: 200m
    memory: 2048Mi
    limits:
    cpu: 2000m
    memory: 2048Mi
    service:
    type: NodePort
    autoscaling:
    enabled: true
    minReplicas: 2
    maxReplicas: 8
    targetCPUUtilizationPercentage: 10
    这里是 autoscaling ,不是autoscale。 https://github.com/alibaba/higress/blob/main/helm/core/values.yaml 你看一下这个文档,是helm higress-core 参数文档。安装后你可以检测一下 1. kubectl get configmap higress-profile -n higress-system -oyaml 安装profile 是否对的 2. kubectl get deployment higress-gateway -n higress-system -oyaml 看一下 higress-gateway deployment 。此回答整理自钉群“Higress 社区交流 2 群”

    2024-02-28 15:28:06
    赞同 展开评论 打赏

为微服务建设降本增效,为微服务落地保驾护航。

相关电子书

更多
移动互联网测试到质量的转变 立即下载
给ITer的技术实战进阶课-阿里CIO学院独家教材(四) 立即下载
F2etest — 多浏览器兼容性测试整体解决方案 立即下载