Skip to content

Instantly share code, notes, and snippets.

@zcapper
zcapper / k0s-rhel8-quickstart.sh
Last active August 2, 2021 04:33
k0s on Red Hat 8 quickstart
# All VMs
sudo dnf -y install @container-tools:3.0
# Master only
curl -sSLf https://get.k0s.sh | sudo sh
sudo ln -s /usr/local/bin/k0s /usr/bin/k0s
sudo curl -Lo /usr/bin/kubectl \
"https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
sudo chmod a+x /usr/bin/kubectl
@zcapper
zcapper / aws-logs-glue.yaml
Last active September 11, 2023 14:59
This is a CloudFormation template that creates AWS Glue tables for your AWS logs so you can easily query your ELB access logs and CloudTrails in AWS Athena
AWSTemplateFormatVersion: 2010-09-09
Parameters:
LoggingBucket:
Description: The name of the S3 bucket that contains your AWS logs
Type: String
Resources:
GlueDatabase:
Type: AWS::Glue::Database
@zcapper
zcapper / canary.yaml
Created July 1, 2020 02:05
AWS Synthetics Canary CloudFormation template
Parameters:
CanaryName:
Type: String
Default: my-canary
MaxLength: 21
Resources:
CloudWatchSyntheticsRole:
Type: AWS::IAM::Role
Properties: