Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

148 total results found

AWS Systems Manager

AWS SDK

Verify IAM Role Permissions The EC2 instance you’re targeting needs an IAM role with the appropriate policies attached. Steps: 1. Go to the EC2 Console, and check the IAM role attached to your instance: Select the EC2 instance. In the Description tab, check t...

Fix Error Agent Unavailable on Rancher

Managing Pods

Find agent pod for Rancher kubectl get pods -n cattle-system Show error logs kubectl logs -n cattle-system cattle-cluster-agent-<id> Result: ERROR: The environment variable CATTLE_CA_CHECKSUM is set but there is no CA certificate configured at https://<domai...

Access Amazon MQ Web Console

Amazon MQ Cookbook

Create RabbitMQ broker Set Public accessibility to Yes to access it from public network. Open RabbitMQ web console Click RabbitMQ web console URL on Connections. Ports and contexts: Exchanges:

Composer Commands

Laravel Framework Cookbook

Dump autoload composer dump-autoload

Setup Kubeconfig on a Droplet

Kubernetes on DigitalOcean

Download Kubeconfig Open from menu Manage > Kubernetes. Click your target Kubernetes cluster. From Overview, click Download Config File. Upload Kubeconfig via SSH Setup Kubeconfig Run this following commands: mkdir -p ~/.kube cp ~/k8s/kubeconfig.yaml ~/.kub...

Installation on Docker

Premium Content Blog

Getting Started Start your blogging career with this app that allows you to charge users on a subscription basis, for your premium content. Simply install the app, add your Stripe keys, then deploy to the Cosmic App Server (or your chosen hosting solution). Si...

Build Cronjob

Export Database with Kubernetes Cronjob

Bash Script to Export and Upload DB Backup #!/bin/bash # MySQL Backup and S3 Upload Script with s3cmd # Usage: ./mysql_backup_and_upload.sh # Configuration Variables (can be replaced by environment variables) MYSQL_HOST="${MYSQL_HOST:-mysql-service}" MYSQL_U...

Write FTP Service

Build FTP Service

apiVersion: v1 kind: Namespace metadata: name: ftp --- apiVersion: v1 kind: Secret metadata: name: ftp-credentials namespace: ftp type: Opaque stringData: FTP_USER: ftpuser FTP_PASS: your-secure-ftp-password --- apiVersion: apps/v1 kind: Deployme...

s3cmd Configuration

Export Database with Kubernetes Cronjob

Example of ~/.s3cfg Configuration [default] access_key = YOUR_ACCESS_KEY secret_key = YOUR_SECRET_KEY host_base = s3.amazonaws.com host_bucket = %(bucket)s.s3.amazonaws.com use_https = True region = us-east-1 signature_v2 = False encrypt = False Read detail h...

Disk Management

Linux Commands

Disk device list lsblk Show disk detail: lsblk -o NAME,UUID,SIZE,TYPE,MOUNTPOINT Detect the disk sudo fdisk -l /dev/<device-name> Create a filesystem / format partition sudo mkfs.ext4 /dev/<device-name> Resize Filesystem (if already partitioned) sudo resiz...

Steps to Build an NFS Server

Create Shared Volume with NFS

1. Install NFS Server on Linux (VM or Kubernetes Node) If you're using a VM or any Linux-based system as the NFS server, you first need to install the NFS server package. For Ubuntu/Debian: sudo apt update sudo apt install -y nfs-kernel-server 2. Create a Dir...

Steps to Expose NFS in Kubernetes

Create Shared Volume with NFS

Now that you have the NFS server set up, you can use it as shared storage in your Kubernetes cluster. 1. Create the Persistent Volume (PV) Create a PersistentVolume resource in Kubernetes that points to your NFS server. Here's an example YAML: apiVersion: v1 k...

Check the IP Address on the NFS Server

Create Shared Volume with NFS

If you have direct access to the NFS server, run the following command to find its IP address: Use ip Command: ip addr show Look for the network interface connected to your local network (e.g., eth0, ens0, or similar). Example output: 2: eth0: <BROADCAST,MU...

Clone and Push Source Code

Opensource Git Server with Gitea

To clone and push code to your self-hosted Gitea instance running on Kubernetes, you'll need to use the SSH service exposed by Gitea. Here's how to do it: 1. Setup SSH Access First, ensure your SSH key is added to Gitea so that you can use it for Git operation...

Create Public SSH Key

Opensource Git Server with Gitea

Open Git Bash Paste the text below, replacing the email used in the example with your GitHub email address. ssh-keygen -t ed25519 -C "[email protected]" If you are using a legacy system that doesn't support the Ed25519 algorithm, use: ssh-keygen -t rsa...

Error when Push Source Code

Opensource Git Server with Gitea

The error message > git push origin main:main error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413 send-pack: unexpected disconnect while reading sideband packet fatal: the remote end hung up unexpectedly Everything up-to-date The error y...

Security Warning

Export Database with Kubernetes Cronjob

WARNING: Kubernetes configuration file is world-readable. This is insecure. Location: /root/.kube/config It's crucial to secure your Kubernetes configuration files to prevent unauthorized access. Here are a few steps you can take to improve security: File P...

Install Docker on Ubuntu

Linux Commands

To install Docker on Ubuntu, you can follow these steps: Step 1: Update Package Index First, update the package index to ensure you install the latest versions of Docker and its dependencies: sudo apt update Step 2: Install Dependencies Install the packages n...

Manage Firewall

Firewall

If ufw (Uncomplicated Firewall) is not found when you try to use it with sudo, it typically means that ufw is not installed on your system. Here’s how you can install and use ufw on Ubuntu: Installing ufw on Ubuntu Update Package Index: sudo apt update In...

Uninstall NFS Service

Create Shared Volume with NFS

To uninstall NFS (Network File System) on Ubuntu, you need to remove the NFS server components and any associated configuration. Here’s how you can do it: Uninstall NFS Server Components Stop NFS Services: First, stop the NFS server services to prevent them ...