Skip to content

Instantly share code, notes, and snippets.

@virtuman
virtuman / failing kube-controller-manager pod logs
Created February 14, 2019 03:18
having crazy problem on production cluster all day today. all of a sudden kube-controller-manager started to constantly restart:
[root@k8s-n01 ~]# kubectl -n kube-system logs -f kube-controller-manager-k8s-n01
I0205 17:40:57.646786 1 feature_gate.go:206] feature gates: &{map[PersistentLocalVolumes:true VolumeScheduling:true]}
I0205 17:40:57.646988 1 flags.go:33] FLAG: --address="0.0.0.0"
I0205 17:40:57.647005 1 flags.go:33] FLAG: --allocate-node-cidrs="false"
I0205 17:40:57.647015 1 flags.go:33] FLAG: --allow-untagged-cloud="false"
I0205 17:40:57.647022 1 flags.go:33] FLAG: --allow-verification-with-non-compliant-keys="false"
I0205 17:40:57.647031 1 flags.go:33] FLAG: --alsologtostderr="false"
I0205 17:40:57.647038 1 flags.go:33] FLAG: --application-metrics-count-limit="100"
I0205 17:40:57.647046 1 flags.go:33] FLAG: --attach-detach-reconcile-sync-period="1m0s"
I0205 17:40:57.647069 1 flags.go:33] FLAG: --authentication-kubeconfig=""
@virtuman
virtuman / gitlab-docker-registry-cleanup-old-tags.php
Created January 29, 2018 22:28
gitlab docker registry cleanup through API + screen scraping
<?php
# Accepts command line arguments:
# -url=https://gitlab.example.com/
# -token=GITLAB_TOKEN
# -debug=false | true
# -dryrun=false | true
# -keep=2 day
@virtuman
virtuman / guide.md
Created January 30, 2017 20:08 — forked from vothanhkiet/guide.md
HA-Proxy for Portainer

HA-Proxy configuration for Portainer

Here is a working configuration for HA-Proxy version 1.6.6 2016/06/26 to serve Portainer at portainer.127.0.0.1.xip.io :

global
    maxconn                     10000
    daemon
    ssl-server-verify           none
    tune.ssl.default-dh-param   2048