This file contains 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
#!/usr/bin/env python | |
from gi.repository import Notify | |
import subprocess | |
from time import sleep, time | |
from sys import argv | |
import dbus | |
def send_notification(title, text): | |
try: |
This file contains 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
// logic with decorator | |
// logging functions are exported from github.com/opentracing/opentracing-go/log | |
func Objdecorator(f func(key string, obj interface{}) log.Field) func(string, interface{}) log.Field { | |
return func(key string, obj interface{}) log.Field { | |
return log.Object(key, obj) | |
} | |
} | |
func Strdecorator(f func(key, val string) log.Field) func(string, string) log.Field { | |
return func(key, value string) log.Field { |
This file contains 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
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: maya-agent | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
name: maya-agent |
This file contains 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
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: goserver-service | |
spec: | |
selector: | |
app: goserver | |
type: NodePort | |
ports: | |
- port: 80 |
This file contains 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
apiVersion: apps/v1beta1 | |
kind: Deployment | |
metadata: | |
name: server-deployment | |
spec: | |
replicas: 3 | |
template: | |
metadata: | |
labels: | |
app: goserver |
This file contains 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
package main | |
import ( | |
"fmt" | |
"net/http" | |
) | |
func handler(w http.ResponseWriter, r *http.Request) { | |
fmt.Fprintf(w, "Hi there, the end point is : %s !", r.URL.Path[1:]) | |
} |
This file contains 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: weave-net-t88k6 | |
Namespace: kube-system | |
Node: kubeminion-02/172.28.128.5 | |
Start Time: Wed, 11 Oct 2017 05:09:52 +0000 | |
Labels: controller-revision-hash=2720543195 | |
name=weave-net | |
pod-template-generation=1 | |
Annotations: kubernetes.io/created-by={"kind":"SerializedReference","apiVersion":"v1","reference":{"kind":"DaemonSet","namespace":"kube-system","name":"weave-net","uid":"8f898ca2-ae41-11e7-b962-021c6f7dbe9d","apiV... | |
Status: Running | |
IP: 172.28.128.5 |
This file contains 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: percona | |
Namespace: default | |
Node: kubeminion-02/172.28.128.5 | |
Start Time: Wed, 11 Oct 2017 07:15:34 +0000 | |
Labels: name=percona | |
Annotations: <none> | |
Status: Running | |
IP: 10.36.0.3 | |
Containers: | |
percona: |
This file contains 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
chown: changing ownership of '/var/lib/mysql/mysql/proc.frm': Read-only file system | |
chown: changing ownership of '/var/lib/mysql/mysql/ndb_binlog_index.MYD': Read-only file system | |
chown: changing ownership of '/var/lib/mysql/mysql/engine_cost.ibd': Read-only file system | |
chown: changing ownership of '/var/lib/mysql/mysql/proxies_priv.frm': Read-only file system | |
chown: changing ownership of '/var/lib/mysql/mysql/db.MYI': Read-only file system | |
chown: changing ownership of '/var/lib/mysql/mysql/ndb_binlog_index.frm': Read-only file system | |
chown: changing ownership of '/var/lib/mysql/mysql/time_zone_transition.ibd': Read-only file system | |
chown: changing ownership of '/var/lib/mysql/mysql/columns_priv.MYD': Read-only file system | |
chown: changing ownership of '/var/lib/mysql/mysql/slave_relay_log_info.frm': Read-only file system | |
chown: changing ownership of '/var/lib/mysql/mysql/event.MYD': Read-only file system |
This file contains 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 STATUS VOLUME CAPACITY ACCESSMODES STORAGECLASS AGE | |
demo-vol1-claim Bound pvc-88f44679-aa6a-11e7-b2db-021c6f7dbe9d 1G RWO openebs-percona 29m |