https://stackoverflow.com/questions/9537751/virtualbox-port-forward-from-guest-to-host
To get to the host machine from the VM, the IP is 10.0.2.2 (by convention)
apiVersion: v1
kind: Service
metadata:
name: external-ip
$ kubectl get pods,svc | |
NAME READY STATUS RESTARTS AGE | |
po/nginx-8586cf59-s8ml8 1/1 Running 0 1m | |
po/voyager-test-ingress-7c9f7b66cb-vwltz 1/1 Running 0 1m | |
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE | |
svc/kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 4m | |
svc/meteor ClusterIP 10.102.63.216 <none> 80/TCP 1m | |
svc/voyager-test-ingress NodePort 10.103.43.13 <none> 80:30818/TCP 1m |
https://stackoverflow.com/questions/9537751/virtualbox-port-forward-from-guest-to-host
To get to the host machine from the VM, the IP is 10.0.2.2 (by convention)
apiVersion: v1
kind: Service
metadata:
name: external-ip
$ kubectl get pods,svc | |
NAME READY STATUS RESTARTS AGE | |
po/nginx-8586cf59-8kvdb 1/1 Running 0 15m | |
po/voyager-qa-itinerary-service-64b6cc5cb6-mtpzx 1/1 Running 0 4m | |
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE | |
svc/kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 1h | |
svc/qa-itinerary-service ClusterIP 10.110.63.143 <none> 80/TCP 15m | |
svc/voyager-qa-itinerary-service LoadBalancer 10.97.246.158 <pending> 80:30815/TCP 12m |
language: go | |
go: | |
- 1.x | |
- tip | |
install: | |
- go get -v github.com/Masterminds/glide | |
- cd $GOPATH/src/github.com/Masterminds/glide && git checkout tags/v0.13.1 && go install && cd - | |
- glide install -v |
Pause Container:https://github.com/kubernetes/kubernetes/blob/master/build/pause/pause.c#L60:58
waitpid: https://stackoverflow.com/questions/21248840/example-of-waitpid-in-use
signal blocking : https://support.sas.com/documentation/onlinedoc/sasc/doc750/html/lr1/zlocking.htm
fork() returns twice; https://www.thegeekstuff.com/2012/05/c-fork-function/
#!/bin/bash | |
# Get a new Ubuntu 16.04 server on packet.net | |
curl -fsSL --retry 5 -o /etc/apt/sources.list https://raw.githubusercontent.com/pharmer/addons/master/ubuntu/16.04/sources.list | |
apt-get update | |
apt-get upgrade | |
# pip | |
apt-get install python-pip | |
pip install --upgrade pip |
Clustering: https://coreos.com/etcd/docs/latest/v2/clustering.html#etcd-discovery
Discovery Protocol: https://coreos.com/etcd/docs/latest/v2/discovery_protocol.html
Docker: https://coreos.com/etcd/docs/latest/op-guide/container.html#docker
Runtime Reconfig:
Members HTTP v2 API: https://coreos.com/etcd/docs/latest/v2/members_api.html
Members v3 GRPC API: https://coreos.com/etcd/docs/latest/dev-guide/api_reference_v3.html#service-cluster-etcdserveretcdserverpbrpcproto
#!/bin/bash | |
# SPDX-License-Identifier: MIT | |
## Copyright (C) 2009 Przemyslaw Pawelczyk <[email protected]> | |
## | |
## This script is licensed under the terms of the MIT license. | |
## https://opensource.org/licenses/MIT | |
# | |
# Lockable script boilerplate | |
git submodule add -b master [email protected]:practical-kubernetes/practical-kubernetes.github.io.git public
https://github.com/practical-kubernetes/hugo-theme-jane
https://gohugo.io/hosting-and-deployment/hosting-on-github/
https://blog.github.com/2016-02-01-working-with-submodules/ https://gist.github.com/gitaarik/8735255