pass
This commit is contained in:
parent
7fe95d9bfa
commit
41e43cc7ec
16
12.sh
Normal file
16
12.sh
Normal file
@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
bos_dir="bos://dg-algo/"
|
||||
|
||||
|
||||
while IFS= read -r prefix
|
||||
do
|
||||
/home/users/xianbao01.hou/linux-bcecmd-0.4.7/bcecmd bos ls $bos_dir$prefix/ --all | grep "2025-05-13 19:1" | awk '{print $5}' > png-list.txt
|
||||
while IFS= read -r png
|
||||
do
|
||||
full_path="${bos_dir}${prefix}/${png}"
|
||||
if ! /home/users/xianbao01.hou/linux-bcecmd-0.4.7/bcecmd bos rm "$full_path" --yes >> /dev/null 2>&1; then
|
||||
echo "$full_path" >> png-delete.txt
|
||||
fi
|
||||
done < ./png-list.txt
|
||||
done < dir-list.txt
|
||||
68
k8s/tzb/deploy.yaml
Normal file
68
k8s/tzb/deploy.yaml
Normal file
@ -0,0 +1,68 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: tzb-server
|
||||
namespace: bj1-tzb
|
||||
labels:
|
||||
app: tzb-server
|
||||
spec:
|
||||
replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: tzb-server
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: tzb-server
|
||||
spec:
|
||||
imagePullSecrets:
|
||||
- name: registry-auth
|
||||
containers:
|
||||
- name: tzb-server
|
||||
image: ccr-29eug8s3-vpc.cnc.bj.baidubce.com/public/tiaozhanbei-server:05141
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
resources:
|
||||
requests:
|
||||
cpu: "100m"
|
||||
memory: "128Mi"
|
||||
limits:
|
||||
cpu: "200m"
|
||||
memory: "256Mi"
|
||||
env:
|
||||
- name: DB_HOST
|
||||
value: "mysql-prod.rdsmd4w68w703bh.rds.bj.baidubce.com"
|
||||
restartPolicy: Always
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: tzb-server
|
||||
namespace: bj1-tzb
|
||||
spec:
|
||||
selector:
|
||||
app: tzb-server
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 8080
|
||||
targetPort: 8080
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: tzb-ingress
|
||||
namespace: bj1-tzb
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: tiaozhanbei.d-robotics.cc
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: tzb-server
|
||||
port:
|
||||
number: 8080
|
||||
|
||||
18
k8s/tzb/ingress.yaml
Normal file
18
k8s/tzb/ingress.yaml
Normal file
@ -0,0 +1,18 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: cvpr-competition-ingress
|
||||
namespace: bj1-cvpr
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: cvpr-competition.d-robotics.cc
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: cvpr-competition-server
|
||||
port:
|
||||
number: 8080
|
||||
12
k8s/tzb/service.yaml
Normal file
12
k8s/tzb/service.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: cvpr-competition-server
|
||||
namespace: bj1-cvpr
|
||||
spec:
|
||||
selector:
|
||||
app: cvpr-competition-server
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 8080
|
||||
targetPort: 8080
|
||||
@ -32,3 +32,4 @@ tsTvYzX*V22SIIX3LSZN!9%wCjOG*aKi
|
||||
vGep^zATq9yBe#mNs9(IxFUhzBGxFiL8
|
||||
S(q$*F^M8oDt^IE9oKLDY#8mB@IadGjL
|
||||
DII)Qpqd^Dss!bA(oZR##jdzH#^Wft5v
|
||||
X4H)KK(*nvmx)0gU5ys$x2kpCxdg^mJk
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user