Skip to content

Instantly share code, notes, and snippets.

@kjenney
kjenney / coffee.yml
Created July 18, 2018 20:28
EKS Test service and deploy
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: coffee
namespace: ingress-nginx
spec:
replicas: 2
selector:
matchLabels:
app: coffee
@kjenney
kjenney / rbac.yml
Created July 18, 2018 20:23
Kubernetes EKS RBAC
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: ingress-nginx
namespace: ingress-nginx
rules:
- apiGroups:
- ""
resources:
- services
@kjenney
kjenney / eks.yml
Created July 18, 2018 20:13
CloudFormation EKS
# kubernetes
#
#
# author: kjenney
# Deploys an EKS cluster with required role and security group
AWSTemplateFormatVersion: 2010-09-09
Description: Deploys an EKS cluster with required role and security group
Parameters:
security find-generic-password -D "AirPort network password" -a MySSID -g
@kjenney
kjenney / gist:c4537596c0eb3ca0d88419405d3cf40a
Last active June 5, 2016 21:29
EC2 Create Instance and Resize Filesystem
#!/bin/bash
# Tester script to create an EC2 instance and resize the filesystem
function resizeit {
echo "--------------------- RESIZING ---------------------"
echo
echo -e "\tPowering down the instance - $awsinstanceid"
ec2-stop-instances $awsinstanceid > /dev/null 2>&1
aws ec2 wait instance-stopped --instance-id $awsinstanceid