Skip to content
This repository has been archived by the owner on Mar 28, 2020. It is now read-only.

etcd-restore-operator creates service for itself #1836

Closed
hongchaodeng opened this issue Jan 8, 2018 · 0 comments
Closed

etcd-restore-operator creates service for itself #1836

hongchaodeng opened this issue Jan 8, 2018 · 0 comments
Assignees

Comments

@hongchaodeng
Copy link
Member

Currently we need to deploy another service for etcd-restore-operator. This adds complexity to deployment.

To further simplify this issue, We can assume etcd-restore-operator is created as a Deployment. We can create the service automatically this this way:

  • use the downward API POD_NAME and POD_NAMESPACE to get the pod object.
  • get the labels specification
    • but intelligently ignore "pod-template-hash" which is added by deployment
  • use the labels to create the service
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant