Skip to content

Instantly share code, notes, and snippets.

View danfedick's full-sized avatar

Dan Fedick danfedick

View GitHub Profile
kubectl patch psp system-unrestricted-psp -p '{"metadata": {"annotations":{"seccomp.security.alpha.kubernetes.io/allowedProfileNames": "*"}}}'
kubectl patch psp global-unrestricted-psp -p '{"metadata": {"annotations":{"seccomp.security.alpha.kubernetes.io/allowedProfileNames": "*"}}}'
kubectl patch psp global-restricted-psp -p '{"metadata": {"annotations":{"seccomp.security.alpha.kubernetes.io/allowedProfileNames": "*"}}}'
@danfedick
danfedick / get_terraform.sh
Created July 6, 2023 14:56
Get Terraform version
#!/bin/bash
#
# Name: get_terraform.sh
# Purpose: Getting specified version of Terraform
# Usage: get_terraform <version>
#
#############################
#set -x
@danfedick
danfedick / get_varset
Created June 29, 2023 15:09
Get varset
#!/bin/bash
#
# Name: get_varset
# Usage: /usr/local/bin/get_varsets <org> <varset-name>
#
#
####################
# set -x # Uncomment to Debug
# Variables #
@danfedick
danfedick / vault-service.md
Created March 30, 2023 15:27
Vault Service Script

Create the startup script file in the /etc/systemd/system/ directory.

For example, name it vault.service.

sudo nano /etc/systemd/system/vault.service

Paste the following script into the file:

#!/bin/bash
#
# Author: Dan Fedick
# Set Lights:
#
#
####################################
#set -x # Uncomment to Debug
HUSER="xxxxxxxxx"
@danfedick
danfedick / ubuntu-packer.hcl
Created March 9, 2023 18:58
packer image - ubuntu
packer {
required_plugins {
amazon = {
version = ">= 1.0.1"
source = "github.com/hashicorp/amazon"
}
}
}
variable "version" {
---
name: Ubuntu 20.04 AMI Build
on:
push:
jobs:
packer:
runs-on: ubuntu-latest
@danfedick
danfedick / Doormat_Functions.md
Last active February 18, 2023 02:36
Doormat Login
title tags
Doormat Functions
doormat function login push terraform aws

Reference:

@danfedick
danfedick / vaules-sandbox.yaml
Last active February 6, 2023 19:45
Values-sandbox.yaml
env: sandbox
domain: xxx
clusterName: xxx
namespace: aes-sandbox
aes-web:
name: aes-web
fullnameOverride: aes-web
env: sandbox
namespace: aes-sandbox
@danfedick
danfedick / consul_ports.md
Last active January 23, 2023 15:30
Consul Ports

Consul Ports:

Name Port TCP/UDP Description
allow_server_rpc_inbound 8300 TCP The TCP port used by servers to handle incoming requests from other agents
allow_serf_lan_tcp_inbound 8301 TCP The TCP port used to handle gossip in the LAN. Required by all agents.
allow_serf_lan_udp_inbound 8301 UDP The UDP port used to handle gossip in the LAN. Required by all agents.
allow_cli_rpc_inbound 8400 TCP The TCP port used by all agents to handle RPC from the CLI
allow_serf_wan_tcp_inbound 8302 TCP The TCP port used by servers to gossip over the WAN to other servers
allow_serf_wan_udp_inbound 8302 UDP The UDP port used by servers to gossip over the WAN to other servers