Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
import threading
import time
from flask import Flask
app = Flask(__name__)
def now():
return int(time.time())
$ kubectl get all
NAME READY STATUS RESTARTS AGE
pod/api-gateway-8544bd68d9-kmjsr 1/1 Running 1 2d
pod/position-simulator-579b6654d6-4d89p 1/1 Running 2 2d
pod/position-tracker-65f7595d9b-k4g95 1/1 Running 1 2d
pod/queue-746b9d7fbc-f6qnv 1/1 Running 1 2d
pod/webapp-7d9d679676-xm255 1/1 Running 2 2d
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/fleetman-api-gateway NodePort 10.96.38.224 <none> 8080:30020/TCP 2d
@equick
equick / 2018-09-11_20-22.png
Last active September 11, 2018 19:27
network screenshot
2018-09-11_20-22.png
@equick
equick / log
Created September 10, 2018 21:17
console log
Date 2018-09-10T21:06:52.766Z
Whoops! Lost connection to ws://192.168.99.100:30080/api/updates vendor.js:68216:13
Date 2018-09-10T21:06:52.766Z
Error: Whoops! Lost connection to ws://192.168.99.100:30080/api/updates vendor.js:68216:13
Date 2018-09-10T21:06:52.767Z
STOMP: scheduling reconnection in 5000ms vendor.js:68216:13
Date 2018-09-10T21:07:01.606Z
Opening Web Socket... vendor.js:68216:13
Date 2018-09-10T21:07:01.608Z
Connecting... vendor.js:68216:13
$ /usr/local/bin/minikube-v0.25.1 start --logtostderr --loglevel 0
I0909 15:09:13.396437 13747 cache_images.go:292] Attempting to cache image: k8s.gcr.io/kubernetes-dashboard-amd64:v1.8.1 at /home/quick/.minikube/cache/images/k8s.gcr.io/kubernetes-dashboard-amd64_v1.8.1
I0909 15:09:13.396495 13747 cache_images.go:292] Attempting to cache image: gcr.io/google-containers/kube-addon-manager:v6.5 at /home/quick/.minikube/cache/images/gcr.io/google-containers/kube-addon-manager_v6.5
I0909 15:09:13.396525 13747 cache_images.go:292] Attempting to cache image: k8s.gcr.io/k8s-dns-kube-dns-amd64:1.14.5 at /home/quick/.minikube/cache/images/k8s.gcr.io/k8s-dns-kube-dns-amd64_1.14.5
Starting local Kubernetes v1.9.4 cluster...
Starting VM...
I0909 15:09:13.407159 13747 cache_images.go:292] Attempting to cache image: k8s.gcr.io/pause-amd64:3.0 at /home/quick/.minikube/cache/images/k8s.gcr.io/pause-amd64_3.0
I0909 15:09:13.396441 13747 cache_images.go:292] Attempting to cache image: gcr.io/k8s-minikube/storage-prov
$ /usr/local/bin/minikube-v0.28.0 start
Starting local Kubernetes v1.10.0 cluster...
Starting VM...
Getting VM IP address...
Moving files into cluster...
Setting up certs...
Connecting to cluster...
Setting up kubeconfig...
Starting cluster components...
^C