sudo docker run -d --net=host --privileged --name=kubestack \
-v /sys:/sys:ro \
-v /:/rootfs:ro \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /var/run:/var/run:rw \
-v /var/lib/kubelet/:/var/lib/kubelet:rw \
-v /var/lib/docker/:/var/lib/docker:ro \
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# docker login kuar.io | |
Username: kelseyhightower | |
Password: | |
Email: | |
Error response from daemon: Login: 404 page not found | |
(Code: 404; Headers: map[Server:[nginx/1.4.6 (Ubuntu)] Date:[Tue, 14 Jul 2015 23:28:32 GMT] Content-Type:[text/plain; charset=utf-8] Content-Length:[19] Connection:[keep-alive] Docker-Distribution-Api-Version:[registry/2.0]]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"apiVersion": "v1", | |
"kind": "Pod", | |
"metadata": {"name":"controller"}, | |
"spec":{ | |
"hostNetwork": true, | |
"containers": [{ | |
"name": "controller-manager", | |
"image": "kelseyhightower/kubernetes:0.20.2", | |
"command": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM google/debian:wheezy | |
RUN apt-get update | |
RUN apt-get -yy -q install iptables ca-certificates | |
COPY kubelet /kubelet | |
COPY kube-apiserver /kube-apiserver | |
COPY kube-controller-manager /kube-controller-manager | |
COPY kube-proxy /kube-proxy | |
COPY kube-scheduler /kube-scheduler | |
COPY nsenter /nsenter |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
core@node0 ~/hyperkube $ ./kubectl get pods | |
NAME READY REASON RESTARTS AGE | |
controller-127.0.0.1 3/3 Running 0 1m | |
core@node0 ~/hyperkube $ ./kubectl describe pods controller-127.0.0.1 | |
Name: controller-127.0.0.1 | |
Image(s): kelseyhightower/kubernetes:0.20.2,kelseyhightower/kubernetes:0.20.2,kelseyhightower/kubernetes:0.20.2 | |
Node: 127.0.0.1/127.0.0.1 | |
Labels: <none> | |
Status: Running | |
Reason: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
core@terminus ~ $ kubectl exec redis-17pna ls /foobar | |
foobar | |
core@terminus ~ $ kubectl exec redis-17pna cat /foobar/foobar | |
this works | |
core@terminus ~ $ sudo vim /var/lib/redis/data/foobar | |
core@terminus ~ $ kubectl exec redis-17pna cat /foobar/foobar | |
this works and so does this |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Kubernetes on Rocket | |
### API Service | |
``` | |
/etc/systemd/system/kube-apiserver.service | |
``` | |
``` | |
[Unit] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ actool cat-manifest --pretty-print kubelet-0.19.0.aci | |
{ | |
"acKind": "ImageManifest", | |
"acVersion": "0.5.1", | |
"name": "kubelet", | |
"labels": [ | |
{ | |
"name": "version", | |
"value": "0.19.0" | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ docker logs -f f2a0d28c0b93d461fcc6268cbdade93e0c29aa16aa24fd653e19a4af9205b46d | |
W0616 21:06:48.160961 1 server.go:86] Failed to start in resource-only container "/kube-proxy": mountpoint for cgroup not found | |
I0616 21:06:48.163089 1 proxier.go:121] Setting proxy IP to 169.254.17.223 and initializing iptables | |
I0616 21:06:48.195055 1 proxier.go:306] Adding new service "default/kubernetes:" at 10.200.20.1:443/TCP | |
I0616 21:06:48.195259 1 proxier.go:247] Proxying for service "default/kubernetes:" on TCP port 34115 | |
I0616 21:06:48.197233 1 roundrobin.go:262] LoadBalancerRR: Setting endpoints for default/nginx:default to [10.200.10.2:80] | |
I0616 21:06:48.209711 1 proxier.go:306] Adding new service "default/nginx:default" at 10.200.20.81:80/TCP | |
I0616 21:06:48.209902 1 proxier.go:247] Proxying for service "default/nginx:default" on TCP port 38898 |