Skip to content

Instantly share code, notes, and snippets.

View Damianofds's full-sized avatar
💅
yo!

Damiano Giampaoli Damianofds

💅
yo!
View GitHub Profile
fds@ubuntu ~/work/code $ ab -n 100 -c 3 http://35.186.233.211/echo
This is ApacheBench, Version 2.3 <$Revision: 1706008 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 35.186.233.211 (be patient).....done
Server Software: echoserver
Server Hostname: 35.186.233.211
Every 2.0s: kubectl describe ingress Fri Apr 20 23:16:46 2018
Name: ingress
Namespace: default
Address: 35.186.233.211
Default backend: default-http-backend:80 (10.24.0.4:8080)
Rules:
Host Path Backends
---- ---- --------
*
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: ingress
spec:
rules:
- http:
paths:
- path: /echo
backend:
@Damianofds
Damianofds / ingress_annotations.yaml
Created March 9, 2018 08:31
ingress annotations
annotations:
ingress.kubernetes.io/proxy-body-size: 100M
ingress.kubernetes.io/whitelist-source-range: "76.190.128.220/24,98.202.168.120/32,76.34.172.28/32" #random IPs
@Damianofds
Damianofds / ingress_example.yaml
Last active March 9, 2018 10:11
Ingress example for the blogpost
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: nginx-ingress
annotations:
ingress.kubernetes.io/proxy-body-size: 100M
ingress.kubernetes.io/whitelist-source-range: "76.190.128.220/24,98.202.168.120/32,76.34.172.28/32"
kubernetes.io/ingress.class: "nginx"
ingress.kubernetes.io/app-root: "/"
spec: