diff --git a/website/Makefile b/website/Makefile new file mode 100644 index 00000000..36acd272 --- /dev/null +++ b/website/Makefile @@ -0,0 +1,17 @@ +.PHONY: build push deploy + +NAME := echo +TAG := $(shell date +'%Y.%m.%dT%H.%M') + +build: + rm -rf public + hugo + gox -osarch=linux/amd64 -output server + docker build -t gcr.io/$(PROJECT_ID)/$(NAME):$(TAG) . + +push: build + gcloud docker push gcr.io/fluent-anagram-95603/$(NAME):$(TAG) + +deploy: push + # https://github.com/kubernetes/kubernetes/blob/release-1.0/docs/user-guide/kubectl/kubectl_rolling-update.md + kubectl rolling-update $(NAME) --image=gcr.io/($PROJECT_ID)/$(NAME):$(TAG) diff --git a/website/rc.json b/website/rc.json new file mode 100644 index 00000000..c75e43a7 --- /dev/null +++ b/website/rc.json @@ -0,0 +1,29 @@ +{ + "apiVersion": "v1", + "kind": "ReplicationController", + "metadata": { + "name": "echo" + }, + "spec": { + "replicas": 2, + "selector": { + "name": "echo" + }, + "template": { + "metadata": { + "labels": { + "name": "echo" + } + }, + "spec": { + "containers": [{ + "image": "gcr.io/fluent-anagram-95603/echo", + "name": "echo", + "ports": [{ + "containerPort": 5091 + }] + }] + } + } + } +} diff --git a/website/service.json b/website/service.json new file mode 100644 index 00000000..970e8660 --- /dev/null +++ b/website/service.json @@ -0,0 +1,18 @@ +{ + "apiVersion": "v1", + "kind": "Service", + "metadata": { + "name": "echo", + "labels": { + "name": "echo" + } + }, + "spec": { + "ports": [{ + "port": 5091 + }], + "selector": { + "name": "echo" + } + } +} diff --git a/website/static/styles/echo.css b/website/static/styles/echo.css index 49b8688d..9dd960ba 100644 --- a/website/static/styles/echo.css +++ b/website/static/styles/echo.css @@ -5,7 +5,7 @@ code { font-size: .95em; padding: 2px 4px; background: #eee; - color: #4d4d4c; + color: #424242; font-family: Source Code Pro, Monaco, Menlo, Consolas, monospace; } a:link { @@ -21,5 +21,6 @@ a:link { } .menu a { display: block; + color: #757575; padding: 2px 0 }