-Yeah, I was saying about Kubernetes.
-That let’s you orchestrate all your services.
kubectl proxy
git clone https://gitlab.com/gitlab-org/kubernetes-gitlab-demo.git
env GITLAB_GKE_IP=104.199.210.42 \
GITLAB_GKE_DOMAIN=gitlab.godfat.org \
GITLAB_LEGO_EMAIL=jen-shin@gitlab.com \
bash generate.bash
kubectl create -f gitlab-gitlab-godfat-org.yml
require 'webrick'
server = WEBrick::HTTPServer.new :Port => 5000
server.mount_proc '/' do |request, response|
response.body = 'Hello, world!'
end
server.start
FROM ruby:2.4.0-alpine
ADD ./ /app/
WORKDIR /app
ENV PORT 5000
EXPOSE 5000
CMD ["sh", "-c",
"while :; do ruby ./server.rb; done"]
Let's improve the homepage!
/project help
/project issue new Make homepage more descriptive
Currently it is just Hello World.
ls
vi server.rb
Updated Hello World
killall ruby
Updated
in front of Hello, world!
1-homepage
Looks good to me
/project deploy staging to production
1 - rate(node_cpu{mode="idle"}[5m])
(1 - ((node_memory_MemFree + node_memory_Cached) / node_memory_MemTotal)) * 100