Skip to content

Instantly share code, notes, and snippets.

View userbradley's full-sized avatar
:shipit:
kubectl delete ns kube-system

Bradley Jenkins userbradley

:shipit:
kubectl delete ns kube-system
View GitHub Profile
@userbradley
userbradley / yaml
Last active August 9, 2023 11:29
Sleeper
apiVersion: v1
kind: Pod
metadata:
name: sleeper
spec:
containers:
- name: alpine
image: alpine:latest
# Just spin & wait forever
command: [ "/bin/sh", "-c", "--" ]
@userbradley
userbradley / service-attachment.yml
Created October 6, 2022 11:17
service attachment
## deployment.yml
apiVersion: apps/v1
kind: Deployment
metadata:
name: psc-ilb
spec:
replicas: 3
selector:
matchLabels:
app: psc-ilb
@userbradley
userbradley / Terraform VPC Serverless documentation error
Created May 9, 2022 11:14
Terraform VPC Serverless documentation error
│ Error: Error waiting to create Connector: Error waiting for Creating Connector: Error code 3, message: Operation failed: VPC Access did not have permission to resolve the subnet or the provided subnet does not exist.
│ with google_vpc_access_connector.connector,
│ on vpc-connector.tf line 4, in resource "google_vpc_access_connector" "connector":
│ 4: resource "google_vpc_access_connector" "connector" {
@userbradley
userbradley / tags.tf
Created March 16, 2022 18:56
Tags using locals in Terraform
variable "labels" {
description = "Labels to set for all resources"
type = map(string)
default = {}
}
## Locals
locals {
required_labels = {
@userbradley
userbradley / header.md
Created March 15, 2022 15:09
Heder exmaple for github issue

Maintainer


Documentation has been created on best effort so some parts may be missing


@userbradley
userbradley / init.tf
Created March 3, 2022 20:40
Terraform Wasabi backend
terraform {
}
backend "s3" {
endpoint = "https://s3.uk-1.wasabisys.com"
region = "eu-west-1"
bucket = "<bucket-name>"
key = "<path/to/file>/terraform.tfstate"
skip_credentials_validation = true
}
}
@userbradley
userbradley / mariadb in docker
Created January 28, 2022 13:59
mariadb in docker
mariadb:
image: mariadb:latest
restart: always
hostname: "mariadb"
command: "mysqld --init-file /data/application/init.sql"
volumes:
- mariadb-data:/var/lib/mysql
- ./init.sql:/data/application/init.sql
ports:
- '3306:3306'
@userbradley
userbradley / Codefresh Pipeline
Created December 6, 2021 10:59
Codefresh Pipeline
version: "1.0"
stages:
- "setup"
- "mkdocs-build"
- "docker-build"
- "deploy"
steps:
clone:
title: "Cloning repository"
@userbradley
userbradley / mkdocs config
Created November 24, 2021 10:45
mkcods config
site_name: Portfolio
site_dir: /output/
#site_dir: ../docker/test/content/
markdown_extensions:
- admonition
- pymdownx.details
- pymdownx.superfences
- attr_list
- md_in_html
theme:
@userbradley
userbradley / Nginx Alpine
Created November 22, 2021 02:33
Nginx Alpine
nginx:alpine (alpine 3.14.2)
============================
Total: 6 (UNKNOWN: 0, LOW: 0, MEDIUM: 2, HIGH: 2, CRITICAL: 2)
+---------+------------------+----------+-------------------+---------------+---------------------------------------+
| LIBRARY | VULNERABILITY ID | SEVERITY | INSTALLED VERSION | FIXED VERSION | TITLE |
+---------+------------------+----------+-------------------+---------------+---------------------------------------+
| curl | CVE-2021-22945 | CRITICAL | 7.78.0-r0 | 7.79.0-r0 | curl: use-after-free and |
| | | | | | double-free in MQTT sending |
| | | | | | -->avd.aquasec.com/nvd/cve-2021-22945 |