Skip to content

Instantly share code, notes, and snippets.

💅
yo!

Damiano Giampaoli Damianofds

💅
yo!
Block or report user

Report or block Damianofds

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Damianofds
Damianofds / ingress_example.yaml
Last active Mar 9, 2018
Ingress example for the blogpost
View ingress_example.yaml
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:
View ingress_annotations.yaml
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
View ingress_sample_ingress-GCE_blogpost.yaml
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: ingress
spec:
rules:
- http:
paths:
- path: /echo
backend:
View ingress_expected-output-GCE_blogpost.yaml
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
---- ---- --------
*
View perform-requests-with-ab-GCE-blogpost.yaml
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
You can’t perform that action at this time.