Skip to content

Commit

Permalink
New release
Browse files Browse the repository at this point in the history
  • Loading branch information
mclarkson committed Jun 8, 2020
1 parent cfd6079 commit e8a55bc
Show file tree
Hide file tree
Showing 6 changed files with 947 additions and 39 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Take note of the [Status](#status) below and the [Releases](https://github.com/m

| OS | Version | Terminal | Status | Notes |
| ------- | ------- | -------------- | --------------------------------- | ------------------------------------- |
| Ubuntu | 18.04.4 | gnome terminal | works | install as below |
| Fedora | 31 | gnome terminal | works | disable cgroups2<br/>install as below |
| Fedora | 32 | gnome terminal | works | disable cgroups2<br/>install as below |
| Mac OS | | | not tried<br/>no reports received | |
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
tests(master*)$ errstop() { [[ $1 -gt 0 ]] && { printf 'SCREENCAST STOP &'; read
; }; }
tests(master*)$ date
Sat 6 Jun 01:24:03 BST 2020
Mon 8 Jun 22:22:27 BST 2020
tests(master*)$ alias mokbox='docker run --rm -ti --hostname mokbox --name mokbo
x -v /var/run/docker.sock:/var/run/docker.sock -v /var/tmp:/var/tmp myownkind/mo
kbox'
Expand All @@ -18,13 +18,13 @@ d; }; }
Downloading base image, 'mok-centos-7-v1.18.3' .. SUCCESS
[root@mokbox /]# errstop $?
[root@mokbox /]# time mokctl -p create cluster myk8s --masters 1 --tailf
19455b1e691ee6dd6e41aeac0977a8ba3754db426c9f221bc777ef1f90655262
bc09c2d367a4611619494a8588a4a8eb3c7d5546c126be863a49e66e05d80c4d

STATUS: OK

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
W0606 00:24:18.892519 146 configset.go:202] WARNING: kubeadm cannot validate
W0608 21:26:44.275719 96 configset.go:202] WARNING: kubeadm cannot validate
component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io
]
[init] Using Kubernetes version: v1.18.3
Expand Down Expand Up @@ -70,16 +70,16 @@ st] and IPs [172.17.0.3 127.0.0.1 ::1]
[control-plane] Using manifest folder "/etc/kubernetes/manifests"
[control-plane] Creating static Pod manifest for "kube-apiserver"
[control-plane] Creating static Pod manifest for "kube-controller-manager"
W0606 00:24:24.620135 146 manifests.go:225] the default kube-apiserver autho
W0608 21:26:51.560331 96 manifests.go:225] the default kube-apiserver autho
rization-mode is "Node,RBAC"; using "Node,RBAC"
[control-plane] Creating static Pod manifest for "kube-scheduler"
W0606 00:24:24.621558 146 manifests.go:225] the default kube-apiserver autho
W0608 21:26:51.561869 96 manifests.go:225] the default kube-apiserver autho
rization-mode is "Node,RBAC"; using "Node,RBAC"
[etcd] Creating static Pod manifest for local etcd in "/etc/kubernetes/manifests
"
[wait-control-plane] Waiting for the kubelet to boot up the control plane as sta
tic Pods from directory "/etc/kubernetes/manifests". This can take up to 4m0s
[apiclient] All control plane components are healthy after 26.505639 seconds
[apiclient] All control plane components are healthy after 29.505436 seconds
[upload-config] Storing the configuration used in ConfigMap "kubeadm-config" in
the "kube-system" Namespace
[kubelet] Creating a ConfigMap "kubelet-config-1.18" in namespace kube-system wi
Expand Down Expand Up @@ -124,19 +124,19 @@ ities
and service account keys on each node and then running the following as root:

kubeadm join 172.17.0.3:6443 --token abcdef.0123456789abcdef \
--discovery-token-ca-cert-hash sha256:8d148a593a78ee901e994f8a009585c13159da
80f7b92115493860a47659ed50 \
--discovery-token-ca-cert-hash sha256:4c91ef5d3cee84a8affbbea5648241587efdcc
2d3d0c79c31a7d25d52b5e32a1 \
--control-plane

Then you can join any number of worker nodes by running the following on each as
root:

kubeadm join 172.17.0.3:6443 --token abcdef.0123456789abcdef \
--discovery-token-ca-cert-hash sha256:8d148a593a78ee901e994f8a009585c13159da
80f7b92115493860a47659ed50
--discovery-token-ca-cert-hash sha256:4c91ef5d3cee84a8affbbea5648241587efdcc
2d3d0c79c31a7d25d52b5e32a1
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 14366 100 14366 0 0 30209 0 --:--:-- --:--:-- --:--:-- 30180
100 14366 100 14366 0 0 18795 0 --:--:-- --:--:-- --:--:-- 18779
podsecuritypolicy.policy/psp.flannel.unprivileged created
clusterrole.rbac.authorization.k8s.io/flannel created
clusterrolebinding.rbac.authorization.k8s.io/flannel created
Expand All @@ -157,35 +157,37 @@ Cluster, "myk8s", can be accessed using:

