Skip to content

Instantly share code, notes, and snippets.

@rajesh2k3
rajesh2k3 / dragent.yaml
Created February 7, 2019 09:01 — forked from mateobur/dragent.yaml
Sysdig agent etcd url
customerid: *************************************
tags: role:kubernetes
app_checks:
- name: etcd
pattern:
comm: init
conf:
url: "http://172.17.4.51:2379/"
@rajesh2k3
rajesh2k3 / autossh.service
Created February 7, 2019 08:59 — forked from mateobur/autossh.service
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
@rajesh2k3
rajesh2k3 / l5d-service.yml
Created February 7, 2019 08:59 — forked from mateobur/l5d-service.yml
linkerd service
---
apiVersion: v1
kind: Service
metadata:
name: l5d
spec:
selector:
app: l5d
type: LoadBalancer
ports:
@rajesh2k3
rajesh2k3 / l5d-daemonset.yml
Created February 7, 2019 08:59 — forked from mateobur/l5d-daemonset.yml
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:
@rajesh2k3
rajesh2k3 / statsd.yml
Created February 7, 2019 08:59 — forked from mateobur/statsd.yml
statsd teleport
telemetry:
- kind: io.l5d.statsd
experimental: true
prefix: linkerd
hostname: 127.0.0.1
port: 8125
gaugeIntervalMs: 10000
sampleRate: 0.01
@rajesh2k3
rajesh2k3 / nginx.txt
Created February 7, 2019 08:58 — forked from mateobur/nginx.txt
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
@rajesh2k3
rajesh2k3 / nginx.conf
Created February 7, 2019 08:58 — forked from mateobur/nginx.conf
nginx status
...
server{
server_name _;
location /nginx_status {
stub_status on;
access_log on;
<deny/allow directives for your scenario>
}
@rajesh2k3
rajesh2k3 / nginx.conf
Created February 7, 2019 08:57 — forked from mateobur/nginx.conf
example nginx.conf
user www-data;
worker_processes auto;
pid /run/nginx.pid;
daemon off;
events {
worker_connections 768;
# multi_accept on;
}
@rajesh2k3
rajesh2k3 / nginxrc.yaml
Created February 7, 2019 08:57 — forked from mateobur/nginxrc.yaml
nginx kubernetes rc
---
apiVersion: v1
kind: ReplicationController
metadata:
name: nginx-wordpress
spec:
replicas: 5
selector:
app: nginx-wordpress
template: