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: 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 9042/TCP kube-dns k8s-app=kube-dns,,name=kube-dns k8s-app=kube-dns 53/UDP 53/TCP kubernetes component=apiserver,provider=kubernetes 443/TCP kubernetes-ro component=apiserver,provider=kubernetes 80/TCP ## yaml files on

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: creationTimestamp: '2015-05-21T09:23:24+00:00' description: ming cluster 1 enableCloudLogging: true endpoint: masterAuth: bearerToken: FRxE88jcslxxxtI password: FRxE88jcslNxxxPtI user: admin name: hello-world network: default nodeConfig: machineType: n1-standard-1 serviceAccounts: - email: default scopes: - - - sourceImage: nodeRoutingPrefixSize: 24 numNodes: 1 selfLink: servicesIpv4Cidr: status: running zone: us-central1-a