export KUBECONFIG=/var/tmp/admin-myk8s.conf

real 0m37.667s
user 0m0.383s
sys 0m0.282s
/usr/bin/mokctl: line 703: kill: `': not a pid or valid job spec

real 0m44.004s
user 0m0.436s
sys 0m0.334s
[root@mokbox /]# errstop $?
[root@mokbox /]# export KUBECONFIG=/var/tmp/admin-myk8s.conf
[root@mokbox /]# for i in `seq 1 20`; do if kubectl get pods &>/dev/null; then b
reak; fi; echo -n "."; sleep 1; done
[root@mokbox /]# while kubectl get pods -A | tail -n +2 | awk '{ print $3; }' |
grep -qs 0; do echo -n "."; sleep 2; done; echo
.....................
........................
[root@mokbox /]# kubectl get pods -A
NAMESPACE NAME READY STATUS RESTART
S AGE
kube-system coredns-66bff467f8-bssr8 1/1 Running 0
36s
kube-system coredns-66bff467f8-cv6ns 1/1 Running 0
36s
kube-system coredns-66bff467f8-gtg6b 1/1 Running 0
42s
kube-system coredns-66bff467f8-k9tn5 1/1 Running 0
42s
kube-system etcd-myk8s-master-1 1/1 Running 0
46s
52s
kube-system kube-apiserver-myk8s-master-1 1/1 Running 0
46s
52s
kube-system kube-controller-manager-myk8s-master-1 1/1 Running 0
46s
kube-system kube-flannel-ds-amd64-k5v5q 1/1 Running 0
36s
kube-system kube-proxy-7d7hc 1/1 Running 0
36s
52s
kube-system kube-flannel-ds-amd64-qx28m 1/1 Running 0
42s
kube-system kube-proxy-v2tx7 1/1 Running 0
42s
kube-system kube-scheduler-myk8s-master-1 1/1 Running 0
46s
52s
[root@mokbox /]# errstop $?
[root@mokbox /]# kubectl run --rm -ti --restart=Never --image=alpine shell2 sh |
| errstop $?
Expand All @@ -199,37 +201,43 @@ If you don't see a command prompt, try pressing enter.
valid_lft forever preferred_lft forever
3: eth0@if6: <BROADCAST,MULTICAST,UP,LOWER_UP,M-DOWN> mtu 1450 qdisc noqueue sta
te UP
link/ether 72:59:26:45:23:49 brd ff:ff:ff:ff:ff:ff
link/ether 22:c1:69:db:a9:3e brd ff:ff:ff:ff:ff:ff
inet 10.244.0.4/24 brd 10.244.0.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::7059:26ff:fe45:2349/64 scope link
inet6 fe80::20c1:69ff:fedb:a93e/64 scope link
valid_lft forever preferred_lft forever
/ # apk add fortune
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/x86_64/APKINDEX.tar.g
z
(1/2) Installing libbsd (0.10.0-r0)
0%
(2/2) Installing fortune (0.1-r1)
3% ##
23% #################
73% ######################################################
Executing busybox-1.31.1-r16.trigger
ERROR: busybox-1.31.1-r16.trigger: script exited with error 127
OK: 9 MiB in 16 packages
/ # exit 0

E0606 00:26:07.796913 475 v2.go:105] EOF
pod "shell2" deleted
[root@mokbox /]# y
bash: y: command not found
[root@mokbox /]# errstop $?
[root@mokbox /]# mokctl -p get cluster
MOK_Cluster Docker_ID Container_Name IP_Address
myk8s 19455b1e691e myk8s-master-1 172.17.0.3
myk8s bc09c2d367a4 myk8s-master-1 172.17.0.3
[root@mokbox /]# errstop $?
[root@mokbox /]# mokctl -p delete cluster myk8s || errstop $?
The following containers will be deleted:

MOK_Cluster Docker_ID Container_Name IP_Address
myk8s bc09c2d367a4 myk8s-master-1 172.17.0.3

Are you sure you want to delete the cluster? (y/N) >y

Deleting id, 'bc09c2d367a4' from cluster 'myk8s'. .. SUCCESS

[root@mokbox /]# mokctl -p get cluster
[root@mokbox /]# errstop $?
[root@mokbox /]# exit
exit
tests(master*)$
tests(master*)$ # Test complete
tests(master*)$ date
Sat 6 Jun 01:26:14 BST 2020
Mon 8 Jun 22:28:55 BST 2020
tests(master*)$
Loading

0 comments on commit e8a55bc

Please sign in to comment.