Skip to content

Instantly share code, notes, and snippets.

@harsha-y
harsha-y / kubernetes-example-deployment-with-service-type-loadbalancer-for-aws.j2.yml
Created September 27, 2016 21:03
Kubernetes Example - Deployment with Service Type LoadBalancer for AWS
#
# Showing all available options for kubernetes services with loadbalancers setup
# Reference - https://github.com/kubernetes/kubernetes/blob/release-1.4/pkg/cloudprovider/providers/aws/aws.go
#
apiVersion: v1
kind: Service
metadata:
annotations:
service.beta.kubernetes.io/aws-load-balancer-ssl-cert: arn:aws:iam::0123456:server-certificate/star.foo.com
service.beta.kubernetes.io/aws-load-balancer-backend-protocol: http

AWS NTP Servers

server 0.amazon.pool.ntp.org iburst
server 1.amazon.pool.ntp.org iburst
server 2.amazon.pool.ntp.org iburst
server 3.amazon.pool.ntp.org iburst

CoreOS NTP Servers

@harsha-y
harsha-y / resource-reserver.yml
Last active October 6, 2016 03:01
Kubernetes - Resource reserver daemonset
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: resource-reserver-ds
namespace: kube-system
spec:
template:
metadata:
labels:
name: resource-reserver
@harsha-y
harsha-y / keybase-upgrade.sh
Last active May 3, 2016 06:51
Troubleshoot Keybase Upgrade
$ brew update ; brew upgrade
...
$ keybase version
Client: 1.0.15
Service: 1.0.14-1
$ pgrep keybase
369
@harsha-y
harsha-y / ssh-help.sh
Last active February 2, 2017 07:19
SSH
# Debug - include in ~/.ssh/config
# Host github.com
# LogLevel DEBUG3
# Create a new set of RSA keys
ssh-keygen -t rsa -b 4096 -f output_filename -C "Comment"
# Generate pub key from private
ssh-keygen -y -f input_filename
@harsha-y
harsha-y / kubernetes-rstypes-shortnames.md
Last active September 24, 2019 02:55
Kubernetes Resourcetypes and their Shortnames
Resource type Abbreviated alias
clusters (valid only for federation apiservers)
componentstatuses cs
configmaps cm
daemonsets ds
deployments deploy
endpoints ep
events ev
horizontalpodautoscalers hpa

Keybase proof

I hereby claim:

  • I am harsha-y on github.
  • I am harshay (https://keybase.io/harshay) on keybase.
  • I have a public key whose fingerprint is 13D6 F587 F3D8 BEBD D8E3 8C4E 29BF 8584 0497 908C

To claim this, I am signing this object: