-
Notifications
You must be signed in to change notification settings - Fork 20
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
k8s owner reference is not set in CC child pod #88
Comments
Example of project using standalone pods but with owner set: cnpg |
I think there are a couple of cases where an owner reference won't be possible:
|
Hi @Vikash-8090-Yadav, the background to this issue is in a Discord thread which is linked above, along with the Kubernetes doc on owners and dependents. This issue is to add the required configuration to the chaincode pod when possible, e.g. see the link Taras put in his comment. The builder would need to be running in Kubernetes, and in the same namespace, which I think it should be possible to check. |
Hi, I would like to work on this issue |
Hopefully this issue won't be necessary after switching to kubernetes jobs. See #119 |
With #119, kubernetes now cleans up chaincode jobs/pods when the peer is terminated |
When the chaincode pod is created by the k8s builder, it does not currently set the pod
owner
attribute.https://kubernetes.io/docs/concepts/overview/working-with-objects/owners-dependents/
Update the owner reference for the child pod such that it is set as a dependent resource created by the peer. This will force k8s to run an automatic GC of the chaincode pod if/when the peer is terminated.
Some original context and thread was discussed over on discord at #fabric-kubernetes, reported by @alius.miles
The text was updated successfully, but these errors were encountered: