Skip to content

Instantly share code, notes, and snippets.

View tuminoid's full-sized avatar

Tuomo Tanskanen tuminoid

View GitHub Profile
@tuminoid
tuminoid / static-web.yaml
Created January 23, 2019 13:33
pretty typical nginx container yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: static-web
labels:
app: core
group: frontend
type: scalable
spec:
replicas: 50
@tuminoid
tuminoid / k8s_scheduler_pending_issue.txt
Created January 23, 2019 13:25
Scheduler fails to schedule pods that share hostpath backed pvc in a single node cluster
$ kubectl get pods -owide
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE
audit-699596cd5f-qc8ps 0/1 Pending 0 6m39s <none> <none> <none>
consul-7bfbdfd5-qjmhr 0/1 Pending 0 6m39s <none> <none> <none>
logger-7d44d67647-v7dwg 0/1 Pending 0 6m39s <none> <none> <none>
postgres-647d8f555c-gqg6d 0/1 Pending 0 6m38s <none> <none> <none>
static-web-9dcb56dbb-42t5k 0/1 Pending 0 6m37s <none> <none> <none>
static-web-9dcb56dbb-45bnb 0/1 Pending 0 6m38s <none> <none> <none>
static-web-9dcb56dbb-45hn8 0/1 Pending 0 6m38s <none> <none> <none>
static-web-9dcb56dbb-47qbd 0/1 Pending 0 6m37s <none> <none> <none>
# HELP etcd_debugging_mvcc_db_compaction_pause_duration_milliseconds Bucketed histogram of db compaction pause duration.
# TYPE etcd_debugging_mvcc_db_compaction_pause_duration_milliseconds histogram
etcd_debugging_mvcc_db_compaction_pause_duration_milliseconds_bucket{le="1"} 0
etcd_debugging_mvcc_db_compaction_pause_duration_milliseconds_bucket{le="2"} 0
etcd_debugging_mvcc_db_compaction_pause_duration_milliseconds_bucket{le="4"} 0
etcd_debugging_mvcc_db_compaction_pause_duration_milliseconds_bucket{le="8"} 0
etcd_debugging_mvcc_db_compaction_pause_duration_milliseconds_bucket{le="16"} 0
etcd_debugging_mvcc_db_compaction_pause_duration_milliseconds_bucket{le="32"} 0
etcd_debugging_mvcc_db_compaction_pause_duration_milliseconds_bucket{le="64"} 0
etcd_debugging_mvcc_db_compaction_pause_duration_milliseconds_bucket{le="128"} 0
@tuminoid
tuminoid / vagrant_debug.txt
Created April 12, 2018 05:25
Vagrant rsync failure
This file has been truncated, but you can view the full file.
INFO global: Vagrant version: 2.0.3
INFO global: Ruby version: 2.4.3
INFO global: RubyGems version: 2.6.14
INFO global: VAGRANT_DEFAULT_PROVIDER="virtualbox"
INFO global: VAGRANT_LOG="debug"
INFO global: VAGRANT_DEBUG="1"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/2.0.3/gems/vagrant-2.0.3/bin/vagrant"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/embedded"
@tuminoid
tuminoid / gist:137f1b4431e89fb36fd3
Created January 19, 2015 08:06
vagrant-lxc with centos hangs
$ VAGRANT_LOG=debug vagrant up
INFO global: Vagrant version: 1.7.2
INFO global: Ruby version: 2.0.0
INFO global: RubyGems version: 2.0.14
INFO global: VAGRANT_DEFAULT_PROVIDER="lxc"
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/bin/../embedded/gems/gems/vagrant-1.7.2/bin/vagrant"
INFO global: VAGRANT_LOG="debug"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/bin/../embedded"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_DETECTED_OS="Linux"
@tuminoid
tuminoid / keybase.md
Created January 14, 2015 06:27
keybase.md

Keybase proof

I hereby claim:

  • I am tuminoid on github.
  • I am tuminoid (https://keybase.io/tuminoid) on keybase.
  • I have a public key whose fingerprint is 874F C2AB CB11 47A8 598E 8EF7 2D8E D600 139B 869C

To claim this, I am signing this object:

@tuminoid
tuminoid / networking-drop-in-vmware-with-vagrant
Created August 10, 2014 09:21
VMware networking drops on second instance when first one is brought up or down
bar$ v destroy -f --debug
INFO global: Vagrant version: 1.6.3
INFO global: Ruby version: 2.0.0
INFO global: RubyGems version: 2.0.14
INFO global: VAGRANT_DEFAULT_PROVIDER="virtualbox"
INFO global: VAGRANT_EXECUTABLE="/Applications/Vagrant/bin/../embedded/gems/gems/vagrant-1.6.3/bin/vagrant"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/Applications/Vagrant/bin/../embedded"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_DETECTED_OS="Darwin"
INFO global: VAGRANT_INSTALLER_ENV="1"
@tuminoid
tuminoid / gist:9543013
Created March 14, 2014 06:30
Gitlab check for unassign bug
# sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production
Checking Environment ...
Git configured for git user? ... yes
Checking Environment ... Finished
Checking GitLab Shell ...
GitLab Shell version >= 1.7.9 ? ... OK (1.8.0)
$ vagrant up --debug
INFO global: Vagrant version: 1.4.3
INFO global: Ruby version: 2.0.0
INFO global: RubyGems version: 2.0.14
INFO global: VAGRANT_DEFAULT_PROVIDER="vmware_fusion"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/Applications/Vagrant/bin/../embedded"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_DETECTED_OS="Darwin"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_LOG="debug"
@tuminoid
tuminoid / gist:8312486
Created January 8, 2014 06:00
git plugin install failure behind proxy
# vagrant plugin install vagrant-cachier --debug
INFO global: Vagrant version: 1.4.2
INFO global: Ruby version: 2.0.0
INFO global: RubyGems version: 2.0.14
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/bin/../embedded"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_DETECTED_OS="Linux"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_LOG="debug"
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.4.2/plugins/synced_folders/nfs/plugin.rb