Skip to content

Instantly share code, notes, and snippets.

@mateobur
mateobur / dragent.yaml
Created May 2, 2017 15:48
Sysdig agent etcd url
customerid: *************************************
tags: role:kubernetes
app_checks:
- name: etcd
pattern:
comm: init
conf:
url: "http://172.17.4.51:2379/"
@mateobur
mateobur / autossh.service
Created May 2, 2017 18:53
autossh ubuntu systemd
[Unit]
Description=Autossh Tunnel
Wants=network-online.target
After=network-online.target
[Service]
User=<user>
Type=simple
ExecStart=/usr/bin/autossh -M 20000 -N <host> -R 0.0.0.0:30000:localhost:22
Restart=always
@mateobur
mateobur / l5d-service.yml
Created May 8, 2017 18:29
linkerd service
---
apiVersion: v1
kind: Service
metadata:
name: l5d
spec:
selector:
app: l5d
type: LoadBalancer
ports:
@mateobur
mateobur / l5d-daemonset.yml
Last active February 7, 2019 08:59
l5d daemonset
# runs linkerd in a daemonset, in linker-to-linker mode, with TLS for all calls
# from linkerd to linkerd
---
apiVersion: v1
kind: ConfigMap
metadata:
name: l5d-config
data:
config.yaml: |-
admin:
@mateobur
mateobur / statsd.yml
Created May 10, 2017 07:36
statsd teleport
telemetry:
- kind: io.l5d.statsd
experimental: true
prefix: linkerd
hostname: 127.0.0.1
port: 8125
gaugeIntervalMs: 10000
sampleRate: 0.01
@mateobur
mateobur / nginx.txt
Created May 14, 2017 19:37
nginx info
# nginx -V
nginx version: nginx/1.10.0 (Ubuntu)
built with OpenSSL 1.0.2g 1 Mar 2016
TLS SNI support enabled
configure arguments: --with-cc-opt='-g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now' --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-debug --with-pcre-jit --with-ipv6 --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-http_addition_module --with-http_dav_module --with-http_geoip_module --with-http_gunzip_module --with-http_g
@mateobur
mateobur / nginx.conf
Created May 14, 2017 19:45
nginx status
...
server{
server_name _;
location /nginx_status {
stub_status on;
access_log on;
<deny/allow directives for your scenario>
}
@mateobur
mateobur / nginx.conf
Created May 17, 2017 08:40
example nginx.conf
user www-data;
worker_processes auto;
pid /run/nginx.pid;
daemon off;
events {
worker_connections 768;
# multi_accept on;
}
@mateobur
mateobur / nginxrc.yaml
Created May 17, 2017 08:52
nginx kubernetes rc
---
apiVersion: v1
kind: ReplicationController
metadata:
name: nginx-wordpress
spec:
replicas: 5
selector:
app: nginx-wordpress
template:
@mateobur
mateobur / clist.txt
Created June 6, 2017 15:59
Container list
container.type container.image container.name container.id
-------------- --------------- ------------------- ------------
docker gcr.io/google_c k8s_POD.d8dbe16c_ng 3d4d7fd7db15
docker mateobur/flask k8s_flask.ef1c5956_ 04ebb1a43694
docker gcr.io/google_c k8s_POD.d8dbe16c_sy 2446c2a913ba
docker quay.io/coreos/ k8s_kube-proxy.5d42 65bfa7fa12e3
docker gcr.io/google_c k8s_POD.d8dbe16c_ng 937dcc65c4de
docker gcr.io/google_c k8s_POD.d8dbe16c_ku 509eeccb5a56
docker mateobur/nginx k8s_nginx.ea015fe2_ c1c87d89798c
rkt flannel a7b27487-389