Comments (2)
For question 1:
Generally, a resource will only have one OwnerReference, but sometimes, a resource may be dependent on multiple resources. In this case, you can use multiple OwnerReferences to record the dependency relationship of this resource. Although there is no multiple dependency relationship between RS and Deploy at the current stage, this writing can cover more possibilities in the future, so I think this is no problem.
For question 2:
For many resources, if we changed label/anno, the UID will be changed. I'm not sure wehter the deploy has this feature or not, but using name will not lose the events if UID is changed.
from tke.
question 2:
Modifying the labels and annotations of a Deployment does not cause a change in the Deployment's UID. According to the design theory of Kubernetes, the UID only changes when the resource is recreated. However, it is true that querying by the same Name can retrieve "additional" events. From the perspective of retrieving "additional" events, this reasoning is indeed correct.
对于 Deployment 的 labels 和 annotations 的修改 不会导致 Deployment uid 发送变化,按照 k8s 的设计理论上只有 资源发送重建时 uid 才会变化。但是同 Name 判断确实可以查询到 “更多” 的事件,从获取“更多”的事件角度考虑 这样确实没错。
from tke.
Related Issues (20)
- 17.Install tke-registry-api [Failed] [600.058036s] error timed out waiting for the condition HOT 2
- 更改镜像仓库域名后,“镜像上传指引”中未同步 HOT 1
- install安装时报错、Setup local registry [Failed] HOT 1
- 1.7.1版本的tke,在使用1年后,管理集群出现x509的相关错误,无法连接创建的集群,且无法更新证书。 HOT 1
- add application chart option to replace crds before install or upgrade
- How to create a new tenant HOT 1
- Did you forget to upload the changelog of v1.9.1? HOT 1
- tke的prometheus如何增加自定义告警规则
- prometheus新增自定义规则失败
- tke-inistaller 提示的访问链接错误Bug HOT 1
- k8s Worker节点网卡名称与k8s Master节点网卡名称不一致的功能考虑
- 404 not found HOT 2
- v1.9登录容器异常
- tke
- cluster health check will failed in most case bacause the socket connection to the target cluster is not stable
- 通过tkestack新建集群使用 cilium插件疑问
- 昇腾 NPU 接入,能否提供指引文档?
- 如何在已有k8s集群安装tkestack?
- TKE v1.9.2 installation failed on linux/arm64
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tke.