修改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

参考

  • https://github.com/istio/istio/issues/16126
  • https://discuss.istio.io/t/override-istio-sidecar-proxy-cpu-mem-limits/3226/7
上一篇:学习MyBatis必知必会(5)~了解myBatis的作用域和生命周期并抽取工具类MyBatisUtil、mybatis执行增删改查操作


下一篇:云原生系列篇之整体思维导图