root@master:/home/ecoto# kubectl -n kube-system exec cilium-jncn0 -- cilium service list --jsonpath '{[*].FrontendAddress}'
10.96.0.1:443 10.96.0.10:53```
```
```
root@master:/home/ecoto# kubectl -n kube-system exec cilium-jncn0 -- cilium service list --json
[{"ID":1,"FrontendAddress":"10.96.0.1:443","BackendAddresses":["1 =\u003e 172.16.0.2:6443"]},{"ID":2,"FrontendAddress":"10.96.0.10:53","BackendAddresses":["1 =\u003e 10.2.42.252:53"]}]
```
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!KAMAILIO | |
debug=4 | |
log_facility=LOG_LOCAL7 | |
log_name="kamailio" | |
mpath="/usr/lib/x86_64-linux-gnu/kamailio/modules/" | |
loadmodule "sl.so" | |
loadmodule "pv.so" | |
loadmodule "tm.so" | |
loadmodule "tmx.so" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
totem { | |
version: 2 | |
cluster_name: lbcluster | |
transport: udpu | |
secauth: off | |
} | |
quorum { | |
provider: corosync_votequorum | |
two_node: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d. | |
ubuntu-zesty ‚ûú cilium git:(744) ‚úó /var/lib/cilium/bpf/init.sh /var/lib/cilium/bpf /var/run/cilium/state f00d::a00:20f:0:0 10.15.0.1 vxlan | |
++ command -v cilium | |
+ [[ ! -n /usr/bin/cilium ]] | |
+ echo 1 | |
+ echo 0 | |
+ sysctl -w net.ipv6.conf.all.disable_ipv6=0 | |
net.ipv6.conf.all.disable_ipv6 = 0 | |
+ DIR=/root/.go/src/github.com/cilium/cilium/globals | |
++ nproc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef RAW_INSN_H | |
#define RAW_INSN_H | |
#include <linux/bpf.h> | |
#define BPF_CALL_FUNC(FUNC) \ | |
((struct bpf_insn) { \ | |
.code = BPF_JMP | BPF_CALL | BPF_K, \ | |
.dst_reg = 0, \ | |
.src_reg = 0, \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/make -f | |
#export DH_VERBOSE = 1 | |
DEST_DIR="./debian/cilium/" | |
%: | |
dh $@ --with systemd | |
override_dh_auto_build: | |
make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kubectl -n kube-system get pods --selector=k8s-app=cilium --output=jsonpath={.items..metadata.name} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function sort_object(obj){ | |
var result = {} | |
keys = Object.keys(obj), | |
len = keys.length; | |
keys.sort(); | |
for (i = 0; i < len; i++) { | |
result[keys[i]] = obj[keys[i]]; | |
} | |
return result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get install -y --no-install-recommends \ | |
dh-golang devscripts fakeroot dh-make clang git ca-certificates libdistro-info-perl \ | |
dh-systemd build-essential curl gcc make libc6-dev.i386 git-buildpackage llvm curl git wget zsh tmux unzip \ | |
linux-headers-`uname -r` lxc-dev | |
curl -sSL https://get.docker.com/ | sh | |
systemctl start docker | |
git clone https://github.com/eloycoto/dotfiles | |
wget https://releases.hashicorp.com/consul/0.9.3/consul_0.9.3_linux_amd64.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"regexp" | |
) | |
func main() { | |
// Compile the expression once, usually at init time. | |
// Use raw strings to avoid having to quote the backslashes. |