forked from ci4s/pipeline-convert
修改部署脚本和文件
This commit is contained in:
parent
0c86ea01eb
commit
1e9b5fa8be
|
|
@ -52,7 +52,7 @@ if [ "$?" -ne "0" ];then
|
|||
fi
|
||||
echo "################### push image end ###################"
|
||||
|
||||
sed -i "s#pipeline-image#${image}#g" pipeline-convert-debug.yaml
|
||||
sed -i "s#pipeline-image#${image}#g" pipeline-convert.yaml
|
||||
if [ "$?" -ne "0" ];then
|
||||
echo "replace image fail"
|
||||
exit 4
|
||||
|
|
@ -60,8 +60,8 @@ fi
|
|||
|
||||
echo "################### deploy start ###################"
|
||||
|
||||
scp pipeline-convert-debug.yaml root@172.20.32.185:/home/deploy/script/pipeline-convert/pipeline-convert.yaml
|
||||
ssh root@172.20.32.185 "unset http_proxy && unset https_proxy && kubectl apply -f /home/deploy/script/pipeline-convert/pipeline-convert.yaml"
|
||||
scp pipeline-convert.yaml root@172.20.32.235:/home/deploy/script/pipeline-convert/pipeline-convert.yaml
|
||||
ssh root@172.20.32.235 "unset http_proxy && unset https_proxy && kubectl apply -f /home/deploy/script/pipeline-convert/pipeline-convert.yaml"
|
||||
sed -i "s#${image}#pipeline-image#g" pipeline-convert-debug.yaml
|
||||
if [ "$?" -ne "0" ];then
|
||||
echo "deploy fail"
|
||||
|
|
|
|||
|
|
@ -20,15 +20,6 @@ spec:
|
|||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 80
|
||||
volumeMounts:
|
||||
- mountPath: /var/log/pipeline-convert
|
||||
name: pipeline-convert-log
|
||||
subPath: pipeline-convert-nfs-log
|
||||
volumes:
|
||||
- name: pipeline-convert-log
|
||||
persistentVolumeClaim:
|
||||
claimName: pipeline-convert-log-pvc-nfs
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
|
@ -45,19 +36,6 @@ spec:
|
|||
protocol: TCP
|
||||
nodePort: 31000
|
||||
|
||||
---
|
||||
kind: PersistentVolumeClaim
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: pipeline-convert-log-pvc-nfs
|
||||
namespace: argo
|
||||
spec:
|
||||
storageClassName: nfs-client
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
resources:
|
||||
requests:
|
||||
storage: 5Gi
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue