SREDevOps.org - Site Reliability Engineering, DevOps, Cloud Native, Linux, Ethical Hacking, AI, ML, Open Source, Platform Engineering en Español, Portugués (Brasil) and English
[ and English
[" ; pwd -P ) | |
| KIND="${KIND:=kind}" | |
| KUBECT="${KUBECTL:=kubectl --context kind-rig}" | |
| HELM="${HELM:=helm --kube-context kind-rig}" | |
| # Create kind cluster |
| ## MASTER NODE: | |
| ```sh | |
| microk8s.add-node --token-ttl 3600 --format yaml --token $(openssl rand -hex 32) | |
| ``` | |
| ## WORKER NODE | |
| Using the previous output: |
| apiVersion: actions.summerwind.dev/v1alpha1 | |
| kind: RunnerDeployment | |
| metadata: | |
| name: runner-deployment | |
| spec: | |
| template: | |
| spec: | |
| repository: tuladhar/self-hosted-runner | |
| --- | |
| apiVersion: actions.summerwind.dev/v1alpha1 |
| 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:
To claim this, I am signing this object:
| #!/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"' - {} |