11 2021 档案
摘要:#!/bin/sh pods=`kubectl get pods -n prod |grep $1|awk '{print \$1}'` for pod in $pods do echo $pod; kubectl exec -it --tty -n prod $pod -- cat /sys/fs
阅读全文
摘要:# 每天0点执行这个脚本,用于切割nginx日志 for pod in $(kubectl get pods -n service-a | grep gateway | awk '{print $1}'); do kubectl exec -ti -n service-a $pod -- /bin/
阅读全文
摘要:cat /app/nginx/conf/nginx.conf user www; worker_processes auto; events { worker_connections 65535; } http { include mime.types; default_type applicati
阅读全文