Community for SRE, DevOps, Cloud Native, GNU/Linux, and more. 🌎
This file contains 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 -e | |
parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P ) | |
KIND="${KIND:=kind}" | |
KUBECT="${KUBECTL:=kubectl --context kind-rig}" | |
HELM="${HELM:=helm --kube-context kind-rig}" | |
# Create kind cluster |
This file contains 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
## MASTER NODE: | |
```sh | |
microk8s.add-node --token-ttl 3600 --format yaml --token $(openssl rand -hex 32) | |
``` | |
## WORKER NODE | |
Using the previous output: |
This file contains 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: actions.summerwind.dev/v1alpha1 | |
kind: RunnerDeployment | |
metadata: | |
name: runner-deployment | |
spec: | |
template: | |
spec: | |
repository: tuladhar/self-hosted-runner | |
--- | |
apiVersion: actions.summerwind.dev/v1alpha1 |
This file contains 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
Just follow the standard method with apple configurator, but using the previous release for the OS, in this case I've used: | |
current bricked: | |
UniversalMac_12.6_21G115_Restore.ipsw | |
current fix: | |
UniversalMac_12.5.1_21G83_Restore.ipsw | |
Helper setup to edit .yaml files with Vim:
List of general purpose commands for Kubernetes management:
This blog has all the instructions, I've made some minor changes within SMB configuration in order to fit my specific needs and security reasons.
Source: https://ovechkin.xyz/blog/2021-12-13-using-raspberry-pi-for-time-machine
I hereby claim:
- I am ngeorger on github.
- I am nicogeorger (https://keybase.io/nicogeorger) on keybase.
- I have a public key ASDDhX1lJWXwleviEXsJzUG6dqwgJdzGeNP_A19zJZSspQo
To claim this, I am signing this object:
This file contains 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/bash | |
# This script is based on this one https://kevinsimper.medium.com/how-to-dump-all-kubernetes-secrets-to-yaml-files-b5afcf2d1f56 | |
# But also it reads every namespace in your current default context and dumps it's secrets as a file named as the namespace and yml extension | |
# Tested on non-productive environments. | |
kubectl get namespaces | awk '{print $1}' | xargs -I{} sh -c 'kubectl get secrets -o yaml -n "$1" --no-headers >> "$1.yaml"' - {} |