Sunday, February 2, 2020
Thursday, January 25, 2018
Wednesday, November 8, 2017
Friday, October 2, 2015
"Generating Go from JSON data" idea from me (ming-der wang) is already public and start implement since Aug. 3, 2015 (at least as early)
I claim the following idea is already on public since I had share or public in any social networks.
"Generating Go from JSON data" is the key concept of gogetDB or my current database as service project (onion, demo-onion, ginger, pepper, chilli, and so on.)
since 2 month ago (10/1/2015) of https://hackpad.com/Project-2-Product-Description-9iPxzxUeewK
all source code are in github (before Oct. 1, 2015), start not to open in additional parts.
the concept is implemented and demo in https://prezi.com/0lrgdih96_aw/copy-of-932015-gcpugtw-free-talk-kubernetes/ on Sept. 3, 2015
also public the way to do it in https://hackpad.com/GCPUG.TW-932015-live-demo-mGYQk3BWynb
The presentation of this concept actually in Sept. 3, 2015 NTU hackathon, I already present it to public.
Also named it "Give me JSON, I will give you an EndPoint (back)"
All copyright belong to Ming-der Wang. log4analytics.com log4security.com
Friday, May 22, 2015
run your docker on google container engine.
Better reading on gist gist
$ kubectl config use-context gke_iron-potion-92209_us-central1-a_hello-world
$ kubectl create -f casandra-pod.yaml
$ kubectl create -f cassandra-service.yaml
$ kubectl get endpoints cassandra -o yaml
apiVersion: v1beta3
kind: Endpoints
metadata:
creationTimestamp: 2015-05-22T07:30:24Z
name: cassandra
namespace: default
resourceVersion: "53898"
selfLink: /api/v1beta1/endpoints/cassandra?namespace=default
uid: 694655e9-0054-11e5-815a-42010af013e9
subsets:
- addresses:
- IP: 10.40.1.5
targetRef:
kind: Pod
name: cassandra
namespace: default
resourceVersion: "53826"
uid: 2e9b73bb-0054-11e5-815a-42010af013e9
ports:
- port: 9042
protocol: TCP
$ kubectl get services
NAME LABELS SELECTOR IP PORT(S)
cassandra name=cassandra name=cassandra 10.43.254.112 9042/TCP
kube-dns k8s-app=kube-dns,kubernetes.io/cluster-service=true,name=kube-dns k8s-app=kube-dns 10.43.240.10 53/UDP
53/TCP
kubernetes component=apiserver,provider=kubernetes 10.43.240.2 443/TCP
kubernetes-ro component=apiserver,provider=kubernetes 10.43.240.1 80/TCP
## yaml files on https://github.com/GoogleCloudPlatform/kubernetes/tree/master/examples/cassandra
Thursday, May 21, 2015
first gcloud command learning by example. HOW TO GET PASSWORD AND BEARERTOKEN FROM YOUR CLUSTER
$ gcloud alpha container clusters describe hello-world
clusterApiVersion: 0.17.0
containerIpv4Cidr: 10.40.0.0/14
creationTimestamp: '2015-05-21T09:23:24+00:00'
description: ming cluster 1
enableCloudLogging: true
endpoint: 23.251.150.58
masterAuth:
bearerToken: FRxE88jcslxxxtI
password: FRxE88jcslNxxxPtI
user: admin
name: hello-world
network: default
nodeConfig:
machineType: n1-standard-1
serviceAccounts:
- email: default
scopes:
- https://www.googleapis.com/auth/compute
- https://www.googleapis.com/auth/devstorage.read_only
- https://www.googleapis.com/auth/logging.write
sourceImage: https://www.googleapis.com/compute/v1/projects/google-containers/global/images/container-vm-v20150505
nodeRoutingPrefixSize: 24
numNodes: 1
selfLink: https://www.googleapis.com/container/v1beta1/projects/608411524514/zones/us-central1-a/clusters/hello-world
servicesIpv4Cidr: 10.43.240.0/20
status: running
zone: us-central1-a
Tuesday, January 13, 2015
elasticsearch commands (example) to see the logs from logstash
$ curl -gs -XGET http://localhost:9200/logstash-\*/_search\?pretty\=true
{
"took" : 104,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 6,
"max_score" : 1.0,
"hits" : [ {
"_index" : "logstash-2015.01.13",
"_type" : "nginx_access",
"_id" : "AUrh27PSn9XFZmqFmD71",
"_score" : 1.0,
"_source":{"message":"172.16.255.1 - - [13/Jan/2015:05:54:33 +0000] \"GET / HTTP/1.1\" 304 0 \"-\" \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:34.0) Gecko/20100101 Firefox/34.0\"","@version":"1","@timestamp":"2015-01-13T05:54:33.792Z","host":"node1","path":"/var/log/nginx/access.log","type":"nginx_access","tags":["_grokparsefailure"]}
}, {
"_index" : "logstash-2015.01.13",
"_type" : "nginx_access",
"_id" : "AUrh3bkHn9XFZmqFmD75",
"_score" : 1.0,
"_source":{"message":"172.16.255.1 - - [13/Jan/2015:05:56:51 +0000] \"GET / HTTP/1.1\" 304 0 \"-\" \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:34.0) Gecko/20100101 Firefox/34.0\"","@version":"1","@timestamp":"2015-01-13T05:56:51.780Z","host":"node1","path":"/var/log/nginx/access.log","type":"nginx_access","tags":["_grokparsefailure"]}
}, {
"_index" : "logstash-2015.01.13",
"_type" : "nginx_access",
"_id" : "AUrh26y1n9XFZmqFmD70",
"_score" : 1.0,
"_source":{"message":"172.16.255.1 - - [13/Jan/2015:05:54:32 +0000] \"GET / HTTP/1.1\" 304 0 \"-\" \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:34.0) Gecko/20100101 Firefox/34.0\"","@version":"1","@timestamp":"2015-01-13T05:54:32.773Z","host":"node1","path":"/var/log/nginx/access.log","type":"nginx_access","tags":["_grokparsefailure"]}
}, {
"_index" : "logstash-2015.01.13",
"_type" : "nginx_access",
"_id" : "AUrh27PSn9XFZmqFmD72",
"_score" : 1.0,
"_source":{"message":"172.16.255.1 - - [13/Jan/2015:05:54:34 +0000] \"GET / HTTP/1.1\" 304 0 \"-\" \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:34.0) Gecko/20100101 Firefox/34.0\"","@version":"1","@timestamp":"2015-01-13T05:54:34.817Z","host":"node1","path":"/var/log/nginx/access.log","type":"nginx_access","tags":["_grokparsefailure"]}
}, {
"_index" : "logstash-2015.01.13",
"_type" : "nginx_access",
"_id" : "AUrh27PSn9XFZmqFmD73",
"_score" : 1.0,
"_source":{"message":"172.16.255.1 - - [13/Jan/2015:05:54:35 +0000] \"GET / HTTP/1.1\" 304 0 \"-\" \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:34.0) Gecko/20100101 Firefox/34.0\"","@version":"1","@timestamp":"2015-01-13T05:54:35.820Z","host":"node1","path":"/var/log/nginx/access.log","type":"nginx_access","tags":["_grokparsefailure"]}
}, {
"_index" : "logstash-2015.01.13",
"_type" : "nginx_access",
"_id" : "AUrh28f_n9XFZmqFmD74",
"_score" : 1.0,
"_source":{"message":"172.16.255.1 - - [13/Jan/2015:05:54:44 +0000] \"GET / HTTP/1.1\" 304 0 \"-\" \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:34.0) Gecko/20100101 Firefox/34.0\"","@version":"1","@timestamp":"2015-01-13T05:54:44.841Z","host":"node1","path":"/var/log/nginx/access.log","type":"nginx_access","tags":["_grokparsefailure"]}
} ]
}
}
{
"took" : 104,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 6,
"max_score" : 1.0,
"hits" : [ {
"_index" : "logstash-2015.01.13",
"_type" : "nginx_access",
"_id" : "AUrh27PSn9XFZmqFmD71",
"_score" : 1.0,
"_source":{"message":"172.16.255.1 - - [13/Jan/2015:05:54:33 +0000] \"GET / HTTP/1.1\" 304 0 \"-\" \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:34.0) Gecko/20100101 Firefox/34.0\"","@version":"1","@timestamp":"2015-01-13T05:54:33.792Z","host":"node1","path":"/var/log/nginx/access.log","type":"nginx_access","tags":["_grokparsefailure"]}
}, {
"_index" : "logstash-2015.01.13",
"_type" : "nginx_access",
"_id" : "AUrh3bkHn9XFZmqFmD75",
"_score" : 1.0,
"_source":{"message":"172.16.255.1 - - [13/Jan/2015:05:56:51 +0000] \"GET / HTTP/1.1\" 304 0 \"-\" \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:34.0) Gecko/20100101 Firefox/34.0\"","@version":"1","@timestamp":"2015-01-13T05:56:51.780Z","host":"node1","path":"/var/log/nginx/access.log","type":"nginx_access","tags":["_grokparsefailure"]}
}, {
"_index" : "logstash-2015.01.13",
"_type" : "nginx_access",
"_id" : "AUrh26y1n9XFZmqFmD70",
"_score" : 1.0,
"_source":{"message":"172.16.255.1 - - [13/Jan/2015:05:54:32 +0000] \"GET / HTTP/1.1\" 304 0 \"-\" \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:34.0) Gecko/20100101 Firefox/34.0\"","@version":"1","@timestamp":"2015-01-13T05:54:32.773Z","host":"node1","path":"/var/log/nginx/access.log","type":"nginx_access","tags":["_grokparsefailure"]}
}, {
"_index" : "logstash-2015.01.13",
"_type" : "nginx_access",
"_id" : "AUrh27PSn9XFZmqFmD72",
"_score" : 1.0,
"_source":{"message":"172.16.255.1 - - [13/Jan/2015:05:54:34 +0000] \"GET / HTTP/1.1\" 304 0 \"-\" \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:34.0) Gecko/20100101 Firefox/34.0\"","@version":"1","@timestamp":"2015-01-13T05:54:34.817Z","host":"node1","path":"/var/log/nginx/access.log","type":"nginx_access","tags":["_grokparsefailure"]}
}, {
"_index" : "logstash-2015.01.13",
"_type" : "nginx_access",
"_id" : "AUrh27PSn9XFZmqFmD73",
"_score" : 1.0,
"_source":{"message":"172.16.255.1 - - [13/Jan/2015:05:54:35 +0000] \"GET / HTTP/1.1\" 304 0 \"-\" \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:34.0) Gecko/20100101 Firefox/34.0\"","@version":"1","@timestamp":"2015-01-13T05:54:35.820Z","host":"node1","path":"/var/log/nginx/access.log","type":"nginx_access","tags":["_grokparsefailure"]}
}, {
"_index" : "logstash-2015.01.13",
"_type" : "nginx_access",
"_id" : "AUrh28f_n9XFZmqFmD74",
"_score" : 1.0,
"_source":{"message":"172.16.255.1 - - [13/Jan/2015:05:54:44 +0000] \"GET / HTTP/1.1\" 304 0 \"-\" \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:34.0) Gecko/20100101 Firefox/34.0\"","@version":"1","@timestamp":"2015-01-13T05:54:44.841Z","host":"node1","path":"/var/log/nginx/access.log","type":"nginx_access","tags":["_grokparsefailure"]}
} ]
}
}
Subscribe to:
Posts (Atom)