Skip to content

Instantly share code, notes, and snippets.

View arun-gupta's full-sized avatar

Arun Gupta arun-gupta

View GitHub Profile
drwxr-xr-x@ 20 arungupt staff 640 Aug 16 20:29 .
drwx------+ 12 arungupt staff 384 Aug 16 20:07 ..
drwxr-xr-x 6 arungupt staff 192 Aug 16 20:29 .gradle
-rw-r--r--@ 1 arungupt staff 3317 Aug 16 20:29 CREDITS.txt
-rw-r--r--@ 1 arungupt staff 27606 Aug 16 20:29 LICENSE.txt
-rw-r--r--@ 1 arungupt staff 2299 Aug 16 20:29 README.txt
drwxr-xr-x 10 arungupt staff 320 Aug 16 20:29 build
-rw-r--r--@ 1 arungupt staff 7573 Aug 16 20:29 build.gradle
-rw-r--r--@ 1 arungupt staff 28130 Aug 16 20:29 changelog.txt
drwxr-xr-x@ 3 arungupt staff 96 Aug 16 20:29 gradle
@arun-gupta
arun-gupta / readme.adoc
Last active May 24, 2022 12:16
Kubernetes on AWS using Kops
  1. Download kubectl curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/darwin/amd64/kubectl

  2. Create IAM group: aws iam create-group --group-name kops

  3. Attach policy:

    aws iam attach-group-policy --policy-arn arn:aws:iam::aws:policy/AmazonEC2FullAccess --group-name kops
    aws iam attach-group-policy --policy-arn arn:aws:iam::aws:policy/AmazonRoute53FullAccess --group-name kops
    aws iam attach-group-policy --policy-arn arn:aws:iam::aws:policy/AmazonS3FullAccess --group-name kops
    aws iam attach-group-policy --policy-arn arn:aws:iam::aws:policy/IAMFullAccess --group-name kops
    aws iam attach-group-policy --policy-arn arn:aws:iam::aws:policy/AmazonVPCFullAccess --group-name kops
@arun-gupta
arun-gupta / 01-steps.md
Last active April 5, 2022 09:07
Kubernetes and Fargate

Create Amazon EKS Cluster

eksctl create cluster --name fargate --region us-east-1 --version 1.14 --fargate
[ℹ]  eksctl version 0.11.1
[ℹ]  using region us-east-1
[ℹ]  setting availability zones to [us-east-1c us-east-1d]
[ℹ]  subnets for us-east-1c - public:192.168.0.0/19 private:192.168.64.0/19
[ℹ]  subnets for us-east-1d - public:192.168.32.0/19 private:192.168.96.0/19
[ℹ]  using Kubernetes version 1.14
@arun-gupta
arun-gupta / readme.adoc
Last active December 8, 2021 05:04
Federated Kubernetes Cluster using Kops on AWS

Let’s set up a federation between earth and mars Kubernetes cluster on AWS.

Earth cluster

  1. Create hosted zone:

    ID=$(uuidgen) && \
       aws route53 create-hosted-zone \
       --name earth.kubernetes-aws.io \
# Docker Machine for Consul
docker-machine \
create \
-d virtualbox \
consul-machine
# Start Consul
docker $(docker-machine config consul-machine) run -d --restart=always \
-p "8500:8500" \
-h "consul" \
@arun-gupta
arun-gupta / readme.md
Last active July 19, 2020 15:20
KubeFlow on AWS Fargate

This document explains how to install Kubeflow on AWS Fargate. Detailed instructions are at https://eksworkshop.com/advanced/420_kubeflow/install/. There is a slight variation on how to find the IAM role:

export AWS_CLUSTER_NAME=kubeflow
eksctl create cluster --name ${AWS_CLUSTER_NAME} --fargate
curl --silent --location "https://github.com/kubeflow/kubeflow/releases/download/v0.7.0/kfctl_v0.7.0_darwin.tar.gz" | tar xz -C
export PATH=`pwd`:$PATH
export CONFIG_URI=https://raw.githubusercontent.com/kubeflow/manifests/v0.7-branch/kfdef/kfctl_aws.0.7.0.yaml
export KF_NAME=${AWS_CLUSTER_NAME}
export BASE_DIR=`pwd`
@arun-gupta
arun-gupta / readme.adoc
Last active March 22, 2020 12:21
Kubernetes Cluster on AWS
  1. kops: https://github.com/kubernetes/kops

    1. Getting Started Guide: https://github.com/kubernetes/kops/blob/master/docs/aws.md

    2. Installing Kubernetes on AWS with kops: https://kubernetes.io/docs/getting-started-guides/kops/

    3. Mulit-master Kubernetes Cluster on AWS with kops: http://blog.arungupta.me/multimaster-kubernetes-cluster-amazon-kops/

    4. Booting Kubernetes on Amazon Elastic Compute with kops: https://deis.com/docs/workflow/quickstart/provider/aws/boot/

    5. Setting up an HA Kubernetes Cluster in AWS with private topology with kops 1.5.1: https://www.nivenly.com/kops-1-5-1/

    6. Kubernetes on AWS: https://daemonza.github.io/2017/01/15/kubernetes-on-aws/

    7. Your 2nd day with Kubernetes on AWS: https://www.nivenly.com/2nd-hour/

  2. Tectonic (Terraform): http://github.com/coreos/tectonic-installer

@arun-gupta
arun-gupta / readme.adoc
Last active January 15, 2020 03:54
Using Amazon CNI with kops-created Kubernetes cluster

AWS CNI plugin is now merged with kops: kubernetes/kops#3997. This gist explains how to build kops, create a Kubernetes cluster using correct --networking option, and then test it.

Build kops

export GOPATH=`pwd`
mkdir src/k8s.io; cd src/k8s.io
git clone git@github.com:kubernetes/kops.git
cd kops
export S3_BUCKET_NAME=<some bucket you own>

Bellarmine Community Engagement Calendar

Date Event
September 8 Unity Picnic
November 2 Día de Muertos Festival
November 4 to 8 Diversity Week
November 10 Diwali
December 2 to 6 Diversity Week
December 3 Las Posadas
@arun-gupta
arun-gupta / gist:9ac2cea40c302986a8e3
Last active June 17, 2019 12:11
reveal.js test
<section data-background-transition='zoom' data-transition='concave' data-background='http://ryanjarvinen.com/presentations/shared/img/broadcast_reveal_dark.png' data-state='blackout'>
<h2>What's coming</h2>
<h2>in</h2>
<h1>Java EE 8?</h1>
<p class='fragment'><small><a class='fragment' href='http://twitter.com'>@arungupta</a>
<br/> <a class='fragment'>Red Hat</small></p>
</section>
<section data-background-transition='zoom' data-transition='linear'>
<h2>Java EE 8 Community Survey Results</h2>
<img src="https://raw.githubusercontent.com/javaee-samples/javaee8-deck/master/images/javaee8-community-survey-results.png"/>