This file contains hidden or 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
| qemu-system-x86_64 -nodefaults -enable-kvm -m 8G -smp cpus=4,cores=4 -cpu host -vnc :9 -vga std \ | |
| -device virtio-net-pci,mac=00:01:00:10:00:01,netdev=virbr0 -netdev bridge,br=virbr0,id=virbr0 \ | |
| -device virtio-net-pci,mac=00:01:00:10:00:02,netdev=brx1 -netdev bridge,br=brx1,id=brx1 \ | |
| fedora1 | |
| nohup qemu-system-x86_64 -nodefaults -enable-kvm -m 8G -smp cpus=4,cores=4 -cpu host -vnc :5 -vga std \ | |
| -device virtio-net-pci,mac=00:00:00:11:10:11,netdev=virbr0 -netdev bridge,br=virbr0,id=virbr0 \ | |
| -device virtio-net-pci,mac=00:00:00:11:10:12,netdev=virbr1 -netdev bridge,br=virbr1,id=virbr1 \ | |
| -device virtio-net-pci,mac=00:00:00:11:10:13,netdev=brx1 -netdev bridge,br=brx1,id=brx1 \ |
This file contains hidden or 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
| // futures-executor = "0.3.1" | |
| use std::pin::Pin; | |
| use std::thread; | |
| use std::time; | |
| use std::future::Future; | |
| use std::task::Poll; | |
This file contains hidden or 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
| git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git | |
| export PATH=`pwd`/depot_tools:"$PATH" | |
| # Download v8 | |
| fetch v8 | |
| cd v8 | |
| # (optional) If you'd like to build a certain version: | |
| git checkout 6.4.388.18 | |
| gclient sync |
This file contains hidden or 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 ( | |
| "sigs.k8s.io/kustomize/v3/pkg/transformers" | |
| "sigs.k8s.io/kustomize/v3/pkg/resmap" | |
| "sigs.k8s.io/kustomize/v3/pkg/transformers/config" | |
| "sigs.k8s.io/kustomize/v3/k8sdeps/kunstruct" | |
| "sigs.k8s.io/kustomize/v3/pkg/gvk" | |
| "sigs.k8s.io/kustomize/v3/pkg/resource" | |
| "fmt" |
This file contains hidden or 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
| CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' . | |
| -ldflags '-extldflags "-fno-PIC -static"' -buildmode pie -tags 'osusergo netgo static_build' |
This file contains hidden or 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
| manifests/prometheus-prometheus.yaml | |
| + podMonitorNamespaceSelector: {} | |
| + podMonitorSelector: {} | |
| -------------------------------- | |
| cat podmonitor-b1.yaml | |
| apiVersion: monitoring.coreos.com/v1 | |
| kind: PodMonitor | |
| metadata: | |
| name: pm4 |
This file contains hidden or 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
| curl -v http://prometheus.istio-system:9090/api/v1/query?query=container_last_seen |
This file contains hidden or 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
| ##start etcd | |
| wget https://github.com/etcd-io/etcd/releases/download/v3.3.13/etcd-v3.3.13-linux-amd64.tar.gz | |
| tar xvf etcd-v3.3.13-linux-amd64.tar.gz | |
| cd etcd-v3.3.13-linux-amd64 | |
| ./etcd --listen-client-urls http://localhost:9999 --advertise-client-urls http://localhost:9999 | |
| get kube-apiserver binary - good place is somewhere in /var on k8s cluster ;) | |
| ./kube-apiserver --secure-port 9000 --etcd-servers http://localhost:9999 --storage-backend etcd3 |
This file contains hidden or 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" | |
| "github.com/robertkrimen/otto" | |
| ) | |
| type Svc struct { | |
| Name string |
This file contains hidden or 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
| yum -y install docker | |
| cat << EOF >/etc/docker/daemon.json | |
| { | |
| "insecure-registries": [ | |
| "172.30.0.0/16" | |
| ] | |
| } | |
| EOF |