-
Edit the /etc/default/grub file. Append the console=ttyS0 statement to the grub config file at the end of the GRUB_CMDLINE_LINUX line: console=tty0 console=ttyS0,115200
-
Create the grub.cfg file: BIOS: grub2-mkconfig -o /boot/grub2/grub.cfg EFI: grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg
-
Enable a getty login service for ttyS0 with the systemctl command:
This file contains 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
deb http://deb.debian.org/debian/ bookworm contrib main non-free non-free-firmware | |
# deb-src http://deb.debian.org/debian/ bookworm contrib main non-free non-free-firmware | |
deb http://deb.debian.org/debian/ bookworm-updates contrib main non-free non-free-firmware | |
# deb-src http://deb.debian.org/debian/ bookworm-updates contrib main non-free non-free-firmware | |
deb http://deb.debian.org/debian/ bookworm-proposed-updates contrib main non-free non-free-firmware | |
# deb-src http://deb.debian.org/debian/ bookworm-proposed-updates contrib main non-free non-free-firmware | |
deb http://deb.debian.org/debian/ bookworm-backports contrib main non-free non-free-firmware |
This will create a Kubernetes Service of type ExternalName which will expose host.docker.internal, which will resolve to the host machine's IP address.
Create a file docker-connect.yml
with below contents. Then do kubectl apply -f docker-connect.yml
apiVersion: v1
kind: Service
metadata:
name: docker-container-service
spec:
This will update the Kubernetes CoreDNS service to forward login.microsoftonline.com to 1.1.1.1. Thank you patrickhuber
Put below code in coredns.yml
and then kubectl apply -f coredns.yml
. Ignore the errors.
apiVersion: v1
kind: ConfigMap
metadata:
name: coredns
namespace: kube-system
This file contains 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
find "/directory" -maxdepth 1 -xtype l -print -delete |