Skip to content

Instantly share code, notes, and snippets.

View RagedUnicorn's full-sized avatar

Raged Unicorn RagedUnicorn

View GitHub Profile
@RagedUnicorn
RagedUnicorn / kubernetes_ubuntu_installation.md
Last active July 25, 2018 17:08
Install kubernetes on ubuntu

Kubernetes Ubuntu Installation

Init

Update package index

sudo apt-get update

Install required packages

@RagedUnicorn
RagedUnicorn / kubernetes_ubuntu_operate.md
Last active July 25, 2018 17:08
Operate kubernetes on ubuntu

Kubernetes Ubuntu Operate

Init Kubernetes

Initialize Kubernetes with kubeadm

sudo kubeadm init --apiserver-advertise-address=[private-address-of-the-master] --pod-network-cidr=10.244.0.0/16
@RagedUnicorn
RagedUnicorn / ansible_ubuntu_installation.md
Last active July 25, 2018 17:07
Install ansible on ubuntu

Ansible Ubuntu Installation

Update and preinstall required packages

sudo apt-get update
sudo apt-get install software-properties-common

Add Ansible repository and install Ansible

@RagedUnicorn
RagedUnicorn / cloud_init_debugging.md
Last active May 2, 2024 14:38
Debugging tipps when working with cloud-init

Cloud-Init Debugging

Cloud-init combined with terraform can be a powerful tool to provision instances on startup. Debugging scripts that are run by cloud-init however are not the easiest to debug.

Logs

Usually on an Ubuntu machine a lot of what is happening can be found in the syslog

cat /var/log/syslog
@RagedUnicorn
RagedUnicorn / docker_test_build_context.md
Last active July 25, 2018 17:07
Testing the docker build context

Docker Test Build-Context

Checking what is inside the context sent to the docker daemon and whether the configured .dockerignore is behaving as expected can be achieved with the following guide.

Create a dockerfile with the name Dockerfile.build-context

FROM busybox
COPY . /build-context
WORKDIR /build-context
@RagedUnicorn
RagedUnicorn / awscli_macos_installation.md
Last active July 25, 2018 17:08
Install awscli on macOS with homebrew

AWSCLI macOS Installation

brew install awscli

Configure awscli

awscli configure
@RagedUnicorn
RagedUnicorn / aws_device_farm_retrieve_files.md
Last active July 25, 2018 17:04
Aws device farm retrieve logfiles from runs

AWS Device Farm

Make sure to configure aws cli. Currently device farm is only supported in the us-west-2 region. Make sure to configure the aws cli to use this region.

aws configure

List your device farm projects

aws devicefarm list-projects
@RagedUnicorn
RagedUnicorn / realmd.conf.tpl
Last active August 17, 2018 09:42
A config template for tf-aws-wow-vanilla-server
##################################4##########
# MaNGOS realmd configuration file #
############################################
[RealmdConf]
ConfVersion=2010062001
###################################################################################################################
# REALMD SETTINGS
#
@RagedUnicorn
RagedUnicorn / mangosd.conf.tpl
Last active February 8, 2019 17:10
A config template for tf-aws-wow-vanilla-server
#####################################
# MaNGOS Configuration file #
#####################################
[MangosdConf]
ConfVersion=2010100901
###################################################################################################################
# CONNECTIONS AND DIRECTORIES
#
@RagedUnicorn
RagedUnicorn / update_docker_stack_deployment.md
Last active August 17, 2018 09:22
Update a docker stack deployment

Update Docker Stack Deployment

A docker stack deployment can be updated by re-executing the deployment command.

docker stack deploy --compose-file=[docker-compose file] [stack-name]

An example where this could be used is if the image version changed. Simply change the docker-compose configuration to the newest version and then execute the above command.