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

Restart a Topology on Kubernetes #3740

Merged
merged 5 commits into from
Nov 20, 2021
Merged

Conversation

surahman
Copy link
Member

This PR adds the ability to restart a topology on the Kubernetes scheduler. It achieves this by deleting all Pods associated with the topology using a Selector match label for:

metadata:
  labels:
    app: heron
    topology: <topology-name>

I have done some very quick deployment testing.

<createTopologySelectorLabels> will generate match labels of the form "app=heron,topology=topology-name".
<restart> will shutdown a topology by deleting its associated Pods.
Copy link
Contributor

@nwangtw nwangtw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@surahman
Copy link
Member Author

I forgot the Helm chart permissions:

- apiGroups:
  - ""
  resources:
  - pods
  verbs:
  - deletecollection

@nicknezis nicknezis merged commit 382fd15 into apache:master Nov 20, 2021
@nicknezis nicknezis self-requested a review November 20, 2021 02:25
@surahman
Copy link
Member Author

@nicknezis thank you!

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

Successfully merging this pull request may close these issues.

3 participants