Skip to content

Instantly share code, notes, and snippets.

@stevenfeltner
stevenfeltner / Ocean_Policy.json
Created November 3, 2022 15:26
Ocean Restricted Palo Alto
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"ec2:StopInstances",
"ec2:StartInstances",
"ec2:TerminateInstances",
"ec2:DeleteTags",
"ec2:UnassignPrivateIpAddresses",
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "ec2withRestrictions",
"Effect": "Allow",
"Action": [
"ec2:AttachVolume",
"ec2:DeleteTags",
"ec2:RebootInstances",
@stevenfeltner
stevenfeltner / verizon-ocean-policy
Created March 1, 2022 02:41
Verizon Ocean Policy
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "EC2WithRestrictions",
"Action": [
"ec2:StopInstances",
"ec2:StartInstances",
"ec2:TerminateInstances",
"ec2:DeleteTags",
@stevenfeltner
stevenfeltner / readme.md
Last active September 24, 2021 17:33
Spot.io Account Connect CLI

Readme

The following CLI script can be used to do the following:

  • Create new Account within Spot.io Platform
  • Delete a Spot Account within Spot.io Platform
  • Retrieve and generate an External ID for an AWS connection
  • Set the cloud credentials (ARN) for an AWS linked account to the Spot.io Account
  • Get the Spot Account ID

Pre-req

Make sure to install the packages from requirements.txt

@stevenfeltner
stevenfeltner / main.tf
Created August 26, 2021 09:00
Terraform - Spot Ocean GKE example
## Create Ocean Cluster and deploy controller pod
module "ocean_gke" {
source = "./ocean_gke"
# Spot Credentials
spot_token = "Redacted"
spot_account = "Redacted"
project = "spotinst-labs"
# GKE information
@stevenfeltner
stevenfeltner / README.md
Last active September 20, 2023 18:52
Spot.io Log Query Service

spot-log query service

Install this next to your spot-controller to print logs from the Spot.io Ocean. This service simply spits out logs to stdout in JSON format. Then your log aggregation service can use the container logs and publish them to your own logging platform.

Install

kubectl apply -f spot-logs.yaml --namespace kube-system
@stevenfeltner
stevenfeltner / eks-workshop-medium-od.yaml
Created November 18, 2020 19:23
eks-workshop-medium-on-demand-deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: eks-workshop-medium-od
labels:
app: nginx
namespace: default
spec:
replicas: 3
selector:
@stevenfeltner
stevenfeltner / eks-workshop-large.yaml
Last active November 18, 2020 19:21
eks-workshop-large-deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: eks-workshop-large
labels:
app: nginx
namespace: default
spec:
replicas: 3
selector:
@stevenfeltner
stevenfeltner / eks-workshop-medium.yaml
Created November 18, 2020 19:19
eks-workshop-medium-deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: eks-workshop-medium
labels:
app: nginx
namespace: default
spec:
replicas: 3
selector:
@stevenfeltner
stevenfeltner / eks-workshop-small.yaml
Last active November 18, 2020 19:20
eks-workshop-small-deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: eks-workshop-small
labels:
app: nginx
namespace: default
spec:
replicas: 3
selector: