Skip to content

Instantly share code, notes, and snippets.

View lazypower's full-sized avatar
💭
Bring back independent blogs, rss feeds, and the small web.

Charles "Chuck" Butler lazypower

💭
Bring back independent blogs, rss feeds, and the small web.
View GitHub Profile
root@ip-172-31-5-103:/var/lib/juju/agents/unit-etcd-0/charm# /snap/bin/etcd.etcdctl --version -o json
etcdctl version 2.3.8
charles@makoto:~$ kubectl cluster-info
Kubernetes master is running at https://192.168.1.7:6443
Heapster is running at https://192.168.1.7:6443/api/v1/proxy/namespaces/kube-system/services/heapster
KubeDNS is running at https://192.168.1.7:6443/api/v1/proxy/namespaces/kube-system/services/kube-dns
kubernetes-dashboard is running at https://192.168.1.7:6443/api/v1/proxy/namespaces/kube-system/services/kubernetes-dashboard
Grafana is running at https://192.168.1.7:6443/api/v1/proxy/namespaces/kube-system/services/monitoring-grafana
InfluxDB is running at https://192.168.1.7:6443/api/v1/proxy/namespaces/kube-system/services/monitoring-influxdb
To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.
## ingress-worker/0
ubuntu@ip-172-31-26-132:~$ kubectl get po -o wide|grep micro
microbot-1855935831-l8fjl 1/1 Running 0 3m 10.1.6.8 ip-172-31-26-132
ubuntu@ip-172-31-26-132:~$ kubectl get svc|grep micro
microbot 10.152.183.217 <none> 80/TCP 3m
ubuntu@ip-172-31-26-132:~$ nc -w1 -z -v 10.152.183.217 80
Connection to 10.152.183.217 80 port [tcp/http] succeeded!
## kubernetes-worker/0
def determine_storage_location(self):
''' Storage mounts are limited in snap confinement. Default behavior
is to version the database files in $SNAP_DATA. However the user can
attach durable storage, which is mounted in /media. We need a common
method to determine which storage path we are concerned with '''
if is_state('storage.volume.attached'):
return "/media/etcd-data/"
else:
#!/bin/bash
set -eux
# Backup existing configuration into configured temp path.
BACKUP=$(action-get backup)
BACKUP_PACKAGE=$(action-get backup-package)
BACKUP_TIMESTAMP=$(date +"%Y_%m_%d_%I_%M_%p")
#!/bin/bash
# Log output:
#
# * 51c333e (12 days) <Gary Bernhardt> add vim-eunuch
#
# The time massaging regexes start with ^[^<]* because that ensures that they
# only operate before the first "<". That "<" will be the beginning of the
# author name, ensuring that we don't destroy anything in the commit message
# that looks like time.
series: xenial
services:
bird:
charm: "cs:~project-calico/bird-5"
# ------------------------------------------------------------
# https://github.com/projectcalico/charm-bird
# ------------------------------------------------------------
num_units: 1
annotations:
"gui-x": "84"
name: etcd
version: 3.0.15
summary: Distributed key-value store
description: |
Etcd provides a key-value store and is implemented for high availability,
using the RAFT algorithm to deal with failover within the etcd cluster.
Popular in the Docker community as a shared store of small but important
pieces of common data in an application.
grade: devel
confinement: devmode # use "strict" to enforce system access only via declared interfaces
name: etcd
version: 3.0.15
summary: Distributed key-value store
description: |
Etcd provides a key-value store and is implemented for high availability,
using the RAFT algorithm to deal with failover within the etcd cluster.
Popular in the Docker community as a shared store of small but important
pieces of common data in an application.
grade: devel
confinement: devmode # use "strict" to enforce system access only via declared interfaces
name: etcd
version: 3.0.15
summary: Distributed key-value store
description: |
Etcd provides a key-value store and is implemented for high availability,
using the RAFT algorithm to deal with failover within the etcd cluster.
Popular in the Docker community as a shared store of small but important
pieces of common data in an application.
grade: devel
confinement: devmode # use "strict" to enforce system access only via declared interfaces