Skip to content

Instantly share code, notes, and snippets.

View expose-services.sh
export DOMAIN=arrikto.com
export SUBDOMAIN=aws-dev.arrikto.com
cd ~/ops/deployments
ZONES=$(aws route53 list-hosted-zones-by-name --output json --dns-name "${DOMAIN}." | jq -r '.HostedZones[].Id' | wc -l)
export AWS_ZONE_ID=$(aws route53 list-hosted-zones-by-name --output json --dns-name "${DOMAIN}." | jq -r '.HostedZones[].Id' | xargs)
export IAM_ROLE_NAME=eks-external-dns-$CLUSTERNAME
View deploy-eks-nodes.sh
aws eks update-kubeconfig --name $CLUSTERNAME
export INSTANCE_TYPE=m5d.4xlarge
aws eks create-nodegroup \
--cluster-name ${CLUSTERNAME?} \
--nodegroup-name general-workers \
--disk-size 200 \
--scaling-config minSize=1,maxSize=3,desiredSize=2 \
--subnets ${SUBNETIDS?} \
--instance-types ${INSTANCE_TYPE?} \
--ami-type AL2_x86_64 \
View deploy-eks-cluster.sh
alias l="ls -alh"
alias k="kubectl"
mkdir /root/.ssh
aws s3 cp s3://mtanenbaum-rok-tools/ ./ --recursive
ssh-keyscan github.com >> github_key
ssh-keygen -lf github_key
View grabroktools.sh
mkdir rok-tools-data
docker run -ti \
--name rok-tools \
--hostname rok-tools \
-p 8080:8080 \
--entrypoint /bin/bash \
-v $(pwd)/rok-tools-data:/root \
-v /var/run/docker.sock:/var/run/docker.sock \
-w /root \
gcr.io/arrikto/rok-tools:release-1.1-l0-release-1.1-rc5
View azlinux2-docker-install.sh
sudo yum update -y
sudo amazon-linux-extras install docker
sudo service docker start
sudo usermod -a -G docker ec2-user
exit
View k9s-install.sh
gsutil cp gs://mtanenbaum/k9s_Linux_x86_64.tar.gz ./
tar -xvf k9s_Linux_x86_64.tar.gz
./k9s -A
View cstar-demo-statefulset.yaml
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: cassandra
labels:
app: cassandra
spec:
serviceName: cassandra
replicas: 3
@tbaums
tbaums / cstar-demo-setup.yaml
Last active Dec 18, 2020
Cassandra Migration Demo Setup
View cstar-demo-setup.yaml
# This file is part of Rok.
#
# Copyright © 2020 Arrikto Inc. All Rights Reserved.
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: rok-user-cluster-admin
roleRef:
apiGroup: rbac.authorization.k8s.io
View cassandra-airgap-steps.md

The following assumes you are using Minikube and Trow for container registry, installed using the quick install method documented here

Pull the following containers locally (docker pull):

For Kudo:

  1. kudobuilder/controller:v0.9.0

From params.yaml:

  1. mesosphere/cassandra-prometheus-exporter:2.2.1-0.1.1
  2. mesosphere/cassandra:3.11.5-0.1.1
View workflow-controller-configmap.yaml
apiVersion: v1
data:
config: |
{
containerRuntimeExecutor: pns,
executorImage: argoproj/argoexec:v2.3.0,
artifactRepository:
{
s3: {
bucket: mlpipeline,