Skip to content

Instantly share code, notes, and snippets.

resource "proxmox_vm_qemu" "k8s_worker_04" {
provider = proxmox.pve00
target_node = "pve-bm-04"
name = "k8s-worker-04"
vmid = 154
clone = "packer-ubuntu2404"
full_clone = true
cores = 3
---
# Complete Kubernetes HA Cluster Setup Playbook
# This playbook sets up a highly available Kubernetes cluster with multiple master nodes
- name: Prepare all nodes
hosts: all
become: yes
vars:
kubernetes_version: "1.28.15-1.1"
pod_network_cidr: "10.244.0.0/16"
#cloud-config
system_info:
default_user:
name: <USERNAME>
plain_text_passwd: "<PASSWORD>"
lock_passwd: false
autoinstall:
version: 1
locale: en_US
keyboard:
#!/bin/bash
# A bash script to update a Cloudflare DNS A record with the external IP of the source machine
# Used to provide DDNS service for my home
# Needs the DNS record pre-creating on Cloudflare
# Proxy - uncomment and provide details if using a proxy
#export https_proxy=http://<proxyuser>:<proxypassword>@<proxyip>:<proxyport>
# Cloudflare zone is the zone which holds the record
docker run -i -t -p 8888:8888 continuumio/anaconda3 /bin/bash -c "/opt/conda/bin/conda install jupyter -y --quiet && mkdir /opt/notebooks && /opt/conda/bin/jupyter notebook --notebook-dir=/opt/notebooks --ip='*' --port=8888 --no-browser --allow-root"
# This is a template .gitignore file for git-managed WordPress projects.
#
# Fact: you don't want WordPress core files, or your server-specific
# configuration files etc., in your project's repository. You just don't.
#
# Solution: stick this file up your repository root (which it assumes is
# also the WordPress root directory) and add exceptions for any plugins,
# themes, and other directories that should be under version control.
#
# See the comments below for more info on how to add exceptions for your
@mkoert
mkoert / CallbackResolver
Created March 18, 2015 19:54
Modified CallbackResolver
<?php
/*
* This file is part of the Silex framework.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
@mkoert
mkoert / ServiceControllerResolver
Created March 18, 2015 19:52
Modified ServiceControllerResolver from Silex
<?php
/*
* This file is part of the Silex framework.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/