Skip to content

Instantly share code, notes, and snippets.

View labrown's full-sized avatar

Lance A. Brown labrown

View GitHub Profile

Running Microk8s cluster locally on Windows 10

This is a work in progress and will be expanded and improved as I have time.

Sources

I started with the MicroK8s documentation at https://ubuntu.com/tutorials/install-a-local-kubernetes-with-microk8s#1-overview. I didn't choose the multipass route because I like yak-shaving my VMs manually and wanted to get as much understanding of what's going on as possible.

This PDF helped me set up Hyper-V on my windows desktop. My rig is:

Keybase proof

I hereby claim:

  • I am labrown on github.
  • I am labrown (https://keybase.io/labrown) on keybase.
  • I have a public key ASCWrWtz7brzcYGC1dbT6rVSz4wXeZwFsfMyXjB04rhgBgo

To claim this, I am signing this object:

@labrown
labrown / sysprep-and-seal.ps1
Created October 21, 2015 19:17 — forked from joefitzgerald/sysprep-and-seal.ps1
Sysprep And Remove Vagrant User
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" -Name "SysprepAndSeal" -ErrorAction SilentlyContinue
$ObjUser = [ADSI]"WinNT://localhost/vagrant";
$ObjUser.userflags = 2;
$ObjUser.setinfo();
C:\Windows\System32\sysprep\sysprep.exe /generalize /oobe /quiet /shutdown
@labrown
labrown / Vagrantfile
Created October 21, 2015 19:16 — forked from joefitzgerald/Vagrantfile
Windows Vagrantfile - Installs .NET 4.5, VS 2012, VS 2012 Update 3, then a bunch of utilities, then syspreps the machine. Get https://github.com/joefitzgerald/packer-windows for the base box and add it with the name "windows2008r2".
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.define "vagrant-windows"
config.vm.box = "windows2008r2"
# You should be using the vagrant-windows Vagrant Plugin!
# Admin user name and password
config.winrm.username = "Administrator"
@labrown
labrown / elasticsearch-handlers-main.yml
Last active September 22, 2023 12:11
Ansible rolling restart of Elasticsearch Cluster
---
###
# Elasticsearch Rolling restart using Ansible
###
##
## Why is this needed?
##
#
# Even if you use a serial setting to limit the number of nodes processed at one
@labrown
labrown / gist:7358171
Created November 7, 2013 17:11
FIltered query by date range
{
"fields": [],
"query": {
"filtered": {
"query": {
"match_all": {}
},
"filter": {
"and": [
{
Name: logstash
Version: 1.1.0
Release: 1%{?dist}
Summary: logstash is a tool for managing events and logs
Group: System/Logging
License: ASL 2.0
URL: http://logstash.net/
Source0: http://semicomplete.com/files/logstash/logstash-%{version}-monolithic.jar
Source1: logstash