Skip to content

Instantly share code, notes, and snippets.

View tahmmee's full-sized avatar
🗯️
Voilà

Tommie McAfee tahmmee

🗯️
Voilà
View GitHub Profile
Alexander Yamlton - marshall the troops!
That's an order from your command-r
{"level":"error","ts":1586444923.9502087,"logger":"cluster","msg":"Cluster setup failed","cluster":"default/cb-example","error":"invalid image string: registry.connect.redhat.com/couchbase/server:6.5.0-3@sha256:b21765563ba510c0b1ca43bc9287567761d901b8d00fee704031e8f405bfa501","stacktrace":"github.com/couchbase/couchbase-operator/vendor/github.com/go-logr/zapr.(*zapLogger).Error\n\t/opt/go/src/github.com/couchbase/couchbase-operator/vendor/github.com/go-logr/zapr/zapr.go:128\ngithub.com/couchbase/couchbase-operator/pkg/cluster.New\n\t/opt/go/src/github.com/couchbase/couchbase-operator/pkg/cluster/cluster.go:143\ngithub.com/couchbase/couchbase-operator/pkg/controller.(*CouchbaseClusterReconciler).Reconcile\n\t/opt/go/src/github.com/couchbase/couchbase-operator/pkg/controller/controller.go:71\ngithub.com/couchbase/couchbase-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/opt/go/src/github.com/couchbase/couchbase-operator/vendor/sigs.k8s.io/controller-r
@tahmmee
tahmmee / apple_touch_bar.md
Created September 22, 2019 04:03
How about that touch bar

How about that touch bar?. That's a rhetorical question, because Apple doesn't care about your answer. They basically engineer to some ideal, then tell testers "use this until you change your mind about it." The design is set, the only point of the test is to discover how long it takes for people to accept it. "Hey here's an ipod with no buttons, how long did it take for you to forget what a scroll wheel was like?" Best believe I hate this touch bar. But Apple knows how long it will take before I stop hating it so they don't care. Well. Guess what. I found the hole in the loop. You can't get a person used to something they don't use.

Speaking of brain washing. How bout the singularity. Touch bar is just the start. I guarantee everything is conforming to the ipad mini. Phone getting bigger, laptops getting smaller. Less and less buttons more and more glass. All the testers kicking and screaming with their top secret unrelea

@tahmmee
tahmmee / aks_attach_logs.md
Last active November 13, 2018 01:04
Life & times of an AKS disk mount
  1. PV Disk is created. Unattached to any vm
  2. Pod is created
Nov 12 21:20:08 aks-agentpool-38464279-0 kubelet[3501]: I1112 21:20:08.674963    3501 kubelet.go:1837] 
SyncLoop (ADD, "api"): "cb-example-0002_default(bb5fac63-e6c0-11e8-8fcc-062ea35501ea)"
  1. The attach controller is watching for the disk to be attached to node where Pod is running
Nov 12 21:20:08 aks-agentpool-38464279-0 kubelet[3501]: I1112 21:20:08.857333 3501 reconciler.go:207] operationExecutor.VerifyControllerAttachedVolume started for volume "pvc-acc51c36-e6c0-11e8-8fcc-062ea35501ea" (UniqueName: "kubernetes.io/azure-disk//subscriptions/a384b1e1-47d0-4067-8d5e-8d9e16e650e4/resourceGroups/MC_tmcafee-group-east_tmcafee-prod-2_eastus/providers/Microsoft.Compute/disks/kubernetes-dynamic-pvc-acc51c36-e6c0-11e8-8fcc-062ea35501ea") pod "cb-example-0002" (UID: "bb5fac63-e6c0-11e8-8fcc-062ea35501ea")
@tahmmee
tahmmee / couchbase-persistent-cluster.yaml
Created August 22, 2018 16:43
Couchbase cluster spec with persistent volume
apiVersion: couchbase.com/v1
kind: CouchbaseCluster
metadata:
name: cb-example
spec:
baseImage: couchbase/server
version: enterprise-5.5.1
authSecret: cb-example-auth
exposeAdminConsole: true
adminConsoleServices:
@tahmmee
tahmmee / cluster-role-template.yaml
Last active July 31, 2018 15:37
cb k8s cluster-role-template
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: couchbase-operator
rules:
- apiGroups:
- couchbase.database.couchbase.com
resources:
- couchbaseclusters
verbs:
package main
import (
"fmt"
"regexp"
"strings"
)
func parseVersion(s string) (string, error) {
rx := regexp.MustCompile("^[0-9]{1,2}")
@tahmmee
tahmmee / nixos_pvc.md
Created March 30, 2018 21:50
Persistent Volume Claims on Nixos
@tahmmee
tahmmee / fix_chain.md
Created March 27, 2018 16:27
NixOS kubernetes and iptables

tldr; try this: sudo iptables -D INPUT -j nixos-fw

Nix firewall chain drops connections from the kubedns Pod's attempt to contact api server.

This results in timeouts:

E0303 20:18:26.598781       1 reflector.go:199] pkg/dns/dns.go:145: Failed to list *api.Endpoints: Get https://10.0.0.1:443/api/v1/endpoints?resourceVersion=0: dial tcp 10.0.0.1:443: i/o timeout
@tahmmee
tahmmee / docker_rhel_7.4.md
Last active February 12, 2018 18:23
Installing Docker-CE on RHEL 7.4

Please notice that while Docker-CE is not supported for RHEL, if you still want to install it the RedHat 'extras' channel is as of version 17.06 a prerequisite that provides the container-selinux package. @NBardelot

# get docker ce
sudo yum install -y yum-utils
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum makecache fast

# install container-selinux