Skip to content

Instantly share code, notes, and snippets.

View riweston's full-sized avatar

Richard Weston riweston

  • Cloudreach
  • London
View GitHub Profile

Notes for Demo

- name: kubeedge
  tags:
    - Edge
    - Kubernetes
    - Go
    - Container
    - Docker
    - Containerd
    - CRI-O
https://reddit.com/r/ansible
https://reddit.com/r/aws
https://reddit.com/r/AZURE
https://reddit.com/r/AzureCertification
https://reddit.com/r/bashonubuntuonwindows
https://reddit.com/r/chrome
https://reddit.com/r/Cloud
https://reddit.com/r/cloudcomputing
https://reddit.com/r/commandline
https://reddit.com/r/coolgithubprojects
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Richard Weston",
"label": "Senior Cloud Systems Developer Lead at Cloudreach",
"picture": "https://github.com/riweston.png",
"email": "cv@riweston.io",
"summary": "☁️ Senior Team Lead in the Cloud consultancy space, hard at work to enable my customers and colleagues achieve their potential.",
"location": {
"city": "London",
@riweston
riweston / 00.setup.md
Last active October 24, 2022 09:57
ckad-notes

Exam Setup

Config

shell

  • mkdir {1..30} make lots of folders for the questions

bash

@riweston
riweston / state.md
Last active September 14, 2021 16:43
Terraform

State

Imports

jq

Snippet to output module objects and resource IDs

.resources[] | select(.module != null) | .module + "." + .type + "." + .name + " " + .instances[].attributes.id
@riweston
riweston / FrontDoor.md
Last active September 14, 2021 13:40
Azure Log Analytics snippets

Verify WAF is blocking traffic

AzureDiagnostics
| where ResourceType == "FRONTDOORS" and Category == "FrontdoorWebApplicationFirewallLog"
| where action_s == "Block"
resource "random_shuffle" "this" {
input = ["us-west-1a", "us-west-1c", "us-west-1d", "us-west-1e"]
result_count = 1
}
resource "random_password" "this" {
length = 16
special = true
}
# Create a namespace for your ingress resources
kubectl create namespace ingress-nginx
# Use Helm to deploy an NGINX ingress controller
helm install nginx-ingress ingress-nginx/ingress-nginx \
--namespace ingress-nginx \
--set controller.replicaCount=2 \
--set controller.nodeSelector."beta\.kubernetes\.io/os"=linux \
--set defaultBackend.nodeSelector."beta\.kubernetes\.io/os"=linux

Keybase proof

I hereby claim:

  • I am riweston on github.
  • I am riweston (https://keybase.io/riweston) on keybase.
  • I have a public key whose fingerprint is A020 8C23 4A8C 74A1 339E 1FDC 969B C892 278F 8090

To claim this, I am signing this object: