Skip to content

Instantly share code, notes, and snippets.

@rsmitty
rsmitty / gist:64a448a0595bcb790ed9
Created July 16, 2015 16:58
rancheros-install error
[rancher@rancher ~]$ sudo rancheros-install -c cloud-config.yml -d /dev/sda
No install type specified...defaulting to generic
All data will be wiped from this device
Partition: true
DEVICE: /dev/sda
Are you sure you want to continue? [yN]y+ DEVICE=/dev/sda
+ [[ -z /dev/sda ]]
++ wc -l
+++ cut -d / -f3
+++ echo /dev/sda
{
"builders": [
{
"type": "openstack",
"username": "admin",
"password": "testpass",
"provider": "http://192.168.1.200:5000/v2.0",
"ssh_username": "ubuntu",
"project": "admin",
"region": "RegionOne",
@rsmitty
rsmitty / kube.md
Last active November 1, 2015 03:43
Workaround for Local Kubernetes Cluster (OS X)

##Install Kubernetes CLI Tools

  • Available via homebrew:
brew install kubernetes-cli

##Install Docker and Docker Machine locally

  • Easiest way to do this is with Docker Toolbox.
  • Link is here: https://www.docker.com/toolbox
  • Standard install should work fine and will detect and upgrade components if necessary (even virtualbox).
@rsmitty
rsmitty / docker-compose.yml
Last active July 8, 2018 22:10
Setup Home Media
version: '2'
services:
plex:
network_mode: host
restart: always
image: plexinc/pms-docker
volumes:
- /home/rsmitty/plex-config:/config
- /mnt/external-disk:/data
environment:

Rolling Updates

Here's how a rolling update works:

  • A Deployment specification is created (YAML file), where labels are specified for Pods that will be created. In this example assume app:nginx, tier:frontend, version:1.0.

  • A strategy of RollingUpdate is also specified

  • The Deployment is created with kubectl create -f deployment.yaml

@rsmitty
rsmitty / gcrsearch.md
Last active September 1, 2016 17:35
GCR Tag Search

#####Add this to end of ~/.bash_profile:

gcrsearch() { curl -s "$1/tags/list" | jq '.manifest[].tag[]' | sort; }
alias gcrtags=gcrsearch

#####After opening a new term, use like:

@rsmitty
rsmitty / cluster-api-provider log
Last active May 7, 2019 16:43
Cluster API Provider Multi-machine actuator issue
$ kubectl logs -f -n cluster-api-provider-talos-system cluster-api-provider-talos-controller-manager-0
{"level":"info","ts":1557246922.364505,"logger":"talos-controller-manager.entrypoint","msg":"Adding machine actuator:","provisioner":{"Provisioner":{},"Clientset":{"LegacyPrefix":"/api"}}}
{"level":"info","ts":1557246922.3647182,"logger":"kubebuilder.controller","msg":"Starting EventSource","controller":"machine-controller","source":"kind source: /, Kind="}
{"level":"info","ts":1557246922.365611,"logger":"talos-controller-manager.entrypoint","msg":"Adding machine actuator:","provisioner":{"Provisioner":{},"Clientset":{"LegacyPrefix":"/api"}}}
{"level":"info","ts":1557246922.3657587,"logger":"kubebuilder.controller","msg":"Starting EventSource","controller":"machine-controller","source":"kind source: /, Kind="}
{"level":"info","ts":1557246922.365843,"logger":"kubebuilder.controller","msg":"Starting EventSource","controller":"cluster-controller","source":"kind source: /, Kind="}
{"level":"info","ts":1557246922
I AML tables successfully acquired and loaded
[ 1.059958] ACPI: Interpreter enabled
[ 1.060017] ACPI: (supports S0 S3 S5)
[ 1.061001] ACPI: Using IOAPIC for interrupt routing
[ 1.062070] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
---
kind: pipeline
name: default
steps:
- name: basic-integration
image: autonomy/build-container:latest
pull: always
commands:
- echo "this one always runs"
---
# Source: cilium/charts/config/templates/configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: cilium-config
namespace: kube-system
data:
# Identity allocation mode selects how identities are shared between cilium