最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

What can cause Kubernetes tolerations to spontaneously change? - Stack Overflow

programmeradmin4浏览0评论

I have a wavefront-proxy deployment running in the observability-system namespace. I run the following command to add tolerations:

kubectl patch deployment wavefront-proxy -n observability-system --type='json' -p='[{
  "op": "add",
  "path": "/spec/template/spec/tolerations",
  "value": [{
    "key": "key1",
    "operator": "Equal",
    "value": "value1",
    "effect": "NoSchedule"
  }]
}]'

If I run

kubectl edit deployment wavefront-proxy -n observability-system

right away, I see in the yaml,

tolerations:
- effect: NoSchedule
  key: key1
  operator: Equal
  value: value1

As expected, but if I was several seconds and repeat the kubectl edit command, I see that my tolerations get overwritten with:

tolerations:
- effect: NoSchedule
  key: kubernetes.io/arch
  value: arm64

Is there anything that is part of the Kubernetes ecosystem that would spontaneously overwrite tolerations that I set?

发布评论

评论列表(0)

  1. 暂无评论