Skip to content

Instantly share code, notes, and snippets.

View pmoncadaisla's full-sized avatar

Pablo Moncada pmoncadaisla

View GitHub Profile
@pmoncadaisla
pmoncadaisla / gateway-default.yaml
Created July 13, 2022 15:10
Resource files for gateway on different namespace
kind: Gateway
apiVersion: gateway.networking.k8s.io/v1alpha2
metadata:
name: external-http
namespace: default
spec:
gatewayClassName: gke-l7-gxlb
listeners:
- name: https
protocol: HTTPS
@pmoncadaisla
pmoncadaisla / default.conf
Created November 10, 2021 11:39
Nginx default.conf split
log_format upstreamlog '{"nginx_time": "$time_local", "newfmc_enabled": "$newfmc", "featureflag_enabled": "$postpaid", "featureflag_fmc_enabled": "$newfmc",, "remote_addr": "$http_x_real_ip", "x-forwarded-for": "$proxy_add_x_forwarded_for", "request_id": "$request_id", "remote_user": "$remote_user", "bytes_sent": $bytes_sent, "request_time": $request_time, "status": $status, "vhost": "$host", "request_proto": "$server_protocol", "path": "$uri", "request_query": "$args", "request_length": $request_length, "duration": $request_time, "method": "$request_method", "scheme": "$scheme", "http_referrer": "$http_referer", "http_user_agent": "$http_user_agent"}';
access_log /dev/stdout upstreamlog;
# Split clients by the following percentages
# according to remote IP and user agent
split_clients "seedString${http_x_real_ip}" $postpaid_variant {
50% true;
50% true; # All true
}
@pmoncadaisla
pmoncadaisla / keybase.md
Created December 10, 2019 07:31
keybase.md

Keybase proof

I hereby claim:

  • I am pmoncadaisla on github.
  • I am pmoncadaisla (https://keybase.io/pmoncadaisla) on keybase.
  • I have a public key ASBVpitPmD8DlHoG-aNskYf7_4Zyu3G9OdowKjnNlCCkqQo

To claim this, I am signing this object: