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

poc for node-fence #12

Open
bronhaim opened this issue Dec 18, 2017 · 0 comments
Open

poc for node-fence #12

bronhaim opened this issue Dec 18, 2017 · 0 comments

Comments

@bronhaim
Copy link
Collaborator

bronhaim commented Dec 18, 2017

  • simple controller (doesn't work yet with workqueue)
  • initialize new crd for fence objects with status field
  • polling nodefence object and start "executions"
  • execution parse the configuration for node, and start running "isolation" phase methods

under demo directory we have:

  • templates-fenceconfigs.yaml which includes configmaps for all fence method templates in cluster.
  • demo-host0-fenceconfigs which includes fence configuration for node name lago-kube-host0

running that and killing kubelet service in node lago-kube-host0 will trigger the controller to create nodefence object in the format

apiVersion: ha.k8s.io/v1
clean_resources: true
hostname: localhost   <-- here we update where execution ran (should modified to node name)
kind: NodeFence
node: lago-kube-host0
status: New   <-- this is updated by controller after getting execution output
step: Power-Management

deployment:

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

No branches or pull requests

1 participant