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 = […]
Getting Started with Git: 25 Essential Commands for Beginners
Git is a powerful version control system that every developer should know. Whether you’re collaborating with others or managing your own projects, these 25 Git commands will help you navigate and control your codebase efficiently. 1. git init Initializes a new Git repository in your project directory. git init 2. git clone Clones an existing […]
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, […]
CKA Sample questions with answers
Pre Setup Once you’ve gained access to your terminal it might be wise to spend ~1 minute to setup your environment. You could set these: alias k=kubectl # will already be pre-configured export do=”–dry-run=client -o yaml” # k create deploy nginx –image=nginx $do export now=”–force –grace-period 0″ # k delete pod x $now Vim The […]
kubectl autocomplete – Enabling and Using in Bash
Setting Up Kubectl Autocomplete in Your Shell Environment Setting up kubectl autocomplete depends on the shell you’re using. Here are the options for the most common shells. Remember to replace kubectl with your chosen alias if you’re using one. For instance, if you’ve aliased kubectl as k, replace kubectl with k in the scripts below. […]
kubectl Quick Reference
Kubectl autocomplete BASH source <(kubectl completion bash) # set up autocomplete in bash into the current shell, bash-completion package should be installed first. echo “source <(kubectl completion bash)” >> ~/.bashrc # add autocomplete permanently to your bash shell. You can also use a shorthand alias for kubectl that also works with completion: alias k=kubectl complete -o default […]
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 […]
Install Terraform on CentOS Using Package Repository
The HashiCorp repository contains other non-Terraform packages that will be available for installing after you add the repository. Follow the steps to install Terraform from the official HashiCorp repository on a CentOS system. 1. Install the yum-utils tools: sudo yum install -y yum-utils 2. Add the HashiCorp repository: sudo yum-config-manager –add-repo https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo 3. Finally, install Terraform using […]
How to reset the admin password on GitLab
Gitlab admin password can be changed easily by using GitLab-rails command. We may have chance of forgetting GitLab admin password, so if we do we actually don’t need to reinstall GitLab just follow the simple steps to reset your GitLab admin password. This tutorial covers the ground on resetting the admin password on Gitlab. execute […]
Install Jenkins on Rocky Linux 9
Configure jenlkins repo. sudo wget -O /etc/yum.repos.d/jenkins.repo \ https://pkg.jenkins.io/redhat-stable/jenkins.repo sudo rpm –import https://pkg.jenkins.io/redhat-stable/jenkins.io-2023.key sudo yum upgrade # Add required dependencies for the jenkins package sudo yum install fontconfig java-17-openjdk sudo yum install jenkins sudo systemctl daemon-reload Weekly release A new release is produced weekly to deliver bug fixes and features to users and plugin developers. […]