Skip to content

Instantly share code, notes, and snippets.

View CaptTofu's full-sized avatar

Patrick Galbraith CaptTofu

View GitHub Profile
---
- name: Create a docker.yml file
hosts: "{{ hosts }}"
gather_facts: yes
tasks:
- name: inventory template
local_action: template src=docker.inv.j2 dest=./docker.inv
buntu@node-02:~$ docker logs b7379
2015/10/13 18:29:57 skydns: falling back to default configuration, could not read from etcd: 501: All the given peers are not reachable (Tried to connect to each peer twice and failed) [0]
2015/10/13 18:29:57 skydns: ready for queries on kubernetes.local. for tcp://0.0.0.0:53 [rcache 0]
(ansible-env)Patricks-MacBook-Pro:mysql-galera patg$ kubectl exec $(kubectl get pods|grep pxc-node3|awk '{ print $1 }') -i -t -- mysql -u root -p -h pxc-cluster
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 5
Server version: 5.6.24-72.2-56-log Percona XtraDB Cluster (GPL), Release rel72.2, Revision 43abf03, WSREP version 25.11, wsrep_25.11
Copyright (c) 2009-2015 Percona LLC and/or its affiliates
Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
(ansible-env)Patricks-MacBook-Pro:mysql-galera patg$ kubectl exec pxc-node3-0b5mc -c pxc-node3 -i -t -- bash -il
root@pxc-node3-0b5mc:/# mysql -u root -p -h pxc-cluster
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.6.24-72.2-56-log Percona XtraDB Cluster (GPL), Release rel72.2, Revision 43abf03, WSREP version 25.11, wsrep_25.11
Copyright (c) 2009-2015 Percona LLC and/or its affiliates
Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
(ansible-env)Patricks-MacBook-Pro:mysql-galera patg$ kubectl exec pxc-node3-0b5mc -c pxc-node3 'ls'
bin
boot
dev
entrypoint.sh
etc
home
lib
lib64
media
ubuntu@dod-01:~/kubernetes$ ./hack/update-generated-docs.sh
+++ [0926 17:20:26] Building go targets for linux/amd64:
cmd/gendocs
cmd/genman
cmd/genbashcomp
cmd/mungedocs
+++ [0926 17:20:27] Placing binaries
/home/ubuntu/kubernetes/examples/mysql-galera/README.md
----
kubectl-dash-f:
(ansible-env)Patricks-MBP:kubernetes-vagrant-coreos-cluster patg$ kubectl get pods,services
NAME READY STATUS RESTARTS AGE
kube-dns-sqtap 3/3 Running 0 1d
pxc-node1 1/1 Running 0 3h
pxc-node2 1/1 Running 0 2h
pxc-node3 1/1 Running 0 1h
NAME LABELS SELECTOR IP(S) PORT(S)
kube-dns k8s-app=kube-dns,kubernetes.io/cluster-service=true,name=kube-dns k8s-app=kube-dns 10.100.0.10 53/UDP
53/TCP
kubernetes component=apiserver,provider=kubernetes <none> 10.100.0.1 443/TCP
terraform terraform-provider-dme terraform-provider-template
terraform-provider-atlas terraform-provider-dnsimple terraform-provider-terraform
terraform-provider-aws terraform-provider-docker terraform-provisioner-chef
terraform-provider-azure terraform-provider-google terraform-provisioner-file
terraform-provider-cloudflare terraform-provider-heroku terraform-provisioner-local-exec
terraform-provider-cloudstack terraform-provider-mailgun terraform-provisioner-remote-exec
terraform-provider-consul terraform-provider-null
terraform-provider-digitalocean terraform-provider-openstack
Aug 13 17:34:07 dod-west-1 etcd[21134]: setting maximum number of CPUs to 1, total number of available CPUs is 2
Aug 13 17:34:07 dod-west-1 etcd[21134]: listening for peers on http://10.0.0.95:2380
Aug 13 17:34:07 dod-west-1 etcd[21134]: listening for client requests on http://0.0.0.0:2379
Aug 13 17:34:07 dod-west-1 etcd[21134]: listening for client requests on http://0.0.0.0:4001
Aug 13 17:34:07 dod-west-1 etcd[21134]: stopping listening for client requests on http://0.0.0.0:4001
Aug 13 17:34:07 dod-west-1 etcd[21134]: stopping listening for client requests on http://0.0.0.0:2379
Aug 13 17:34:07 dod-west-1 etcd[21134]: stopping listening for peers on http://10.0.0.95:2380
Aug 13 17:34:07 dod-west-1 etcd[21134]: couldn't find local name "dod-west-1" in the initial cluster configuration
Aug 13 17:34:07 dod-west-1 systemd[1]: etcd2.service: main process exited, code=exited, status=1/FAILURE
Aug 13 17:34:07 dod-west-1 systemd[1]: Unit etcd2.service entered failed state.
{
"admin_required": [["role:admin"], ["is_admin:1"]],
"owner" : [["user_id:%(user_id)s"]],
"admin_or_owner": [["rule:admin_required"], ["rule:owner"]],
"default": [["rule:admin_required"]],
"identity:get_service": [["rule:admin_required"]],
"identity:list_services": [["rule:admin_required"]],
"identity:create_service": [["rule:admin_required"]],