This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
series: xenial | |
services: | |
bird: | |
charm: "cs:~project-calico/bird-5" | |
# ------------------------------------------------------------ | |
# https://github.com/projectcalico/charm-bird | |
# ------------------------------------------------------------ | |
num_units: 1 | |
annotations: | |
"gui-x": "84" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |