Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
I have no idea what I'm doing

Mangirdas Judeikis mjudeikis

💭
I have no idea what I'm doing
View GitHub Profile
View gist:0d20afc7204a378c951ca9911da87bba
package main
import (
"context"
"encoding/json"
"fmt"
"net/http"
_ "net/http/pprof"
"os"
View gist:08582e888ad33c9f3a2a7fd9512f4053
package main
import (
"flag"
"fmt"
"io/ioutil"
"strings"
"gopkg.in/yaml.v2"
)
View gist:34a53d25d083010b80ddcba3ab853acd
apiVersion: v1
kind: Pod
metadata:
name: csr
namespace: openshift-cluster-machine-approver
spec:
serviceAccount: machine-approver-sa
serviceAccountName: machine-approver-sa
containers:
- args:
@mjudeikis
mjudeikis / user-data-wifi.yml
Created Aug 1, 2020 — forked from DieterReuter/user-data-wifi.yml
HypriotOS cloud-init configuration for RPi3 WiFi Client
View user-data-wifi.yml
#cloud-config
# vim: syntax=yaml
#
# The current version of cloud-init in the Hypriot rpi-64 is 0.7.9
# When dealing with cloud-init, it is SUPER important to know the version
# I have wasted many hours creating servers to find out the module I was trying to use wasn't in the cloud-init version I had
# Documentation: http://cloudinit.readthedocs.io/en/0.7.9/index.html
# Set your hostname here, the manage_etc_hosts will update the hosts file entries as well
View v3.11 logs
RESOURCEGROUP is ci-2302-e2e-upgrade-uupgpq
go build -ldflags "-X main.gitCommit=v4.0-1349-g7be18e7" ./cmd/monitoring
time="2020-06-25T08:36:57Z" level=info msg="monitoring pod starting, git commit v4.0-1349-g7be18e7" component=monitor
time="2020-06-25T08:36:57Z" level=fatal msg="Cannot load clusterConfiguration from /tmp/tmp.OFakTUNPAm/src/github.com/openshift/openshift-azure/_data/containerservice.yaml: open /tmp/tmp.OFakTUNPAm/src/github.com/openshift/openshift-azure/_data/containerservice.yaml: no such file or directory" component=monitor
Note: checking out '8c178e7953e6ade46782753cc45d11b4e8d60dc8'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
View gist:45e1cb966ee465f658123a2e3dfc1bdf
package purge
import (
"context"
"fmt"
"net/http"
"regexp"
"strings"
"github.com/davecgh/go-spew/spew"
View BAD
[mjudeiki@unknown ARO-RP]$ ./hack/ssh.sh mjudeikis2-2m8l4-master-1
If you don't see a command prompt, try pressing enter.
[root@mjudeikis2-2m8l4-master-1 ~]# ovs-ofctl dump-flows br0 -O OpenFlow13
cookie=0x0, duration=31027.438s, table=0, n_packets=1001996, n_bytes=107382047, priority=400,ip,in_port=tun0,nw_src=10.128.0.1 actions=goto_table:30
cookie=0x0, duration=31027.438s, table=0, n_packets=2581967, n_bytes=991516571, priority=300,ct_state=-trk,ip actions=ct(table=0)
cookie=0x0, duration=31027.438s, table=0, n_packets=54274, n_bytes=5760396, priority=300,ip,in_port=tun0,nw_src=10.128.0.0/23,nw_dst=10.128.0.0/14 actions=goto_table:25
cookie=0x0, duration=31027.438s, table=0, n_packets=0, n_bytes=0, priority=250,ip,in_port=tun0,nw_dst=224.0.0.0/4 actions=drop
cookie=0x0, duration=31027.438s, table=0, n_packets=26990, n_bytes=1133580, priority=200,arp,in_port=vxlan0,arp_spa=10.128.0.0/14,arp_tpa=10.128.0.0/23 actions=move:NXM_NX_TUN_ID[0..31]->NXM_NX_REG0[],goto_table:10
cookie=0x0, duration=31027.438s
View BAD
[mjudeiki@unknown ARO-RP]$ ./hack/ssh.sh mjudeikis2-2m8l4-master-1
If you don't see a command prompt, try pressing enter.
[root@mjudeikis2-2m8l4-master-1 ~]# ovs-ofctl dump-flows br0 -O OpenFlow13
cookie=0x0, duration=31027.438s, table=0, n_packets=1001996, n_bytes=107382047, priority=400,ip,in_port=tun0,nw_src=10.128.0.1 actions=goto_table:30
cookie=0x0, duration=31027.438s, table=0, n_packets=2581967, n_bytes=991516571, priority=300,ct_state=-trk,ip actions=ct(table=0)
cookie=0x0, duration=31027.438s, table=0, n_packets=54274, n_bytes=5760396, priority=300,ip,in_port=tun0,nw_src=10.128.0.0/23,nw_dst=10.128.0.0/14 actions=goto_table:25
cookie=0x0, duration=31027.438s, table=0, n_packets=0, n_bytes=0, priority=250,ip,in_port=tun0,nw_dst=224.0.0.0/4 actions=drop
cookie=0x0, duration=31027.438s, table=0, n_packets=26990, n_bytes=1133580, priority=200,arp,in_port=vxlan0,arp_spa=10.128.0.0/14,arp_tpa=10.128.0.0/23 actions=move:NXM_NX_TUN_ID[0..31]->NXM_NX_REG0[],goto_table:10
cookie=0x0, duration=31027.438s
View BAD
[mjudeiki@unknown ARO-RP]$ ./hack/ssh.sh mjudeikis2-2m8l4-master-1
If you don't see a command prompt, try pressing enter.
[root@mjudeikis2-2m8l4-master-1 ~]# ovs-ofctl dump-flows br0 -O OpenFlow13
cookie=0x0, duration=31027.438s, table=0, n_packets=1001996, n_bytes=107382047, priority=400,ip,in_port=tun0,nw_src=10.128.0.1 actions=goto_table:30
cookie=0x0, duration=31027.438s, table=0, n_packets=2581967, n_bytes=991516571, priority=300,ct_state=-trk,ip actions=ct(table=0)
cookie=0x0, duration=31027.438s, table=0, n_packets=54274, n_bytes=5760396, priority=300,ip,in_port=tun0,nw_src=10.128.0.0/23,nw_dst=10.128.0.0/14 actions=goto_table:25
cookie=0x0, duration=31027.438s, table=0, n_packets=0, n_bytes=0, priority=250,ip,in_port=tun0,nw_dst=224.0.0.0/4 actions=drop
cookie=0x0, duration=31027.438s, table=0, n_packets=26990, n_bytes=1133580, priority=200,arp,in_port=vxlan0,arp_spa=10.128.0.0/14,arp_tpa=10.128.0.0/23 actions=move:NXM_NX_TUN_ID[0..31]->NXM_NX_REG0[],goto_table:10
cookie=0x0, duration=31027.438s
View gist:8d47cfc44ccd4db297175b341e4f1ab3
[root@mjudeikis2-2m8l4-master-0 ~]# iptables-save
# Generated by iptables-save v1.8.4 on Fri Apr 17 15:06:09 2020
*nat
:PREROUTING ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:KUBE-MARK-MASQ - [0:0]
:KUBE-MARK-DROP - [0:0]
:KUBE-POSTROUTING - [0:0]
You can’t perform that action at this time.