This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
cat > eks-admin-service-account.yml << EOL | |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: eks-admin | |
namespace: kube-system | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1beta1 | |
kind: ClusterRoleBinding |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
createdb <db name> | |
psql postgres | |
psql <db name> | |
\conninfo | |
You are connected to database "postgres" as user "dallasmarlow" via socket in "/tmp" at port "5432". | |
\du | |
List of roles | |
Role name | Attributes | Member of |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew unlink node | |
brew install node@14 | |
brew link node@14 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=example service_a | |
After=docker.service | |
[Service] | |
TimeoutStartSec=5m | |
User=deamon | |
Restart=always | |
RestartSec=30s | |
ExecStartPre=-/bin/bash -c "exec /usr/bin/docker pull service_a:latest" | |
ExecStartPre=-/usr/bin/docker rm -f service_a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: composers | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
labels: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Name: aws-node-nq4nv | |
Namespace: kube-system | |
Priority: 2000001000 | |
Priority Class Name: system-node-critical | |
Node: ip-10-200-100-26.us-east-2.compute.internal/10.200.100.26 | |
Start Time: Sat, 14 Nov 2020 21:44:17 +0000 | |
Labels: controller-revision-hash=75f66c8f99 | |
k8s-app=aws-node | |
pod-template-generation=2 | |
Annotations: kubernetes.io/psp: eks.privileged |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"log":"{\"level\":\"info\",\"ts\":\"2020-11-14T17:02:36.926Z\",\"caller\":\"entrypoint.sh\",\"msg\":\"Install CNI binary..\"}\n","stream":"stdout","time":"2020-11-14T17:02:36.933272859Z"} | |
{"log":"{\"level\":\"info\",\"ts\":\"2020-11-14T17:02:36.939Z\",\"caller\":\"entrypoint.sh\",\"msg\":\"Starting IPAM daemon in the background ... \"}\n","stream":"stdout","time":"2020-11-14T17:02:36.950371194Z"} | |
{"log":"{\"level\":\"info\",\"ts\":\"2020-11-14T17:02:36.940Z\",\"caller\":\"entrypoint.sh\",\"msg\":\"Checking for IPAM connectivity ... \"}\n","stream":"stdout","time":"2020-11-14T17:02:36.950403253Z"} | |
{"log":"ERROR: logging before flag.Parse: E1114 17:02:37.039736 10 memcache.go:147] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request\n","stream":"stderr","time":"2020-11-14T17:02:37.039912312Z"} | |
{"log":"time=\"2020-11-14T17:02:37Z\" level=error msg=\"failed to initialize service object for operator metrics: OPERATOR_NAME must be set\"\n","stream":"stder |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -ex | |
DATE_FMT="%Y-%m-%dT%H:%M:%SZ" | |
MIN_ASG_INSTANCES=${MIN_ASG_INSTANCES:-0} | |
OUTPUT_KEY=${OUTPUT_KEY:=eks_compute_asg_name} | |
cd projects/eks-compute | |
ASG_NAME=$(terraform output $OUTPUT_KEY) | |
cd - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import boto3 | |
import os.path | |
import re | |
import sys | |
aws_region = 'us-east-2' | |
region_pattern = '^[a-z]+-[a-z]+-[0-9]{1}' | |
s3_bucket = 'periscope-cloudtrail-audit' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bytes" | |
"crypto/tls" | |
"crypto/x509" | |
"flag" | |
"fmt" | |
"io/ioutil" | |
"log" |