Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch an object in-place #587

Closed
yujunz opened this issue Nov 30, 2018 · 3 comments
Closed

Patch an object in-place #587

yujunz opened this issue Nov 30, 2018 · 3 comments

Comments

@yujunz
Copy link
Member

yujunz commented Nov 30, 2018

Is it possible to use kustomize to patch an object which is not one of the resources defined in kustomization.yaml?

For example, if I want to add an annotation to kube-system like.

kubectl patch ns kube-system -p '{"metadata": {"annotations": {"iam.amazonaws.com/allowed-roles": "[\"*\"]"}}}'

How could I do it in kustomize?

@Liujingfang1
Copy link
Contributor

kustomize doesn't support that.

kube-system is special, but for other namespaces, you can manage them with annotations by kustomize.

@yujunz
Copy link
Member Author

yujunz commented Dec 1, 2018

Thanks for the explanation.

@yujunz yujunz closed this as completed Dec 1, 2018
@shokohsc
Copy link

@Liujingfang1 😭 but fair.

kustomize doesn't support that.

kube-system is special, but for other namespaces, you can manage them with annotations by kustomize.

Please how one would (or should ?) patch say, coredns deployment cpu/memory requests and limits, if the tool used to deploy the cluster (kubespray) could not allow it at the time, said cluster was deployed ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants