feedcode

feedcode

V2EX member #508373, joined on 2020-09-16 16:13:14 +08:00
Today's activity rank 28960
Per feedcode's settings, the topics list is hidden
Deals info, including closed deals, is not hidden
feedcode's recent replies
4 days ago
Replied to a topic by SWALLOWW › 投资 › 大 A,感觉今天是机会,补哪个
中国人寿港股
不知道这个性能怎么样。
本来 git for windows 里面已经带了 mingw64 版本的 coreutils, 不过 ms defender 太不友好,启动扫码导致性能很差
Nov 25, 2025
Replied to a topic by kemo › 上海 › 买车的理由,唠唠普通人的生活
700 公里开车回家要开 8 个小时以上(出上海市区一般就要一个小时以上了),如果不是常年开长途的话,腰酸背痛很累的,坐车的也累,不如高铁舒服
在上海不买电车,不拍沪牌,高峰期上不了高架,只能在地面堵着。
Oct 1, 2025
Replied to a topic by WngShhng › 生活 › 医保停缴,个人账户余额无法使用
分享一个大多人不知道的上海医保知识点, 个人账户缴得越多越吃亏

本市职工医保门急诊就医采用“三段式”保障模式,即:①账户段,先使用每年 7 月 1 日计入的个人账户当年资金支付门急诊费用; ②自负段(即门诊起付线 500),账户资金用完后,由个人现金支付门急诊费用; ③共付段,超出自负段以上门急诊费用,统筹基金按比例报销
127061
Sep 20, 2025
Replied to a topic by mytsing520 › 签证 › 美签 H-1B 调整申请门槛
第二个是将来时态,还没有行政令。
Trump Says the U.S. Will Institute $100,000 Fee for Skilled Worker Visas

这个差别可大了,Trump Always Chickens Out (TACO)
不要 rewrite query parameter

nginx.ingress.kubernetes.io/configuration-snippet: |
if ($request_uri ~ "/dhq/([^\?]*)") {
set $path1 $1;
rewrite ^/dhq/ /$path1 break;
}
这个不是 ingress 的问题!
你只是恰巧用了 nginx ,解决方法
https://my.f5.com/manage/s/article/K000148648
试试在 configuration-snippet 再加一个
rewrite ^ $request_uri;
Sep 11, 2025
Replied to a topic by fitme › Kubernetes › k8s 下 nfs-provisioner 迁移
删掉 PV 后重建,记得 spec.claimRef 保持和之前的一样,PVC 会重新 Bound

while read share;do
echo "check $share"
kubectl get pv $share -o yaml > "$share-origin.yaml"
ns=$(yq '.spec.claimRef.namespace' "$share-origin.yaml")
pvc=$(yq '.spec.claimRef.name' "$share-origin.yaml")
echo "$ns $pvc"
if [ ! -f "all-pods-$ns.yaml" ] ;then
kubectl get pods -n $ns -o yaml > "all-pods-$ns.yaml"
fi
podname=$(yq ".items[]|select(.spec.volumes[].persistentVolumeClaim.claimName==\"$pvc\")|.metadata.name" "all-pods-$ns.yaml")
echo "pods $podname will be deleted"
# patch pv
kubectl patch pv $share -p '{"spec":{"persistentVolumeReclaimPolicy":"Retain"}, "metadata":{"finalizers":null }}' --type=merge
kubectl delete pv $share --wait=false
sleep 5
kubectl delete pod -n $ns $podname
sleep 10
kubectl get pv $share || echo deleted
# recreate PV here
sed -e "REPLACE-HERE" "$share-origin.yaml" >"$share-new.yaml"
kubectl create -f "$share-new.yaml"
done<pv-shares.txt
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1423 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 10ms · UTC 19:43 · PVG 03:43 · LAX 12:43 · JFK 15:43
♥ Do have faith in what you're doing.