Skip to content

Instantly share code, notes, and snippets.

View nerdalert's full-sized avatar
🐈
🦀 🐿

Brent Salisbury nerdalert

🐈
🦀 🐿
View GitHub Profile

Stun Dialer

package main

import (
	"net"
	"time"

	"github.com/pion/stun"
[fedora@cluster2-gw1-ha1-iperf-axon ~]$ kubectl get pods --all-namespaces -o wide| grep iperf-server
default               iperf-server-group1-7dfdb96bf7-jlfd2             1/1     Running     0             17h    10.80.2.3     cluster2-worker1-server-iperf-axon   <none>           <none>
default               iperf-server-group2-84fc844565-gbklz             1/1     Running     0             17h    10.80.3.3     cluster2-worker2-server-iperf-axon   <none>           <none>
default               iperf-server-group2-1-dc45d8fdf-jqfhf            1/1     Running     0             101s   10.80.3.5     cluster2-worker2-server-iperf-axon   <none>           <none>
default               iperf-server-group2-3-78f77d675d-k6ddl           1/1     Running     0             70s    10.80.3.6     cluster2-worker2-server-iperf-axon   <none>           <none>
default               iperf-server-group2-2-b9689dfd4-s7cwk            1/1     Running     0             69s    10.80.3.7     cluster2-worker2-server-iperf-axon   <none> 
ssh -i ./axon-perf-testing.pem [email protected]
[cluster1brokerNode]
34.238.122.79 ansible_user=fedora ansible_connection=ssh k8s_master=10.10.0.94 hostname=cluster1-ha1-iperf-node
############################################################################
aws ec2 describe-instance-types --filters "Name=instance-type,Values=c5.*" --query "InstanceTypes[].[InstanceType, NetworkInfo.NetworkPerformance]" --output table
-------------------------------------
| DescribeInstanceTypes |
+--------------+--------------------+
| c5.4xlarge | Up to 10 Gigabit |
| c5.xlarge | Up to 10 Gigabit |
| c5.12xlarge | 12 Gigabit |

[02:03:39] (='o'=) [submariner-ec2-custom-no-active-ha]$ ansible-playbook setup-k8s.yml -vv
ansible-playbook [core 2.12.3]
  config file = /Users/brent/Downloads/code/redhat-et/apr15-performance-benchmarking/performance-benchmarking/submariner-ec2-custom-no-active-ha/ansible.cfg
  configured module search path = ['/Users/brent/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /Users/brent/Library/Python/3.10/lib/python/site-packages/ansible
  ansible collection location = /Users/brent/.ansible/collections:/usr/share/ansible/collections
  executable location = /Users/brent/Library/Python/3.10/bin/ansible-playbook
  python version = 3.10.3 (v3.10.3:a342a49189, Mar 16 2022, 09:34:18) [Clang 13.0.0 (clang-1300.0.29.30)]

[fedora@cluster2-ha1-perf-target-node ~]$ kubectl get pods --all-namespaces -o wide
NAMESPACE             NAME                                             READY   STATUS             RESTARTS         AGE   IP            NODE                            NOMINATED NODE   READINESS GATES
kube-system           local-path-provisioner-84bb864455-5zq8r          1/1     Running            0                76m   10.42.0.3     cluster2-ha1-perf-target-node   <none>           <none>
kube-system           coredns-96cc4f57d-bz2ns                          1/1     Running            0                76m   10.42.0.2     cluster2-ha1-perf-target-node   <none>           <none>
kube-system           metrics-server-ff9dbcb6c-vz9w2                   1/1     Running            0                76m   10.42.0.4     cluster2-ha1-perf-target-node   <none>           <none>
submariner-operator   submariner-operator-789c775b8-xj5tv              1/1     Running            1 (67m ago)      67m   10.42.2.2     cluster2-worker1-node     
[fedora@cluster2-ha1-perf-target-node ~]$ kubectl get nodes
NAME                            STATUS   ROLES                  AGE   VERSION
cluster2-worker1-node           Ready    <none>                 15m   v1.22.7+k3s1
cluster2-ha2-node               Ready    <none>                 18m   v1.22.7+k3s1
cluster2-ha1-perf-target-node   Ready    control-plane,master   21m   v1.22.7+k3s1
[fedora@cluster2-ha1-perf-target-node ~]$ kubectl get pods --all-namespaces -o wide
NAMESPACE             NAME                                             READY   STATUS             RESTARTS      AGE   IP            NODE                            NOMINATED NODE   READINESS GATES
kube-system           local-path-provisioner-84bb864455-hn6km          1/1     Running            0             21m   10.42.0.3     cluster2-ha1-perf-target-node   <none>           <none>
kube-system           coredns-96cc4f57d-j9ggn                          1/1     Running            0             21m   10.42.0.4     cluster2-ha1-perf-target-node   
  • Node Addresses:
[brokerNode]
35.171.157.41 ansible_user=fedora ansible_connection=ssh k8s_master=10.10.0.80 hostname=cluster1-ha1-node

[secondaryGatewayNode]
18.234.103.8 ansible_user=fedora ansible_connection=ssh k8s_master=10.10.0.80 hostname=cluster1-ha2-node

Logs and Cluster Details from GlobalNet Crashing with active/active branch

  • Makes/Images
git clone https://github.com/astoycos/submariner-operator.git
git clone https://github.com/astoycos/submariner.git
cd submariner
git checkout remotes/origin/AS-mult-active-gw-multiple-vxlan-tunnels
make images