Skip to content

Instantly share code, notes, and snippets.

Avatar

Arun Gupta arun-gupta

  • Apple
  • San Jose, CA
View GitHub Profile
@arun-gupta
arun-gupta / 01-steps.md
Last active Jun 10, 2021
Kubernetes and Fargate
View 01-steps.md

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 Jul 19, 2020
KubeFlow on AWS Fargate
View readme.md

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`
View gist:065484ef562cdfb02239982f620514aa

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.md
Last active Dec 6, 2018
Firecracker 4k
View readme.md
  • 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 Nov 28, 2018
Kiali on EKS
View readme.md

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 Oct 25, 2018
Setup new AL2 machine
View readme.txt
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 Dec 17, 2018
Getting Started with HPA on EKS
View readme.md
  • 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
knative + kubernetes + aws
View readme.md

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 https://github.com/knative/docs/issues/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 Jun 22, 2018
List of blogs to be done
View readme.adoc
  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