In the new metallb first, we need to enable the ARP using the following command
Then apply the new metal lb file.
Learn .. Conquer .. Share
In the new metallb first, we need to enable the ARP using the following command
Then apply the new metal lb file.
Choose your Operating System and follow the installation instructions below.
- cd /usr/local/src
- tar xzf noip-duc-linux.tar.gz
- cd no-ip-2.1.9
- make
- make install
Create the file /etc/systemd/system/noip2.service
with the following content (and drop your init.d
scripts):
[Unit]
Description=noip2 service
[Service]
Type=forking
ExecStart=/usr/local/bin/noip2
Restart=always
[Install]
WantedBy=default.target
Then issue
sudo systemctl daemon-reload
to make systemd
aware of the new unit (systemd
caches unit files and this command makes systemd
reconsider its cache).
Now you can try to start and stop your unit and see its status:
sudo systemctl status noip2
sudo systemctl start noip2
sudo systemctl status noip2
sudo systemctl stop noip2
sudo systemctl status noip2
To have the unit started at boot time you need to enable it:
sudo systemctl enable noip2
Podman is container runtime engine like docker, Rocket, Drawbridge, LXC.
podman login -u username -p password registry.access.redhat.compodman pull [OPTIONS] [REGISTRY[:PORT]/]NAME[:TAG]podman ps -apodman search <image-name>
podman pull <image-name>
podman images
podman run <image-name> echo 'Hello world!'
podman run -d -p 8080 httpd << Run a container with image httpd in background with -d
podman port -l << Displays port details of last used container
podman run -it ubi8/ubi:8.3 /bin/bash << Run and enter to bash of a container with -it
podman run --name MySQL-custom \
-e MYSQL_USER=Ruser -e MYSQL_PASSWORD=PASS \
-e MYSQL_ROOT_PASSWORD= PASS \
-d MySQL
podman ps --format "{{.ID}} {{.Image}} {{.Names}}"
Root and Rootless Containers
sudo podman run --rm --name asroot -ti httpd /bin/bashpodman run --rm --name asuser -ti httpd /bin/bashpodman run --name my-httpd-container httpd << Custom name to pod with --namepodman exec httpd-container cat /etc/hostname << Running commands in container with execpodman stop my-httpd-containerpodman kill -s SIGKILL my-httpd-container << send custom kill signals by -spodman restart my-httpd-containerpodman rm my-httpd-containerpodman rm -a << Remove all podspodman stop -a << Stop all podspodman exec mysql /bin/bash -c 'mysql -uuser1 -pmypa55 -e "select * from items.Projects;"'
mkdir /home/student/dbfilespodman unshare chown -R 27:27 /home/student/dbfiles <<sudo semanage fcontext -a -t container_file_t '/home/student/dbfiles(/.*)?'sudo restorecon -Rv /home/student/dbfilesls -ldZ /home/student/dbfilesThe mount the path with -v location_in_local:location_in_containerpodman run -v /home/student/dbfiles:/var/lib/mysql rhmap47/mysqlpodman unshare chown 27:27 /home/student/local/mysql
Port management
podman run -d --name apache1 -p 8080:8080 httpdpodman run -d --name apache2 -p 127.0.0.1:8081:8080 httpdpodman run -d --name apache3 -p 127.0.0.1::8080 httpdpodman port apache3
[registries.search]registries = ["registry.redhat.io","quay.io"]podman save [-o FILE_NAME] IMAGE_NAME[:TAG]podman save -o mysql.tar quay.io/mysql:latestpodman load [-i FILE_NAME]podman load -i mysql.tarpodman rmi [OPTIONS] IMAGE [IMAGE...]podman rmi -apodman commit [OPTIONS] CONTAINER [REPOSITORY[:PORT]/]IMAGE_NAME[:TAG]podman commit mysql-basic mysql-custompodman commit -a 'Your Name' httpd httpd-new
podman tag [OPTIONS] IMAGE[:TAG] [REGISTRYHOST/][USERNAME/]NAME[:TAG]podman tag mysql-custom devops/mysqlpodman rmi devops/mysql:snapshotpodman push [OPTIONS] IMAGE [DESTINATION]podman push quay.io/bitnami/nginx
Kubernetes as K8s is one of the most commonly used container orchestration tools. Following are the major components of the Kubernetes environment. These are not the only components but the very core components.
The easiest way to set up an OpenVPN server, the script is very helpful to manage the client keys
First, we need to download the script, then make it executable and run with bash
wget https://git.io/vpn -O openvpn-install.sh
chmod +x openvpn-install.sh
bash openvpn-install.sh
Following will be output and options to choose to create the VPN server and Client Certificates.
Welcome to this OpenVPN road warrior installer!
Which protocol should OpenVPN use?
1) UDP (recommended)
2) TCP
Protocol [1]: 1
What port should OpenVPN listen to?
Port [1194]:
Select a DNS server for the clients:
1) Current system resolvers
2) Google
3) 1.1.1.1
4) OpenDNS
5) Quad9
6) AdGuard
DNS server [1]: 2
Enter a name for the first client:
Name [client]: rahul
OpenVPN installation is ready to begin.
Press any key to continue...
Finished!
The client configuration is available in: /root/XXXX.ovpn
New clients can be added by running this script again.
Once the client configuration is done we can copy it and move it to the device we need to use as the client. Configure the Ovpn client app with the client key and can start using the VPN.
Following are the anisble playbook used to deploy a 1 master 2 worker k8s cluster.
Environment
User Creation
Package Installation in Master and Worker Nodes
Master Configuration
Worker Configuration
K8s should be up with the worker nodes now.