You will need to do the following: SSH into your Droplet where GitLab is installed. ssh [your-user]@[your-droplet-ip-address] Open the GitLab Rails console. If you installed GitLab via the Omnibus package, you can open the Rails console with: sudo gitlab-rails console Locate the root user and change the password. Once in the console, enter the following commands: user = […]
Red hat linux
Deploy NGINX Ingress Controller on AKS Kubernetes using Helm
Step 1 – Allocate Public IP for Ingress The following command will allocate Public IP : az network public-ip create –resource-group [resource-group] –name [name for public IP] –sku Standard –allocation-method static –query publicIp.ipAddress -o tsv Step 2 – Install NGINX Ingress Controller using Helm An ingress controller, because it is a core component of Kubernetes, […]
Kubectl Cheat Sheet
Introduction Kubernetes is a famous container orchestration tool that is very popular in modern software development. If you are using Kubernetes, you must have used Kubectl, which is the command line tool to manage your Kubernetes applications. This guide will walk you through the most frequently used commands for Kubectl. Not only will we discuss […]
Deploy a Docker registry server with Authentication
Before you can deploy a registry, you need to install Docker on the host. A registry is an instance of the registry image, and runs within Docker. Install docker service with bellow commands. dnf config-manager –add-repo=https://download.docker.com/linux/centos/docker-ce.repo dnf install -y docker-ce –nobest systemctl enable –now docker dockerstatus=`systemctl status docker | grep “active (running)”` echo “Docker Service […]
How To Save All Docker Images And Copy/Move To Another Host?
Follow the below steps to export all docker images and import them to another system. Step #1 Export or save all images to one tar file. docker save $(docker images –format ‘{{.Repository}}:{{.Tag}}’) -o allimages.tar Step #2 scp -i key.pem rocky@192.168.1.1:/tmp/allimages.tar . Step #3 Load all images to docker on new host. docker load -i allimages.tar
Setup SCTP In Red Hat / CentOS Linux 8
1. Install kernel-modules-extra and SCTP for the currently installed kernel; yum install kernel-modules-extra-`uname -r` yum install -y lksctp-tools lksctp-tools-devel lksctp-tools-doc 2. Add sctp to /etc/modules-load.d/* to load sctp before systemd-sysctl.service during boot. Loading sctp before systemd-sysctl.service allows the sctp sysctl.conf settings to be effective; # cat /etc/modules-load.d/sctp.conf sctp 3. sctp is blacklisted by default on […]
Setting up Galera Arbitrator
Galera Arbitrator <http://galeracluster.com/documentation-webpages/arbitrator.html> is a member of Percona XtraDB Cluster that is used for voting in case you have a small number of servers (usually two) and don’t want to add any more resources. Galera Arbitrator does not need a dedicated server. It can be installed on a machine running some other application. Just make sure it has […]
How to gracefully reboot MariaDB Galera Cluster servers?
Cluster Configuration In this example configuration of two nodes, we assume that the servers are connected over private network. This allows direct connections without requiring SSH tunnels. The most important parts is to enable listening on IP protocol and to configure addresses and names of the cluster nodes. The config files are similar for each […]
Standard Macros in Nagios
Standard macros that are available in Nagios are listed here. On-demand macros and macros for custom variables are described here. Macro Validity Although macros can be used in all commands you define, not all macros may be “valid” in a particular type of command. For example, some macros may only be valid during service notification commands, […]
Sending SNMP Traps from Nagios
As well as receiving SNMP traps in Nagios, you can send SNMP traps from Nagios to a remote SNMP management station like HP OpenView (NNM) or the like. The easiest way to do this is to create a notification command that generates an SNMP trap. This way, you can use an SNMP management station as […]