kind集群基础环境配置

161 阅读1分钟

配置dapr

添加helm repo

helm repo add dapr https://dapr.github.io/helm-charts/
helm repo update

部署HA dapr

helm upgrade --install dapr dapr/dapr \
--version=1.13 \
-n dapr-system \
--create-namespace \
--set global.ha.enabled=true \
--wait

部署dapr dashboard

helm upgrade --install dapr dapr/dapr-dashboard -n dapr-system

开启grpc代理feature

feature配置

apiVersion: dapr.io/v1alpha1
kind: Configuration
metadata:
  name: serverconfig
spec:
  tracing:
    samplingRate: "1"
    zipkin:
      endpointAddress: http://localhost:9411/api/v2/spans
  features:
    - name: proxy.grpc
      enabled: true

应用配置

kubectl apply -f grpc_config.yaml

部署new relic

参考官方helm安装方式可一次完成部署tracing、metrics、logging

helm repo add newrelic https://helm-charts.newrelic.com
helm repo update
helm upgrade --install newrelic-bundle newrelic/nri-bundle -n newrelic --create-namespace --values values.yaml

安装ingress

# 添加apisix repo
helm repo add apisix https://charts.apiseven.com

# 添加bitnami repo
helm repo add bitnami https://charts.bitnami.com/bitnami

# 更新helm repo
helm repo update

# helm部署apisix
helm upgrade --install apisix apisix/apisix \
--create-namespace \
--namespace apisix \
--set dashboard.enabled=true \
--set ingress-controller.enabled=true \
--set ingress-controller.config.apisix.serviceNamespace=apisix \
--set gateway.type=LoadBalancer