Naman1997 / kubesnap

Kubernetes observability with automated remediation
MIT License
0 stars 0 forks source link

Allow kubesnap to react to events using ansible playbooks #11

Closed Naman1997 closed 2 years ago

Naman1997 commented 2 years ago

References: https://helm.sh/docs/chart_template_guide/accessing_files/ https://github.com/apenella/go-ansible

ansible.go might be useful in case go-ansible does not work out

Naman1997 commented 2 years ago

Might be also useful to look into implementing timeouts along with concurrent api calls to kube api server. It might be the reason I get client throttling issues as currently I don't pass a timeout with along with the context in kubernetes.go

https://www.digitalocean.com/community/tutorials/how-to-use-contexts-in-go#giving-a-context-a-deadline

Naman1997 commented 2 years ago

ansible.cfg should look like this for a formatted output

[defaults]
# Use the YAML callback plugin.
stdout_callback = yaml
# Use the stdout_callback when running ad-hoc commands.
bin_ansible_callbacks = True