🎯
Focusing
-
Netease
- hangzhou
Pinned Loading
-
decode k8s secret
decode k8s secret 1#!/bin/bash
23# Usage: NAMESPACE=... SECRET_NAME=... ./decode_k8s_secret.sh
45if [ -z "$NAMESPACE" ]; then
-
json value base64
json value base64 1jq 'with_entries({key:.key, value: (.value|@base64) })'
-
采集Deployment下所有容器的日志
采集Deployment下所有容器的日志 1#!/bin/bash
23NAMESPACE=$1
4DEPLOYMENT=$2
5 -
Transfer multi keyvaluepairs to json...
Transfer multi keyvaluepairs to json object 1#!/bin/bash
23result="[]"
4while IFS="=" read -r k v; do
5entry=$(jq --arg key "$k" --arg value "$v" -n '[{
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.