Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kubernetes on Macbook pro 16 M4 Max on multiple VMWare Fusion 13 Ubuntu 24.04 VMs #75

Open
obriensystems opened this issue Dec 8, 2024 · 3 comments
Assignees

Comments

@obriensystems
Copy link
Member

@obriensystems obriensystems self-assigned this Dec 8, 2024
@obriensystems
Copy link
Member Author

obriensystems commented Dec 8, 2024

https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/

start at

https://kubernetes.io/docs/setup/

we will come back to the learning section

https://kubernetes.io/docs/tasks/tools/

We go directly to "installing kubeadm" in the production section

https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/

Check prerequisites

https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/#verify-mac-address

MAC addresses are different - if VMs were independently created.

checking ports

ubuntu@ubuntu01:~$ nc 127.0.0.1 6443 -v
nc: connect to 127.0.0.1 port 6443 (tcp) failed: Connection refused

check ports later on a running server

disable swap

ubuntu@ubuntu01:~$ cat /proc/swaps
Filename				Type		Size		Used		Priority
/swap.img                               file		4194300		0		-2
ubuntu@ubuntu01:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/ubuntu-vg/ubuntu-lv during curtin installation
/dev/disk/by-id/dm-uuid-LVM-7xV7bezneIJK6i0KV6PR53dQ5RxkENBeLbcphmvUbnME77l9n2mrNR3UYwUGmm9B / ext4 defaults 0 1
# /boot was on /dev/nvme0n1p2 during curtin installation
/dev/disk/by-uuid/ee8a6ddc-6fd4-4ad7-9971-bc2a193aeb91 /boot ext4 defaults 0 1
# /boot/efi was on /dev/nvme0n1p1 during curtin installation
/dev/disk/by-uuid/05F5-3DA8 /boot/efi vfat defaults 0 1
/swap.img	none	swap	sw	0	0
ubuntu@ubuntu01:~$ sudo swapoff -a

@obriensystems
Copy link
Member Author

see also vctl

michaelobrien@mbp8 eks % vctl ps
FATAL Container engine is not running. Run 'vctl system start' to launch it 
michaelobrien@mbp8 eks % vctl system start
Downloading 3 files...
Downloading [kubectl 23.72% crx.vmdk 51.71%]
Finished crx.vmdk 100.00%
Downloading [kubectl 88.58% kind-darwin-amd64 80.48%]
Finished kubectl 100.00%

Finished kind-darwin-amd64 100.00%
3 files successfully downloaded.
Preparing storage...
Container storage has been prepared successfully under /Users/michaelobrien/.vctl/storage
Launching container runtime...
Container runtime has been started.
michaelobrien@mbp8 eks % vctl ps
────   ─────   ───────   ──   ─────   ──────   ─────────────   
NAME   IMAGE   COMMAND   IP   PORTS   STATUS   CREATION TIME   
────   ─────   ───────   ──   ─────   ──────   ─────────────   
michaelobrien@mbp8 eks % kubectl config get-contexts
CURRENT   NAME                                              CLUSTER                                           AUTHINFO                                          NAMESPACE
*         arn:aws:eks:us-east-1:453279094200:cluster/prod   arn:aws:eks:us-east-1:453279094200:cluster/prod   arn:aws:eks:us-east-1:453279094200:cluster/prod   
          docker-desktop                                    docker-desktop                                    docker-desktop                                    
          minikube                                          minikube                                          minikube                                          default

@obriensystems
Copy link
Member Author

20241213 restarting fusion VM kubernetes experiment

Screenshot 2024-12-13 at 14 30 26

Turned on bridge networking to get external IP
https://github.com/ObrienlabsDev/blog/wiki/Virtualization#turn-on-bridge-networking-mode-to-enable-external-ipam

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant