Skip to content

Instantly share code, notes, and snippets.

View naveensrinivasan's full-sized avatar

Naveen naveensrinivasan

View GitHub Profile
@naveensrinivasan
naveensrinivasan / after.sh
Created April 13, 2017 02:49 — forked from justincampbell/after.sh
Jenkins + GitHub Commit Status API
if [[ $BUILD_STATUS == "success" ]]
then
export STATUS="success"
else
export STATUS="failure"
fi
curl "https://api.github.com/repos/justincampbell/my_repo/statuses/$GIT_COMMIT?access_token=abc123" \
-H "Content-Type: application/json" \
-X POST \
@naveensrinivasan
naveensrinivasan / zipkin-starter-0.1.5-kubernetes.yml
Created March 25, 2017 01:25
Zipkin for k8s using PersistentVolumeClaim and Dynamic Provisioning
---
apiVersion: "v1"
kind: "List"
items:
- apiVersion: "v1"
kind: "Service"
metadata:
annotations:
fabric8.io/iconUrl: "https://cdn.rawgit.com/fabric8io/fabric8-ipaas/master/kafka/src/main/fabric8/icon.png"
fabric8.io/git-commit: "500219733b1151415686940f4b893d7add206822"
@naveensrinivasan
naveensrinivasan / zipkin-starter-0.1.5-kubernetes.yml
Created March 25, 2017 01:24
Zipkin for k8s using PersistentVolumeClaim and Dynamic Provisioning
---
apiVersion: "v1"
kind: "List"
items:
- apiVersion: "v1"
kind: "Service"
metadata:
annotations:
fabric8.io/iconUrl: "https://cdn.rawgit.com/fabric8io/fabric8-ipaas/master/kafka/src/main/fabric8/icon.png"
fabric8.io/git-commit: "500219733b1151415686940f4b893d7add206822"
[[snippets]]
description = "set katana namespace"
command = "k config set-context minikube --namespace=katana"
[[snippets]]
description = "Get global ip address"
command = "curl ifconfig.co"
[[snippets]]
description = "katana"
[[snippets]]
description = "set katana namespace"
command = "k config set-context minikube --namespace=katana"
[[snippets]]
description = "Get global ip address"
command = "curl ifconfig.co"
{
"clnt/daemonsetTransformer/available" : 1.0,
"clnt/daemonsetTransformer/cancelled_connects" : 0,
"clnt/daemonsetTransformer/closes" : 0,
"clnt/daemonsetTransformer/connect_latency_ms.count" : 0,
"clnt/daemonsetTransformer/connection_duration.count" : 0,
"clnt/daemonsetTransformer/connection_received_bytes.count" : 0,
"clnt/daemonsetTransformer/connection_requests.count" : 0,
"clnt/daemonsetTransformer/connection_sent_bytes.count" : 0,
"clnt/daemonsetTransformer/connections" : 1.0,
{
"clnt/zipkin-tracer/available" : 1.0,
"clnt/zipkin-tracer/cancelled_connects" : 0,
"clnt/zipkin-tracer/closes" : 0,
"clnt/zipkin-tracer/codec_connection_preparation_latency_ms.count" : 0,
"clnt/zipkin-tracer/connect_latency_ms.count" : 0,
"clnt/zipkin-tracer/connection_duration.count" : 0,
"clnt/zipkin-tracer/connection_received_bytes.count" : 0,
"clnt/zipkin-tracer/connection_requests.count" : 0,
"clnt/zipkin-tracer/connection_sent_bytes.count" : 0,

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@naveensrinivasan
naveensrinivasan / configmap.yaml
Created March 8, 2017 01:09
linkerd sample tracing
apiVersion: v1
kind: ConfigMap
metadata:
name: linkerd-config
data:
config.yaml: |-
admin:
port: 9990
telemetry:
@naveensrinivasan
naveensrinivasan / proposal.txt
Created February 18, 2017 14:59
proposal for jenkins meetup
Planning to present Washington, DC Jenkins Area Meetup using Jenkins and Kubernetes with Helm.
The goal is to scale the builds with containers as when needed and scale down when it is not being used.
Also use the helm to standup a jenkins server locally as well as remotely with the least amount of efforts.
Here is an example of that
https://twitter.com/snaveen/status/807265729884065792