Skip to content

Instantly share code, notes, and snippets.

@hbagdi
hbagdi / CLA-go-unsplash.md
Last active August 10, 2017 16:29 — forked from pjcozzi/CLA.md
CLA for hbagdi/go-unsplash (released with MIT license)

By making a contribution to go-unsplash, I certify that:

(a) The contribution was created in whole or in part by me and I have the right to submit it under the MIT license; or

(b) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the MIT license; or

@hbagdi
hbagdi / CLA-gogo.md
Last active August 10, 2017 16:29
CLA for hbagdi/gogo

By making a contribution to gogo, I certify that:

(a) The contribution was created in whole or in part by me and I have the right to submit it under the MIT license; or

(b) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the MIT license; or

@hbagdi
hbagdi / Debug.yaml
Created November 14, 2018 02:42
Debug output
[debug] Created tunnel using local port: '52497'
[debug] SERVER: "127.0.0.1:52497"
[debug] Original chart version: ""
[debug] CHART PATH: /Users/harry/helm-charts/stable/kong
NAME: quelling-porcupine
REVISION: 1
RELEASED: Tue Nov 13 18:39:52 2018
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: http-svc
spec:
replicas: 1
selector:
matchLabels:
app: http-svc
template:
persistence:
enabled: true
datasources:
datasources.yaml:
apiVersion: 1
datasources:
- name: Prometheus
type: prometheus
url: http://prometheus-server
access: proxy
admin:
useTLS: false
readinessProbe:
httpGet:
scheme: HTTP
livenessProbe:
httpGet:
scheme: HTTP
ingressController:
enabled: true
server:
global:
scrape_interval: 10s
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: http-svc
spec:
replicas: 1
selector:
matchLabels:
app: http-svc
template:
@hbagdi
hbagdi / gist:258e2fdcf878cacfb73565cee37a8d56
Created January 10, 2019 17:51
Demonstrate upstreams timestamp bug while migrating from Kong 0.14.1 to Kong 1.0
Following the list of commands which demonstrate a bug with Kong 1.0 migration:
# start up the database
$ docker run -d --name kong-database \
-p 5432:5432 \
-e "POSTGRES_USER=kong" \
-e "POSTGRES_DB=kong" \
postgres:9.5
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: fallback-svc
spec:
replicas: 1
selector:
matchLabels:
app: fallback-svc
template: