其他分享
首页 > 其他分享> > 修改istio-proxy cpu request

修改istio-proxy cpu request

作者:互联网

apiVersion: apps/v1
kind: Deployment
metadata:
  name: hello
  namespace: test

spec:
  replicas: 1
  selector:
    matchLabels:
      app: hello
  template:
    metadata:
      labels:
        app: hello
      annotations:
        sidecar.istio.io/proxyCPU: "600m"
        sidecar.istio.io/proxyMemory: "256Mi"
    spec:
      containers:
      - name: nginx
        image: nginx:1.7.9
        ports:
        - containerPort: 80

annotations:
sidecar.istio.io/proxyCPU: “600m”
sidecar.istio.io/proxyMemory: “256Mi”
在对应deployment的yaml文件中增加annotation,注意修改的是request

参考

标签:proxyCPU,app,request,istio,cpu,io,hello,sidecar
来源: https://blog.csdn.net/CSDNwzl/article/details/121769323