Tag: Bash
-
Kubelet podPidsLimit Tuning: Container PID
💡 Kubelet podPidsLimit Tuning: Container PID — Executive Summary Technical architectural analysis, practical configuration manifests, and deployment instructions for Kubelet podPidsLimit Tuning: Container PID. Shell Summary of usage based on Pod shell Copy #!/bin/bash LOG_FILE=”/var/log/pod_pids_usage.log” KUBECONFIG_PATH=”/etc/kubernetes/admin.conf” TIMESTAMP=$(date “+%Y-%m-%d %H:%M:%S”) TMP_FILE=$(mktemp) NODES=$(kubectl –kubeconfig=$KUBECONFIG_PATH get nodes -o jsonpath='{.items[*].metadata.name}’) for NODE in $NODES; do RAW_METRICS=$(kubectl –kubeconfig=$KUBECONFIG_PATH get –raw…
-
Bash Script if Statements: Compare Operators
💡 Bash Script if Statements: Compare Operators — Executive Summary Technical architectural analysis, practical configuration manifests, and deployment instructions for Bash Script if Statements: Compare Operators. if Expression Use Features POSIX Compatibility if ; then Branch based on command execution result Judging by the exit code after executing the command fully compatible if [ ];…
-
Harbor REST API Scripting: Tag Cleanup
💡 Harbor REST API Scripting: Tag Cleanup — Executive Summary Technical architectural analysis, practical configuration manifests, and deployment instructions for Harbor REST API Scripting: Tag Cleanup. Creating Create Project bash Copy #!/bin/bash ns=$1 SCRIPT_DIR=”$(cd “$(dirname “${BASH_SOURCE[0]}”)” && pwd)” curl -u “admin:Cloud000@” \ –cacert $SCRIPT_DIR/../ca.crt \ -XPOST “https://harbor.Enterprise Cloud.hanacloudia.com/api/v2.0/projects” \ -H “Content-Type: application/json” \ -d ‘{…
-
Bash Script User Confirmation Prompts (Y/n)
💡 Bash Script User Confirmation Prompts (Y/n) — Executive Summary Technical architectural analysis, practical configuration manifests, and deployment instructions for Bash Script User Confirmation Prompts (Y/n). The Notion API rate limit was reached. Wait at least 7 seconds before retrying this tool call. Do not retry immediately or in parallel. {“error”:{“code”:”rate_limited”,”classification”:”rate_limit”,”operation”:”fetch”,”message”:”The Notion API rate limit…
-
Helm index.yaml Parsing & Markdown Catalog
💡 Helm index.yaml Parsing & Markdown Catalog — Executive Summary Technical architectural analysis, practical configuration manifests, and deployment instructions for Helm index.yaml Parsing & Markdown Catalog. The Notion API rate limit was reached. Wait at least 4 seconds before retrying this tool call. Do not retry immediately or in parallel. {“error”:{“code”:”rate_limited”,”classification”:”rate_limit”,”operation”:”fetch”,”message”:”The Notion API rate limit…
-
Bash Scripting Basics: Parameter Expansion
💡 Bash Scripting Basics: Parameter Expansion — Executive Summary Technical architectural analysis, practical configuration manifests, and deployment instructions for Bash Scripting Basics: Parameter Expansion. References and Guidelines (NOTE) Referenceurl: Bash shell Programming – Jinlib Example bash Copy #!/bin/bash # My First Script Program printf “I love UNIX !\n” pwd exit 0 Script component ! (Magic…
-
CMP Build & Remote Deployment Automation Bash
💡 CMP Build & Remote Deployment Automation Bash — Executive Summary Technical architectural analysis, practical configuration manifests, and deployment instructions for CMP Build & Remote Deployment Automation Bash. Enterprise Cloud/build-deploy.sh bash Copy #!/bin/sh VERSION=v3.0. # ALL APP_NAME=(admin-app dashboard-app openstack-app admin-api dashboard-api openstack-api cloud-service-broker service-catalog-engine) # APP #APP_NAME=(admin-app dashboard-app openstack-app) # API #APP_NAME=(admin-api dashboard-api openstack-api) #…
-
Advanced Bash Shell Scripting: Signal Traps
💡 Advanced Bash Shell Scripting: Signal Traps — Executive Summary Technical architectural analysis, practical configuration manifests, and deployment instructions for Advanced Bash Shell Scripting: Signal Traps. 🔗 https://minddoodle.tistory.com/m/10 🔗 https://jdm.kr/blog/4 Summary bash Copy # cmd결과를 변수로 사용하여 cmd 실행 command $({ command }) ENV BASH_SOURCE bash Copy # 현재 스크립트의 위치를 찾기 SCRIPT_DIR=”$(cd “$(dirname “${BASH_SOURCE[0]}”)”…
-
Docker Image Tag, Push & Cleanup Automation
💡 Docker Image Tag, Push & Cleanup Automation — Executive Summary Technical architectural analysis, practical configuration manifests, and deployment instructions for Docker Image Tag, Push & Cleanup Automation. V5 image tag & push bash Copy cat <<EOF >> tmp.sh repository=ghcr.io/myeong-han $(docker images | grep -Ev ‘REPOSITORY’ | awk ‘{ img = $1; sub(/.*\//, “”, img);…