Skip to content

Instantly share code, notes, and snippets.

View metabsd's full-sized avatar
🏠
Working from home

Benoit Martin metabsd

🏠
Working from home
View GitHub Profile
@djjudas21
djjudas21 / README.md
Created December 30, 2020 15:14
MicroK8s, Ingress and MetalLB

Ingress MetalLB

Out of the box, the MicroK8s distribution of ingress-nginx installed as the MicroK8s addon ingress binds to ports 80+443 on the node's IP address using a hostPort, as we can see here:

microk8s kubectl -n ingress describe daemonset.apps/nginx-ingress-microk8s-controller
Name:           nginx-ingress-microk8s-controller
Selector:       name=nginx-ingress-microk8s
@metabsd
metabsd / gist:ba83bf0f54a50398c0996eb02b52c750
Created March 7, 2018 19:53
Need help with Ansible and conditionnal from uri module.
Ansible JMESPATH / JSON Explorer
nagios_xi_services.json.servicelist.service[?service_description=='Service Status: Filebeat'].host_name
I want to run a task when the result is empty only.
Example of data I register by module uri in nagios_xi_services
{
"nagios_xi_services": {
@justincjahn
justincjahn / 10-cisco-elasticsearch.conf
Last active March 10, 2024 17:36
Logstash: Processing Cisco Logs
#
# INPUT - Logstash listens on port 8514 for these logs.
#
input {
udp {
port => "8514"
type => "syslog-cisco"
}