Skip to content

Instantly share code, notes, and snippets.

Avatar

Patrick Galbraith CaptTofu

View GitHub Profile
View gist:6d6cda325844a1f18a12aa974f44aa2a
+ ./kvtctl.sh InitShardMaster -force main/-80 zone1-1504789100
Starting port forwarding to vtctld...
E1102 05:36:48.444678 17995 main.go:61] Remote error: rpc error: code = Unknown desc = node doesn't exist
+ ./kvtctl.sh InitShardMaster -force main/80- zone1-1015307700
Starting port forwarding to vtctld...
E1102 05:36:49.643641 18836 main.go:61] Remote error: rpc error: code = Unknown desc = node doesn't exist
++ cat schema.sql
+ ./kvtctl.sh ApplySchema -sql 'CREATE TABLE messages (
page BIGINT(20) UNSIGNED,
time_created_ns BIGINT(20) UNSIGNED,
View gist:ae6ae6cefd049790cd8522354c2ca04f
kubernetes/preinstall : check bin dir exists ---------------------------- 0.46s
kubernetes/preinstall : check if kubelet is configured ------------------ 0.34s
kubernetes/preinstall : check if /etc/dhcp/dhclient.conf exists --------- 0.32s
kubernetes/preinstall : check if atomic host ---------------------------- 0.30s
kubernetes/preinstall : Stop if known booleans are set as strings (Use JSON format on CLI: -e "{'key': true }") --- 0.29s
kubernetes/preinstall : check if /etc/dhclient.conf exists -------------- 0.29s
download : Sync container ----------------------------------------------- 0.17s
download : Download items ----------------------------------------------- 0.16s
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
View gist:eb0b4ef30dae45de1eee681af721d295
patg@ubuntu:~$ kubectl get nodes
NAME STATUS AGE VERSION
ubuntu NotReady 31m v1.7.3
patg@ubuntu:~$ export kubever=$(kubectl version | base64 | tr -d '\n')
patg@ubuntu:~$ kubectl apply -f "https://cloud.weave.works/k8s/net?k8s-version=$kubever"
serviceaccount "weave-net" created
clusterrole "weave-net" created
clusterrolebinding "weave-net" created
daemonset "weave-net" created
patg@ubuntu:~$ kubectl get nodes
View gist:baa9a573fb1ba5209c96c9706a609caf
rails g scaffold User email
/root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.3/lib/active_support/railtie.rb:22:in `rescue in block in <class:Railtie>': tzinfo-data is not present. Please add gem 'tzinfo-data' to your Gemfile and run bundle install (TZInfo::DataSourceNotFound)
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.3/lib/active_support/railtie.rb:19:in `block in <class:Railtie>'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.3/lib/rails/initializable.rb:30:in `instance_exec'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.3/lib/rails/initializable.rb:30:in `run'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.3/lib/rails/initializable.rb:59:in `block in run_initializers'
from /root/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:228:in `block in tsort_each'
from /root/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
fr
View gist:d7b453470a70dfe53f59231bd15b7acc
D: He does not know where Aleppo is, he cannot name a single foreign leader and now this? You are welcome to him
Gary Johnson Vows to Get Tough on East Korea
“This behavior is unacceptable,” the Libertarian Presidential nominee said. “The East Koreans are making us look like idiots.”
newyorker.com
D: He cannot name a single foreign leader *he * *admires*
P: you like voting for someone who has caused misery for thousands?
http://www.foreignpolicyjournal.com/2016/01/06/new-hillary-emails-reveal-true-motive-for-libya-intervention/
View gist:56899cb39fe789b8e29bed1357a432a2
DEBUG [1] lcmsvr /real_node_integrate/696 - ipv4=192.168.55.40 etcd_endpoint=None ext_inv_endpoint=192.168.55.1:55551
DEBUG [1] lcmsvr /integrate_with_inventory/462 - Node 192.168.55.40 Initial Integration or Inventory Update
ERROR [1] invmgr /get_inventory/119 - Unable to get Cluster configurations from system manager RestAPI Server
^Ccore@c40 ~ $ curl -s http://192.168.55.1:55551/clusters
^C
core@c40 ~ $ curl -s http://192.168.55.1:55551/clusters | python -m json.tool
{
"vagrant": {
View gist:b92b9e46358b95c268f638dd26c4f8f7
piVersion: v1
kind: Pod
metadata:
name: phpmyadmin
labels:
name: phpmyadmin
spec:
containers:
- image: phpmyadmin/phpmyadmin
name: phpmyadmin
View gist:99fbb94e7a6e3d8e58c1a6e9b90ae476
core@core-01 ~ $ ./kubectl --server=172.17.8.102:8080 get pods
NAME READY STATUS RESTARTS AGE
nginx-198147104-8rikq 1/1 Running 0 2m
core@core-01 ~ $ ./kubectl --server=172.17.8.102:8080 describe pod nginx-198147104-8rikq
Name: nginx-198147104-8rikq
Namespace: default
Node: core-03/172.17.8.103
Start Time: Wed, 29 Jun 2016 18:31:41 +0000
Labels: pod-template-hash=198147104,run=nginx
Status: Running
View gist:cf72f91895b215c1d8ac30a825e35a79
un 29 18:04:33 core-01 fleetd[1975]: DEBUG reconcile.go:84: Reconciler tick
Jun 29 18:04:33 core-01 fleetd[1975]: DEBUG engine.go:190: Lease already held by Machine(d2e1b887dac64e338791e98501153dfe) operating at acceptable version 1
Jun 29 18:04:34 core-01 fleetd[1975]: DEBUG mux.go:52: HTTP GET http://domain-sock/fleet/v1/units/kubernetes-apiserver.service?alt=json
Jun 29 18:04:34 core-01 fleetd[1975]: DEBUG mux.go:52: HTTP GET http://domain-sock/fleet/v1/units/kubernetes-apiserver.service?alt=json
Jun 29 18:04:34 core-01 fleetd[1975]: DEBUG agent.go:81: HeartbeatJobs tick
Jun 29 18:04:34 core-01 fleetd[1975]: DEBUG unit_state.go:218: Pushing UnitState(kubernetes-env.service) to Registry: &unit.UnitState{LoadState:"loaded", ActiveState:"inactive", SubState:"dead", MachineID:"4883844f19424b6b881aa67e3eb0a587", UnitHash:"839f0a60c2a3332191f4747b30887445fea4a878", UnitName:""}
Jun 29 18:04:34 core-01 fleetd[1975]: DEBUG reconcile.go:84: Reconciler tick
Jun 29 18:04:34 core-01 fleetd[1975]: DEBUG reconcile.go:28
View gist:81732ea49eb160d9b92d4841dded0603
EBUG [1] lcmutil lcmutil/shellcmd/86 -
DEBUG [1] lcmutil lcmutil/shellcmd/86 - TASK [kubernetes-services : create /opt/bin dir] *******************************
DEBUG [1] lcmutil lcmutil/shellcmd/86 - skipping: [c40] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true}
DEBUG [1] lcmutil lcmutil/shellcmd/86 -
DEBUG [1] lcmutil lcmutil/shellcmd/86 - TASK [kubernetes-services : Get kubectl (until figure out why kubectl container doesn't work)] ***
DEBUG [1] lcmutil lcmutil/shellcmd/86 - skipping: [c40] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true}
DEBUG [1] lcmutil lcmutil/shellcmd/86 -
DEBUG [1] lcmutil lcmutil/shellcmd/86 - TASK [kubernetes-services : Wait for k8s api] **********************************
DEBUG [1] lcmutil lcmutil/shellcmd/86 - Pausing for 45 seconds
DEBUG [1] lcmutil lcmutil/shellcmd/86 - (ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort)