Skip to content

Instantly share code, notes, and snippets.

View todd-dsm's full-sized avatar
🏗️
Just trying stuff...

Todd Thomas todd-dsm

🏗️
Just trying stuff...
  • smpl-cloud
  • SoCal
View GitHub Profile
@todd-dsm
todd-dsm / provder.tf
Created April 24, 2024 16:08
AuthN Plumbing to live-build on EKS
/*
AuthN Configuration for EKS
This config solves the issue of pre-configuring cluster credentials before the cluster is built.
*/
### Discover the Cluster Token for AuthN
data "aws_eks_cluster_auth" "cluster_auth" {
name = module.eks.cluster_name
}
apiVersion: apps/v1beta1
kind: Deployment
metadata:
labels:
name: 12F-app
name: 12F-app
namespace: 12F-app-ns
spec:
replicas: 3
template:
@todd-dsm
todd-dsm / one-time-setup.md
Created November 20, 2023 01:02
Prerequisites for building a stable way

one-time-setup-stuff

There are a few, important pregame steps:

1 - Install some required programs first:

  • [homebrew]
  • [awscli]
    • macOS: brew install awscli
  • Ubuntu: sudo apt-get update && sudo apt-get install awscli
@todd-dsm
todd-dsm / terraform.log
Created November 13, 2023 15:24
log file during policy creation
2023-11-12T19:15:43.027-0800 [INFO] Terraform version: 1.6.3
2023-11-12T19:15:43.027-0800 [DEBUG] using github.com/hashicorp/go-tfe v1.36.0
2023-11-12T19:15:43.027-0800 [DEBUG] using github.com/hashicorp/hcl/v2 v2.19.1
2023-11-12T19:15:43.027-0800 [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.1
2023-11-12T19:15:43.027-0800 [DEBUG] using github.com/zclconf/go-cty v1.14.1
2023-11-12T19:15:43.027-0800 [INFO] Go runtime version: go1.21.3
2023-11-12T19:15:43.027-0800 [INFO] CLI args: []string{"/opt/homebrew/Cellar/tfenv/3.0.0/versions/1.6.3/terraform", "fmt", "-recursive=true"}
2023-11-12T19:15:43.027-0800 [DEBUG] Attempting to open CLI config file: /Users/thomas/.terraformrc
2023-11-12T19:15:43.027-0800 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2023-11-12T19:15:43.028-0800 [DEBUG] checking for credentials in "/Users/thomas/.terraform.d/plugins"
@todd-dsm
todd-dsm / pod.yaml
Last active September 6, 2023 21:43
run a container that accepts commands and arguments
# This is an initContainer:
# REF: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
# It is configured in a pod like any other container, except that it is
# specified inside its own "initContainers" section.
apiVersion: v1
kind: Pod
metadata:
name: myapp-pod
labels:
app: myapp
@todd-dsm
todd-dsm / empty_schema.json
Created July 11, 2023 18:42
This is a file to help with disabling the RKE Cluster Config YAML Schema in VS-Code: Red Hat Yaml Extension
{}
@todd-dsm
todd-dsm / install-google-cloud-sdk.sh
Last active May 17, 2023 15:50
Install Google Cloud SDK
# Homebrew
brew install --cask google-cloud-sdk
@todd-dsm
todd-dsm / kubes-getting-started.md
Created April 19, 2023 16:29
Tools to take the first few steps with Kubernetes

Required Kubernetes Programs

First, install some required programs:

  • [homebrew] - always install Homebrew first!
  • [keybase] - used to cryptographically validate the Terraform package
    • macOS: brew install --cask keybase
    • Install it, open it and configure it.
    • Leave keybase running during the Terraform install
  • [Terraform]
@todd-dsm
todd-dsm / tf-debug.log
Created October 20, 2022 17:45
plan fail for hub fleet registration; google_gke_hub_membership does not respect the depends_on argument
2022-10-20T10:43:33.356-0700 [INFO] Terraform version: 1.3.2
2022-10-20T10:43:33.356-0700 [DEBUG] using github.com/hashicorp/go-tfe v1.9.0
2022-10-20T10:43:33.356-0700 [DEBUG] using github.com/hashicorp/hcl/v2 v2.14.1
2022-10-20T10:43:33.356-0700 [DEBUG] using github.com/hashicorp/terraform-config-inspect v0.0.0-20210209133302-4fd17a0faac2
2022-10-20T10:43:33.356-0700 [DEBUG] using github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734
2022-10-20T10:43:33.356-0700 [DEBUG] using github.com/zclconf/go-cty v1.11.0
2022-10-20T10:43:33.356-0700 [INFO] Go runtime version: go1.19.1
2022-10-20T10:43:33.356-0700 [INFO] CLI args: []string{"/opt/homebrew/Cellar/tfenv/3.0.0/versions/1.3.2/terraform", "fmt", "-recursive=true"}
2022-10-20T10:43:33.356-0700 [DEBUG] Attempting to open CLI config file: /Users/thomas/.terraformrc
2022-10-20T10:43:33.356-0700 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
@todd-dsm
todd-dsm / environment.zsh
Last active September 27, 2022 23:54
example oh my zsh completion configurations
# file/path: ~/.oh-my-zsh/custom/environment.zsh
# -------------------------------------|------------------------------------- #
# SHELL #
# --------------------------------------------------------------------------- #
alias hist='history | cut -c 8-'
# --------------------------------------------------------------------------- #
# Rust #
# --------------------------------------------------------------------------- #
#source "$HOME/.cargo/env"