Skip to content

Instantly share code, notes, and snippets.

Avatar

Carlos Nunez carlosonunez

View GitHub Profile
@carlosonunez
carlosonunez / log.txt
Created May 19, 2023 16:25
minikube + qemu2 + !kindnet issue
View log.txt
*
* ==> Audit <==
* |---------|-------------------------------------------------------|----------|------|---------|---------------------|---------------------|
| Command | Args | Profile | User | Version | Start Time | End Time |
|---------|-------------------------------------------------------|----------|------|---------|---------------------|---------------------|
| start | --cni=calico | minikube | cn | v1.30.1 | 18 May 23 18:37 CDT | 18 May 23 18:38 CDT |
| delete | | minikube | cn | v1.30.1 | 18 May 23 18:39 CDT | 18 May 23 18:39 CDT |
| start | --cni=calico | minikube | cn | v1.30.1 | 18 May 23 18:39 CDT | 18 May 23 18:39 CDT |
| start | --cni=/tmp/antrea.yaml | minikube | cn | v1.30.1 | 18 May 23 18:40 CDT | |
| delete |
@carlosonunez
carlosonunez / AssumeRolePolicy.json
Created March 7, 2023 13:27
Use this JSON to create the AssumeRolePolicy IAM policy used within "Kubernetes: Your First Project".
View AssumeRolePolicy.json
{
"Version": "2012-10-17",
"Statement": [{
"Effect": "Allow",
"Action": ["sts:AssumeRole"],
"Resource": "*"
}]
}
@carlosonunez
carlosonunez / 0.10.0-kubelet-logs
Created March 25, 2022 04:13
logs from kubelet in kind cluster for TCE v0.10.0
View 0.10.0-kubelet-logs
This file has been truncated, but you can view the full file.
-- Logs begin at Fri 2022-03-25 04:01:58 UTC, end at Fri 2022-03-25 04:11:11 UTC. --
Mar 25 04:01:58 test-control-plane systemd[1]: Started kubelet: The Kubernetes Node Agent.
Mar 25 04:01:58 test-control-plane kubelet[126]: Flag --fail-swap-on has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Mar 25 04:01:58 test-control-plane kubelet[126]: E0325 04:01:58.628965 126 server.go:204] "Failed to load kubelet config file" err="failed to load Kubelet config file /var/lib/kubelet/config.yaml, error failed to read kubelet config file \"/var/lib/kubelet/config.yaml\", error: open /var/lib/kubelet/config.yaml: no such file or directory" path="/var/lib/kubelet/config.yaml"
Mar 25 04:01:58 test-control-plane systemd[1]: kubelet.service: Main process exited, code=exited, status=1/FAILURE
Mar 25 04:01:58 test-control-plane system
View gist:c2dd48ae33e7ac38ba066cffba790c28
arch: default
images:
- location: "~/Downloads/impish-server-cloudimg-amd64.img"
arch: "x86_64"
- location: "~/Downloads/impish-server-cloudimg-arm64.img"
arch: "aarch64"
- location: https://github.com/lima-vm/alpine-lima/releases/download/v0.2.3/alpine-lima-rd-3.14.3-aarch64.iso
arch: "aarch64"
digest: "sha512:277d2140f9c8adb2d1777103c6ce69cc079375d66944f8745d6f786216e3a7b197e813384a6c113b3fdf78e4f65bb129b997f358819daa2a3af113b1caab0dba"
- location: https://github.com/lima-vm/alpine-lima/releases/download/v0.2.3/alpine-lima-rd-3.14.3-x86_64.iso
@carlosonunez
carlosonunez / homebridge_docker_compose.yml
Last active September 12, 2023 15:28
HomeBridge Docker Compose
View homebridge_docker_compose.yml
version: '2'
services:
homebridge:
image: homebridge/homebridge
container_name: homebridge
restart: always
network_mode: host
environment:
- TZ=America/Chicago
- PGID=1000
@carlosonunez
carlosonunez / docker-compose.pihole.yml
Created September 1, 2021 06:27
pi_hole_no_admin_password
View docker-compose.pihole.yml
version: "3"
# https://github.com/pi-hole/docker-pi-hole/blob/master/README.md
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
# For DHCP it is recommended to remove these ports and instead add: network_mode: "host"
ports:
@carlosonunez
carlosonunez / combating_misinformation_and_fake_news.md
Last active August 27, 2021 18:35
Combating Misinformation and Fake News
View combating_misinformation_and_fake_news.md

originally from Reddit; source

So much of the misinformation that gets spread stems from online sources like Facebook and Twitter. Usually, the root of the data that produced the misinformation stems from a website.

Here are some cool tips to help you know what's probably real and what's probably not while you're surfin' the World Wide Web.

FactCheck.org is your friend

FactCheck.org is an unbiased (to my knowledge) place to check the facts. They even cover viral tweets and Instagram posts, like this one. It's an amazing resource in helping combat misinformation.

@carlosonunez
carlosonunez / use_velero_with_kind.md
Created March 4, 2021 21:42
Use Velero with Kind without Minio
View use_velero_with_kind.md

This quick Gist will show you how to get Velero up and running with Kind without using Minio. You might find this useful if you need a quick instance of Velero for testing or are just getting started with the tool but do not have access to AWS, Azure, or GCP.

Prereqs

  • Docker
  • Helm
  • Velero (brew install velero, choco install velero, or build from source)
@carlosonunez
carlosonunez / auto_sudo_via_watch_and_tid.sh
Last active March 2, 2021 22:00
Enable support for sudo via Apple Watch and Touch ID
View auto_sudo_via_watch_and_tid.sh
APPLE_WATCH_PAMID_LIBPATH=/usr/local/lib/pam/pam_watchid.so.2
APPLE_WATCH_PAMID_URL=https://github.com/biscuitehh/pam-watchid
APPLE_WATCH_PAMID_PATH=$HOME/src/pamid-applewatch
enable_sudo_with_apple_watch_and_touch_id() {
trap 'popd' EXIT INT HUP
enable_apple_watch() {
if ! test -f $APPLE_WATCH_PAMID_LIBPATH
then
if ! test -d $APPLE_WATCH_PAMID_PATH
@carlosonunez
carlosonunez / example_tkg_bom.json
Created December 31, 2020 13:56
An example TKG BOM from TKG v1.2.1
View example_tkg_bom.json
{
"release": {
"version": "1.2.1"
},
"components": {
"alertmanager": {
"version": "v0.20.0+vmware.1"
},
"antrea": {
"version": "v0.9.3+vmware.1"