Brayton Stafford

Brayton Stafford

15 posts
RSS
Nov 19, 2018

SmartThings are Groovy

SmartThings are Groovy

One of the initial features I wanted was some way for the home and I to communicate. The Google Home seemed to allow bi-directional communication in the sense that I could speak commands and it could be a speaker to broadcast notifications or report other home metrics or SIRENS.

Sep 27, 2018

Customizing the AWS EKS Cluster Worker Node Group Template

Customizing the AWS EKS Cluster Worker Node Group Template

I realized the cluster was using the maximum number of worker nodes (NodeAutoScalingGroupMaxSize) specified in the CloudFormation template. After contacting support they informed me there is a setting in the template to control the desired capacity (DesiredCapacity).

Sep 27, 2018

Useful MongoDB Commands

Useful MongoDB Commands

I had the hardest time finding examples of how to connect to MongoDB via the command line and via a connection string in code. So I've compiled some helpful MongoDB commands here. For creating a database, creating a user, and connecting to the database.

Aug 15, 2018

Using react-select with redux-form

Using react-select with redux-form

While building an app for work I ran into a scenario that required a drop down box that is searchable and since we are using reactjs with material-ui, redux, and redux-form I have

Jun 1, 2018

Creating a new Kubectl config context

Creating a new Kubectl config context

In a previous post I discussed how to view and change the configuration context that kubectl is currently using. In this post I'll be going over how to create two new context configurations

Feb 22, 2018

AWS RDS SSL import inside Dockerfile

AWS RDS SSL import inside Dockerfile

TLDR; Here is my Dockerfile FROM openjdk:8-jdk MAINTAINER Brayton # create a temp dir in which to work RUN OLDDIR="$PWD" RUN mkdir /tmp/rds-ca && cd /tmp/rds-ca # download

Feb 16, 2018

Changing Kubernetes kubectl Environments

Changing Kubernetes kubectl Environments

Recently, I setup a new Kubernetes environment and ran into the scenario of needing to switch between multiple kubernetes (k8s) environments. To manage a k8s environment you must use the kubectl command and