Skip to content

Instantly share code, notes, and snippets.

View arun-gupta's full-sized avatar

Arun Gupta arun-gupta

View GitHub Profile
@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.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`

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 / readme.adoc
Last active March 19, 2019 23:21
Rust Function using Lambda
@arun-gupta
arun-gupta / readme.md
Last active December 6, 2018 19:00
Firecracker 4k
  • Create an i3.metal instance using AL2
  • Install:
sudo yum update -y
sudo yum install -y git python3
git clone https://github.com/firecracker-microvm/firecracker-demo
  • Setup:
@arun-gupta
arun-gupta / readme.md
Last active November 28, 2018 09:10
Kiali on EKS

Kiali on Amazon EKS

Create EKS cluster

  • brew install weaveworks/tap/eksctl or brew upgrade weaveworks/tap/eksctl
  • eksctl create cluster --name myeks --nodes=4

Install Istio 1.0.x

  • curl -LO https://github.com/istio/istio/releases/download/1.0.3/istio-1.0.3-osx.tar.gz
@arun-gupta
arun-gupta / readme.txt
Last active October 25, 2018 22:20
Setup new AL2 machine
sudo yum update
scp -i ~/.ssh/arun-us-east1.pem ec2-user@ec2-35-175-197-116.compute-1.amazonaws.com:/home/ec2-user/
ssh -i ~/.ssh/arun-us-east1.pem ec2-user@ec2-35-175-197-116.compute-1.amazonaws.com
sudo yum install jdk-11.0.1_linux-x64_bin.rpm
sudo yum install -y git
git clone https://github.com/arun-gupta/java-k8s/
sudo wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo
sudo sed -i s/\$releasever/6/g /etc/yum.repos.d/epel-apache-maven.repo
sudo yum install -y apache-maven
cd java-k8s/app
@arun-gupta
arun-gupta / readme.md
Last active December 17, 2018 16:21
Getting Started with HPA on EKS
  • Create an EKS cluster: eksctl create cluster --name myeks --nodes 4 --region us-west-2
  • Install Metrics Server
    kubectl apply -f https://raw.githubusercontent.com/kubernetes-incubator/metrics-server/master/deploy/1.8%2B/auth-delegator.yaml
    kubectl apply -f https://raw.githubusercontent.com/kubernetes-incubator/metrics-server/master/deploy/1.8%2B/auth-reader.yaml
    kubectl apply -f https://raw.githubusercontent.com/kubernetes-incubator/metrics-server/master/deploy/1.8%2B/metrics-apiservice.yaml
    kubectl apply -f https://raw.githubusercontent.com/kubernetes-incubator/metrics-server/master/deploy/1.8%2B/metrics-server-deployment.yaml
    kubectl apply -f https://raw.githubusercontent.com/kubernetes-incubator/metrics-server/master/deploy/1.8%2B/metrics-server-service.yaml
    kubectl apply -f https://raw.githubusercontent.com/kubernetes-incubator/metrics-server/master/deploy/1.8%2B/resource-reader.yaml
    
@arun-gupta
arun-gupta / readme.md
Last active May 2, 2019 06:10
knative + kubernetes + aws

Knative on Kubernetes on AWS

Knative requires Kubernetes 1.10 and Istio 0.8.0 to be installed. It also requires default namespace injection for Istio to be enabled which rules out EKS as a deployment platform. One of Istio pods is failing and so it cannot be installed on a kops-based cluster as well. This is filed as knative/docs#359.

EKS

  • Install eksctl: brew install weaveworks/tap/eksctl
  • Create EKS cluster: eksctl create cluster --name myeks --nodes 4 --region us-west-2
@arun-gupta
arun-gupta / readme.adoc
Last active June 22, 2018 20:50
List of blogs to be done
  1. How to create a k8s cluster in China using kops

  2. Custom metrics in pod with k8s 1.10

  3. Use jlink/jdeps to show how Docker image size can be reduced

  4. Debug Java and Kubernetes apps using IntelliJ

  5. Why kubectl is vended by AWS